Skip to content
XSS Write-up Beginner

Unlocking My First Bug Bounty: The Power of XSS Exploits Revealed

A reflected cross-site scripting vulnerability existed in a parameter on a private program's website. An attacker could inject a crafted SVG payload that executed JavaScript in a victim's browser.

Rajeevmaurya Follow

Published on medium.com

I never had thought that ill write a blog about my journey from a script kiddie to a hacker, but here i am sharing my experience as a bug bounty hunter.

Rajeevmaurya, on 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 application reflected user input into the HTML response without proper encoding or sanitisation.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking or other client-side attacks.

What the attacker needed

Victim clicks a crafted link; no WAF present

How it was found

  1. Gather endpoints using recon tools like waybackurls, getallurls, gau, and katana.
  2. Merge and deduplicate the collected URLs.
  3. Filter URLs containing query parameters.
  4. Test the parameter hunter.args with various encoded payloads.
  5. Observe that a crafted SVG payload was reflected and executed.

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 takes input from a user and puts it into a page without cleaning it, so an attacker can make the site run their own JavaScript. Here, a parameter reflected a crafted SVG tag, which ran a script when the page loaded. This could let an attacker run code in a victim's browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.