Skip to content
XSS Disclosed report Intermediate

Stored XSS in topics because of whitelisted_generic engine vulnerability

skavans Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 7 days
  • Paid in 7 days
  • Disclosed after 8 days

Hello!

Steps to reproduce:

  1. Paste this payload URL in the topic: http://89.223.28.48/og_image.html?uncache1234
  2. Save the post and you will see the XSS will fire
______________2017-01-12___21.03.14.png
______________2017-01-12___21.03.14.png From the original on HackerOne

Though you now escape the OpenGraph data, the whitelisted_generic onebox engine decodes variables values back at lines: 202 and 207. Then these decoded values are injected in the raw HTML here and here that leads to XSS attack possibility.

Example post with stored XSS inside is: https://try.discourse.org/t/testing-is-in-progress/620 Please let me know if you need some extra information to locate and fix the bug.

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.