[CVE-2024-32464] ActionText ContentAttachment’s can Contain Unsanitized HTML
ContentAttachment objects embedded in a rich text area could carry HTML that was not sanitised. This could allow a cross-site scripting issue inside the Trix editor.
- Triaged in 3 days
- Fixed in 19 days
- Paid in 19 days
- Disclosed after 21 days
Summary by the program
[CVE-2024-32464] ActionText ContentAttachment’s can Contain Unsanitized HTML Instances of ActionText::Attachable::ContentAttachment included within a rich_text_area tag could potentially contain unsanitized HTML.
This has been assigned the CVE identifier CVE-2024-32464.
Versions Affected: >= 7.1.0 Not affected: < 7.1.0 Fixed Versions: 7.1.3.4
Impact This could lead to a potential cross site scripting issue within the Trix editor.
Credits Thank you ooooooo_q for reporting this!
Full Security Advisory: https://discuss.rubyonrails.org/t/cve-2024-32464-actiontext-contentattachments-can-contain-unsanitized-html/85949
The report
I made a report at https://hackerone.com/reports/2389565.
Instances of ActionText::Attachable::ContentAttachment included within a rich_text_area tag could potentially contain unsanitized HTML. This has been assigned the CVE identifier CVE-2024-32464. Versions Affected: >= 7.1.0 Not affected: < 7.1.0 Fixed Versions: 7.1.3.4
Impact
This could lead to a potential cross site scripting issue within the Trix editor.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ContentAttachment rendering path did not pass its HTML through the sanitiser that other rich text content uses.
Impact
This could lead to a cross-site scripting issue within the Trix editor, though the advisory only says 'potentially'.
What the attacker needed
Affected version 7.1.0 or later
The fix
It was fixed in version 7.1.3.4 of the affected library.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Rich text editors show formatted content, and HTML should be sanitised before display. Here one kind of embedded attachment could contain unsanitised HTML, which could potentially lead to a cross-site scripting issue in the Trix editor.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.