Skip to content
XSS Disclosed report Intermediate CVE-2024-32464

[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.

ooooooo_q Follow

Originally disclosed on HackerOne

Bounty$2,600 Medium View original
  • 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.

https://discuss.rubyonrails.org/t/cve-2024-32464-actiontext-contentattachments-can-contain-unsanitized-html/85949

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.

The original report as published on HackerOne, by ooooooo_q. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by ooooooo_q

View all

53 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.