GHSA-f5pp-pmq8-gp46 Passbolt Api Retrieval of HTTP-only cookies
An attacker exploiting an XSS vulnerability can retrieve HTTP-only session cookies via the /auth/verify.json endpoint, potentially accessing sensitive user data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-f5pp-pmq8-gp46?
GHSA-f5pp-pmq8-gp46 is a vulnerability in passbolt/passbolt_api, published on 20 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Passbolt uses three cookies: a session cookie, a CSRF protection cookie and a cookie to keep track of the multiple-factor authentication process.
Both the session cookie and the mfa cookie are properly set HTTP-only to prevent an attacker from retrieving the content of those cookies if they managed to exploit an XSS.
The /auth/verify.json endpoint returns a JSON that, among other things, contains the cookies sent in the request. (similar to the TRACE HTTP method)
An attacker who manages to leverage an XSS vulnerability could retrieve the session cookies of a legitimate user, effectively granting them the ability to retrieve information (such as encrypted password list or group list) without requiring user interaction.
This vulnerability has a low impact, but no immediate risk due to it requiring the exploitation of an XSS vulnerability that has yet to be found.
Which versions are affected by GHSA-f5pp-pmq8-gp46?
2 open source packages ship an affected version, including passbolt/passbolt_api.
| Package | Affected | Fixed in |
|---|---|---|
passbolt/passbolt_api Packagist | All versions | 2.7.0 |
passbolt/passbolt_api Packagist | All versions | 2.7.0 |
How do I fix GHSA-f5pp-pmq8-gp46?
Upgrade passbolt/passbolt_api to 2.7.0 or later.
Is GHSA-f5pp-pmq8-gp46 being exploited?
There is no known exploitation of GHSA-f5pp-pmq8-gp46 in the wild and no public exploit code.