Skip to content
XSS Write-up Beginner

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.

theindiannetwork Follow

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.

TheIndianNetwork, on theindiannetwork.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 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

  1. Enter a simple script into the search bar and observe no execution.
  2. Try encoded and event-handler payloads, still no execution.
  3. Focus on product listings where the search term is reflected in the page title and results.
  4. 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.

More by theindiannetwork

View all

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