How I Landed My First Bug Bounty From a Basic XSS (Yes, Really)
A feedback form reflected user input into the HTML page without escaping, allowing an attacker to execute arbitrary JavaScript in a victim's browser. The attacker could steal session cookies, redirect users, or perform actions on their behalf.
medium.com
Published on medium.com
It’s easy to think that every serious bug bounty hunter spends their nights dissecting obscure vulnerabilities or chaining together exploits that only a handful of security researchers in the world could find. I used to think the same.
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 encode or sanitise user-supplied input before inserting it into the HTML response.
Impact
An attacker could steal session cookies, redirect users, or perform actions on their behalf.
What the attacker needed
Victim visits a crafted page or link; feedback form accessible
The fix
The bug was fixed by the triage team after being marked as resolved.
How it was found
- Find a feedback form buried two clicks deep.
- Submit test input containing a script tag.
- Observe that the input is reflected unescaped and the script executes.
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 a bug where a website shows user input without cleaning it, so an attacker can sneak in JavaScript code that runs in other people's browsers. This can let the attacker steal login cookies or act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.