Skip to content
XSS Disclosed report Beginner

Stored XSS in Intense Debate comment system

The Intense Debate comment system allowed images in comments without sanitising their attributes, so a commenter could submit an image tag carrying an event handler. When the comment rendered, that handler ran as script in the browser of anyone viewing the blog, including moderators and admins.

hundredpercent Follow

Originally disclosed on HackerOne

High 8.2 View original
  • Triaged in 6 days
  • Fixed in 52 days
  • Paid in 52 days
  • Disclosed after 3 months

Hi Team,

Summary:

The Intense Debate comment system is vulnerable to stored xss by users , this would allow for atacking admins/users on the blog ,

Platform(s) Affected:

  • Intense Debate comment system


Steps To Reproduce:

  1. Go to intensedebate.com/moderate/{{-ID-}}
  2. Go to comments > allow images in comments
  3. Now go to your blog and add this payload as comment :
HTML
{{media:1}}
  1. You'll notice the alert will pop as result for the "onload" attribute ,


A helpful video :

2020-11-20_at_17-57-44.mp4 From the original on HackerOne

Impact

  • Stealing cookie and secter tokens
  • Editing html/css/js content for phishing attacks

Thanks for taking your valuable time to read and validate this report

The original report as published on HackerOne, by hundredpercent. 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 comment renderer accepted image markup from users and passed its attributes through without sanitising or restricting event handlers such as onload.

Impact

Script running in a reader's or moderator's session could let an attacker steal cookies and secret tokens, or alter the page's HTML, CSS and JavaScript to build phishing content.

What the attacker needed

Images enabled in comments; attacker can post a comment; victim views the comment

How it was found

  1. Open the moderation area for the blog's Intense Debate account.
  2. In the comment settings, enable the option that allows images in comments.
  3. Post a comment on the blog containing an image whose onload attribute holds script.
  4. View the comment and observe the script run as an alert.

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.

A comment box normally shows only text. Here the site also let people post images, but it did not check the extra instructions attached to the image. Those instructions can tell the browser to run a small program, called script, whenever the image loads. Because the comment is saved and shown to everyone who reads the blog, that program runs in their browsers too, which is what 'stored cross-site scripting' means.

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 hundredpercent

View all

4 more disclosed reports, best first.

More from Automattic

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.