GHSA-2f46-4xjm-73x5: Passbolt API Stored XSS on first/last name during setup
Description An administrator can craft a user with a malicious first name and last name, using a payload such as The user will then receive the invitation email and click on the setup link. The setup start page served by the server will fire the XSS. Impact of issue An administrator could use this exploit to edit the setup start page for a given user, for example, trick the user into installing another extension.
Published May 20, 2024
Affected packages
passbolt/passbolt_api
- Ecosystem
- Composer (PHP)
- Affected
- < 2.11.0
- Fixed in
- 2.11.0
- Check
composer show passbolt/passbolt_api
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Description
An administrator can craft a user with a malicious first name and last name, using a payload such as
<svg onload="confirm(document.domain)">'); ?></svg>The user will then receive the invitation email and click on the setup link. The setup start page served by the server will fire the XSS.
Impact of issue
An administrator could use this exploit to edit the setup start page for a given user, for example, trick the user into installing another extension. Even though the severity of this issue in itself is high, the likelihood is low because the exploit will be visible in clear by the user in the email notification, and also requires an action from a malicious administrator.
Fix
Sanitize the firstname and lastname in the page that is used to trigger the extension setup process.
Additionally since v2.11 some default CSP are inserted in the server response headers to prevent inline-scripts or 3rd party domain scripts on pages served by the passbolt API. This is to cater for the case where the administrator has not set them up as part of the web server configuration.
References
- https://github.com/passbolt/passbolt_api/commit/6135b483f72c6853e6085e329f5f8d7be60c9933
- https://github.com/FriendsOfPHP/security-advisories/blob/master/passbolt/passbolt_api/2019-08-07-1.yaml
- https://github.com/passbolt/passbolt_api/blob/master/CHANGELOG.md#2110---2019-08-08
- https://www.passbolt.com/incidents/20190807_multiple_vulnerabilities
- https://github.com/advisories/GHSA-2f46-4xjm-73x5
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesGHSA-cv5c-2qv5-w2m2
Passbolt Api Remote code execution
high8.1May 20, 2024GHSA-f5pp-pmq8-gp46
Passbolt Api Retrieval of HTTP-only cookies
low3.7May 20, 2024GHSA-qm5v-pj64-852j
Passbolt Api Tabnabbing when opening URI with menu "Open URI in a new tab"
medium5.5May 20, 2024GHSA-v86m-j5f7-ccwh
Passbolt Api E-mail HTML injection
medium4.4May 20, 2024CVE-2024-33670
Passbolt API allows HTML injection
medium4.3Apr 26, 2024
