Skip to content
XSS Write-up Beginner

How i was able to find my first 3 bugs in bugcrowd

Three endpoints on a subdomain reflected a URL parameter into the page without encoding, so an attacker could inject script that ran in a victim's browser. The author found them by fuzzing and parameter discovery and got paid for all three.

medium.com

Published on medium.com

I’m mrxw, a bug bounty hunter on Bugcrowd. This is my first ever write-up and I hope you like it.

mrx_w_, 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 echoed user-supplied parameter values into HTML without output encoding.

Impact

An attacker could run arbitrary script in a victim's browser via a crafted link, though the report only demonstrates an alert box.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Enumerate subdomains and find live hosts.
  2. Fuzz a live subdomain to discover endpoints such as aboutus.html.
  3. Use parameter discovery to find a reflected parameter named title.
  4. Confirm the value is reflected unencoded inside the title tags.
  5. Inject a script tag and observe it executes.
  6. Repeat with a larger wordlist to find two more endpoints with vulnerable parameters.

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.

When a website takes something you type in the address bar and puts it straight into the page without cleaning it, you can sneak in code. That code then runs in the browser of anyone who opens your crafted link, which is called cross-site scripting (XSS). Here the page title and other parameters were echoed back raw, so a simple script tag executed.

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.