Skip to content
XSS Write-up Beginner

How I Made $1000+ from a Simple XSS Bug — My Bug Bounty Journey

A reflected cross-site scripting flaw existed in a search endpoint where user input was echoed back without proper sanitisation. An attacker could run script in a victim's browser to steal cookies, phish credentials or deface the page.

krishna-cyber Follow

Published on krishna-cyber.medium.com

A real-life story of how I found a simple vulnerability, reported it, and made over $1000! Learn the exact steps I took, from choosing the right target to submitting a winning report.

Krish_cyber, on krishna-cyber.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

Impact

An attacker could steal session cookies, phish credentials with a fake login form, or deface the page, potentially leading to account takeover.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Find a search endpoint that reflects input.
  2. Try a simple script tag and see it is blocked.
  3. Try an image tag with an error handler and see the alert fire.
  4. Record a proof-of-concept video showing cookie theft.

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 shows text you typed without cleaning it first, so a malicious script can run in someone else's browser. Here the search box echoed the input back, and a crafted image tag with an error handler ran JavaScript. That let the attacker act as the logged-in user.

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 krishna-cyber

View all

1 more disclosed report, 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.