How I Discovered a Critical Store XSS Vulnerability and Earned a $7,000 Bounty — My Struggle…
The author claims to have found a stored cross-site scripting (XSS) vulnerability in a major online store's search functionality, where a script injected into the search bar was reflected in the page title and product results. They claim this could allow an attacker to steal session cookies and hijack user accounts.
Published on theindiannetwork.medium.com
There’s something uniquely satisfying about finding a bug. Especially when it’s a vulnerability that could potentially endanger millions of users.
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 search input was not properly sanitised or output-encoded before being placed into the page title and product results.
Impact
The author claims the stored XSS could steal session cookies and hijack user accounts, but no independent verification or defence details are provided.
What the attacker needed
Victim visits infected page; attacker can host a server
The fix
The text does not state that the vulnerability was fixed, but recommends input validation, output encoding, and a Content Security Policy.
How it was found
- Enter a simple script into the search bar and observe no execution.
- Try encoded and event-handler payloads, still no execution.
- Focus on product listings where the search term is reflected in the page title and results.
- Inject a script that sends cookies to an external server and observe execution.
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 flaw where a website shows user input without cleaning it, so an attacker can make a victim's browser run harmful code. In this story, the author says they typed a script into a search box and it later ran for other visitors, which could let them steal login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.