Skip to content
XSS Write-up Beginner

Easy Peasy RXSS

A reflected cross-site scripting vulnerability was found in the 'system' parameter of a subdomain's index.php page. An attacker could inject a script that executes in a victim's browser, potentially stealing cookies or performing other actions.

dsmodi484 Follow

Published on medium.com

Hello Hackers, Today in this quick writeup I am going to share one of my finding of Reflected xss which was actually easy to find. So let’s jump into it.

cryptoshant🇮🇳, 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 the 'system' parameter into the HTML response without proper output encoding or sanitisation.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing session cookies, performing phishing, redirecting users, or hijacking sessions.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Visit the subdomain tunnel.target.com and find the path /a/b/c/index.php with parameters a and system.
  2. Test the system parameter for SQL injection using sqlmap, which reports possible XSS.
  3. Inject a script payload into the system parameter to confirm reflected XSS.

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 a bug where a website puts user input into a page without cleaning it, so an attacker can make the site run their own JavaScript. Here, the 'system' parameter in the URL was reflected back into the page, allowing a script to run. This could let an attacker steal a victim's session cookie or redirect them to a malicious site.

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 dsmodi484

View all

8 more disclosed reports, 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.