Skip to content
XSS Write-up Intermediate

You can add extra zeroes. XSS bypass on a private bug bounty program

A reflected XSS vulnerability existed in a 'name' parameter that was inserted into an iframe's src attribute without proper encoding. The attacker bypassed a filter blocking parentheses by using HTML entity encoding with extra leading zeroes, allowing script execution.

snoopy Follow

Published on medium.com

Bounty$500 View original

Hi incredible hackers. I got a private invite, and got curious about the program, so I signed up into the main website and started clicking around and using all functions.

snoopy, 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 application failed to properly encode user input before inserting it into an HTML attribute, and the filter blocking parentheses was bypassed using HTML entity encoding with extra zeroes.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking or other client-side attacks.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Find an endpoint where the 'name' parameter is reflected inside an iframe tag.
  2. Observe that the double quote character is not encoded, allowing escape from the src attribute.
  3. Attempt payloads with parentheses, which are blocked with a 403 error.
  4. Use HTML entity encoding with extra zeroes to represent the parenthesis character and bypass the filter.

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 took user input and put it directly into a page without cleaning it, so an attacker could inject code that runs in a victim's browser. This is called cross-site scripting (XSS). The attacker found a way around a filter that tried to block certain characters.

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 snoopy

View all

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