OpenBao is an open source identity-based secrets management system. Prior to version 2.5.2, OpenBao installations that have an OIDC/JWT authentication method enabled and a role with `callback_mode=direct` configured are vulnerable to XSS via the `error_description` parameter on the page for a failed authentication. This allows an attacker access to the token used in the Web UI by a victim. The `error_description` parameter has been replaced with a static error message in v2.5.2. The vulnerability can be mitigated by removing any roles with `callback_mode` set to `direct`.
The vulnerability results from insufficient validation and encoding of the `error_description` parameter displayed on the failed authentication error page (CWE-20, CWE-116). An attacker can craft a malicious URL containing a script in this parameter and trick the victim into visiting it (requires user interaction). When the injected script is executed in the victim's browser, it becomes possible to read the token used in the OpenBao Web UI. In version 2.5.2, the `error_description` parameter was replaced with a static error message, eliminating the attack vector.
An attacker can obtain the Web UI session token of a logged-in user, leading to unauthorized access to the OpenBao secrets management system with the victim's privileges, and potentially also compromising the integrity and availability of dependent systems.
Update OpenBao to version 2.5.2 or later. As a temporary workaround (without updating), you can remove all roles that have `callback_mode=direct` configured in the OIDC/JWT authentication method configuration.
OpenBao in all versions before 2.5.2, when the OIDC/JWT authentication method is enabled and at least one role is configured with the `callback_mode=direct` parameter.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XOpenbao
APPOpenbao< 2.5.2
Related vulnerabilities
OpenBao: zdalne phishing przez JWT/OIDC bez potwierdzenia logowania
OpenBao: ominięcie restrykcji przez subsystem audytu — RCE i dostęp sieciowy
OpenBao is an open source identity-based secrets management system. Prior to version 2.4.4, a privileged opera...
OpenBao is an open source identity-based secrets management system. In OpenBao versions prior to 2.4.1, JSON o...
OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secret...