How I found my first XSS on a Bug Bounty Program
A translation helper feature on a cryptocurrency exchange site reflected user input, and although a simple payload was sanitised, a longer polyglot payload executed as XSS. An attacker could run script in a victim's browser via the translation input.
Published on kingcoolvikas.medium.com
In this article, I will tell how I found my first valid XSS on a bug bounty program. So let’s start
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 translation feature reflected input into the page without correctly neutralising all payload variants, so a longer polyglot bypassed the sanitisation.
Impact
An attacker could execute script in a victim's browser through the translation feature, though the report does not describe any further actions or data access.
What the attacker needed
Access to the translation feature; victim views crafted translation input
How it was found
- Find the program and review its scope, which was only the main domain.
- Revisit the site after new features were added and capture requests with Burp Suite.
- Identify the translation helper input box and try a simple XSS payload.
- Observe the simple payload was sanitised, then send the request to Intruder and fuzz with XSS payload lists.
- Sort results by response length and find longer payloads that may bypass filtering.
- Confirm the polyglot payload fires when viewing the response.
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.
Cross-site scripting (XSS) is when a website puts user-supplied text into a page without making it safe, so the browser runs it as code. Here the translation box let a crafted string run JavaScript, which could let an attacker act as the victim in their browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.