Skip to content
XSS Write-up Beginner

Reflected Xss lead me to Hall-of Fame

A parameter called client_id was reflected without filtering, allowing an attacker to inject and execute JavaScript. The researcher confirmed the vulnerability by duplicating a script payload, which executed successfully.

medium.com

Published on medium.com

بس� الله، والصلاة والسلا� على رسول الله الح� د لله الذي عَلَّ� َ بالقل� .. عَلَّ� َ الإنسانَ � ا ل� يَعْلَ� والصلاةُ والسلا� ُ على خيرِ � ُعَلِّ� ي الناسِ الخير � ح� د

MahmoudKroush (xgoon), 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 failed to sanitise or encode user input in the client_id parameter before reflecting it in the response.

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

How it was found

  1. Collect subdomains using Subfinder and Assetfinder.
  2. Filter live subdomains with httpx.
  3. Gather URLs using Waybackurls, GAU, and Katana, then filter with uro.
  4. Search for XSS-prone endpoints using gf xss.
  5. Identify unfiltered parameters with kxss, finding client_id.
  6. Test payloads in Burp Repeater, confirming execution with a duplicated script tag.

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.

A reflected cross-site scripting (XSS) bug happens when a website takes something you type (like a parameter in the URL) and puts it directly into the page without cleaning it. An attacker can craft a link that, when clicked, runs their own JavaScript in the victim's browser. This can steal cookies or perform actions as the victim.

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.