Passbolt Api Retrieval of HTTP-only cookies
The advisory, in context
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.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 2.7.0
Fixed in 2.7.0
45 explicitly affected versions
v1.0.10, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9, v1.1.0, v1.2.0, v1.2.1, v1.3.0, v1.3.1, v1.3.2, v1.4.0, v1.5.1, v1.6.0, v1.6.1, v1.6.10, v1.6.2, v1.6.3, v1.6.4, v1.6.5, v1.6.9, v2.0.0, v2.0.0-rc1, v2.0.0-rc2, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.7, v2.0.8, v2.1.0, v2.1.1, v2.2.0, v2.3.0, v2.4, v2.5.0, v2.5.1, v2.6.0, v2.6.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.7.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v1.0.10",
"v1.0.11",
"v1.0.12",
"v1.0.13",
"v1.0.14",
"v1.0.5",
"v1.0.6",
"v1.0.7",
"v1.0.8",
"v1.0.9",
"v1.1.0",
"v1.2.0",
"v1.2.1",
"v1.3.0",
"v1.3.1",
"v1.3.2",
"v1.4.0",
"v1.5.1",
"v1.6.0",
"v1.6.1",
"v1.6.10",
"v1.6.2",
"v1.6.3",
"v1.6.4",
"v1.6.5",
"v1.6.9",
"v2.0.0",
"v2.0.0-rc1",
"v2.0.0-rc2",
"v2.0.1",
"v2.0.2",
"v2.0.3",
"v2.0.4",
"v2.0.5",
"v2.0.7",
"v2.0.8",
"v2.1.0",
"v2.1.1",
"v2.2.0",
"v2.3.0",
"v2.4",
"v2.5.0",
"v2.5.1",
"v2.6.0",
"v2.6.1"
]
}References
- https://github.com/passbolt/passbolt_api/commit/fbf99fed4b60db5fec97b58a2251a04bb42c1b15
- https://github.com/FriendsOfPHP/security-advisories/blob/master/passbolt/passbolt_api/2019-02-11-2.yaml
- https://github.com/passbolt/passbolt_api
- https://www.passbolt.com/incidents/20190211_multiple_vulnerabilities