XSS in topics because of bandcamp preview engine vulnerability
- Triaged in 15 hours
- Fixed in 18 hours
- Paid in 18 hours
- Disclosed after 10 days
- Load http://try.discourse.org
- Click "New topic"
- 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"
- Wait for the preview engine to parse the link
- XSS will fire

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