Skip to content
XSS Disclosed report Beginner

XSS in topics because of bandcamp preview engine vulnerability

skavans Follow

Originally disclosed on HackerOne

  • Triaged in 15 hours
  • Fixed in 18 hours
  • Paid in 18 hours
  • Disclosed after 10 days
  1. Load http://try.discourse.org
  2. Click "New topic"
  3. Enter this payload https://89.223.28.48/bandcamp.com/album/index.html?XSSa2 to field with placeholder "Type title or paste a link here"
  4. Wait for the preview engine to parse the link
  5. XSS will fire
______________2017-01-11___5.23.20.png
______________2017-01-11___5.23.20.png From the original on HackerOne

You should sanitize external data in this engine and replace matches_regexp from ^https?:\/\/.*bandcamp\.com\/album\/ to ^https?:\/\/.*\.bandcamp\.com\/album\/ to fix the issue.

The original report as published on HackerOne, by skavans. 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.

What is known

A high-severity XSS bug in Discourse. HackerOne made it public on 20 January 2017.

About XSS

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 skavans

View all

8 more disclosed reports, best first.

More from Discourse

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.