Skip to content
XSS Write-up Beginner

Hello everyone, I’m back with a new blog

A PHP page reflected user input from a query string parameter without any filtering or sanitisation. An attacker could inject a script payload that executes in a victim's browser, achieving reflected cross-site scripting.

medium.com

Published on medium.com

Subfinder: Used for discovering subdomains associated with the target. This tool helps identify additional entry points that may not be immediately visible.

Gopi Mukka, 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

Impact

An attacker could execute arbitrary script in a victim's browser via a crafted link, though the text does not describe any specific harm beyond the alert.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Use Google Dorks and subdomain tools to find a PHP file that takes a query string parameter.
  2. Test different values in the parameter to see how input is handled.
  3. Inject an XSS payload into the vulnerable input field and observe the alert firing.

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 web page took text from the address bar and put it straight into the page it sent back, without cleaning it first. Because of that, someone could craft a link that makes the page run their own JavaScript in the visitor's browser. This is called reflected cross-site scripting, or XSS.

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.