Skip to content
XSS Write-up Intermediate

XSS protection bypass made my quickest bounty ever

The public discussion comment box allowed HTML injection, and after basic script filtering was added, an iframe with a data URI containing a script still executed, enabling stored cross-site scripting. An attacker could run arbitrary JavaScript in the context of other users viewing the comment.

Yeasir Arafat Follow

Published on medium.com

Bounty$150 View original

Hi All,This is Yeasir Arafat here.I would love to share my last XSS which made my fastest bounty ever.I believe sharing is caring :D

Yeasir Arafat, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the input filter blocked common script tags but did not sanitise iframe elements with data: URIs, allowing script execution through the embedded document.

What the attacker needed

Ability to post comments on public discussion; victim views the comment

How it was found

  1. Find the public discussion comment box that accepts HTML.
  2. Try common XSS payloads and observe that a firewall blocks them.
  3. Notice that an iframe payload produces a different response.
  4. Submit an iframe with a data URI containing a script to achieve stored XSS.

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 write-up has not been written yet. The Original tab links to the source.

A website let people post comments that could include HTML, the code that formats web pages. The site tried to block dangerous scripts but missed a way to embed a script inside an iframe, a small window within a page. This let an attacker run their own code when other people viewed the comment.

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 Yeasir Arafat

View all

4 more disclosed reports, best first.

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.