Lucene search

K
osvGoogleOSV:GHSA-2F46-4XJM-73X5
HistoryMay 20, 2024 - 5:07 p.m.

Passbolt API Stored XSS on first/last name during setup

2024-05-2017:07:44
Google
osv.dev
3
passbolt
api
stored xss
setup
first name
last name
payload
administrator
exploit
setup link
server
impact
fix
sanitize
csp
response headers
web server configuration
software

6.9 Medium

AI Score

Confidence

Low

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.

6.9 Medium

AI Score

Confidence

Low