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.
Originally disclosed on HackerOne
- 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:
- Go to intensedebate.com/moderate/{{-ID-}}
- Go to comments > allow images in comments
- Now go to your blog and add this payload as comment :
{{media:1}}
- You'll notice the alert will pop as result for the "onload" attribute ,
A helpful video :
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
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
- Open the moderation area for the blog's Intense Debate account.
- In the comment settings, enable the option that allows images in comments.
- Post a comment on the blog containing an image whose onload attribute holds script.
- 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.