Skip to content

Stored XSS through the translation feature

High
renchap published GHSA-2693-xr3m-jhqr Sep 19, 2023

Package

No package listed

Affected versions

>= 4.0

Patched versions

4.0.10, 4.1.8, 4.2.0-rc2

Description

Summary

Under certain conditions, attackers can abuse the translation feature to bypass the server-side HTML sanitization, allowing unescaped HTML to execute in the browser.

Details

TBA. This advisory will be edited with more details on 2023/10/02, when admins have been given some time to update, as we think any amount of detail would make it easier to come up with an exploit.

Impact

The impact is limited thanks to Mastodon's strict Content Security Policy, blocking inline scripts, etc. However a CSP bypass or loophole could be exploited to execute malicious XSS,

Furthermore, it requires user interaction, as this can only occur upon clicking the “Translate” button on a malicious post.

Severity

High
8.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

CVE ID

CVE-2023-42452

Weaknesses

Credits