My First XSS Vulnerability. The Day I Started My Bug Bounty Journ
An input field on a website did not filter user-supplied text, so a script tag typed into it was saved and executed as a popup for visitors. An attacker could have used this stored cross-site scripting flaw to steal cookies and hijack accounts.
My name is Muhammad Uzair Khan. I am a cybersecurity student and this is the story of how I found my first XSS vulnerability.
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 saved user input and rendered it back into pages without encoding or filtering it.
Impact
An attacker could have stolen user cookies and hijacked accounts, putting real users at risk.
What the attacker needed
A public input field on the site; victim visits the affected page
How it was found
- Find an input field on the website.
- Type a script payload into the field and submit it.
- Observe the script executing as a popup, confirming 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.
Cross-site scripting (XSS) happens when a website takes text a user types and later shows it to other people without cleaning it first. If that text contains code, the browser runs it as if the site itself had written it. Here the text was saved, so every visitor to that page would run the attacker's code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.