Skip to content
XSS Write-up Beginner

How I found XSS on Admin Page without login!

An admin login page reflected a URL parameter without sanitisation, allowing an attacker to inject an XSS payload that executed in the browser. The attacker could run arbitrary JavaScript in the context of the admin page, though the report does not demonstrate any further impact.

Abdelrhman Allam Follow

Published on sl4x0.medium.com

بس� الله الرح� ن الرحي� Hello Awesome Hackers, this is my first Write-Ups in Real Target; I will explain how Fuzzing helped me get an XSS on Admin Page Just in 1 Minute!

Abdelrhman Allam (sl4x0), on sl4x0.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 'perspective' parameter into the HTML without proper output encoding.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Find the admin login endpoint by collecting subdomains and endpoints and searching for keywords like admin.
  2. Try default passwords and SQL injection payloads on the login form, without success.
  3. Use Arjun to fuzz for parameters and notice an error that reveals a parameter.
  4. Construct a full URL with the parameter and an XSS payload.
  5. Submit the URL and view the page source to confirm the payload is reflected.
  6. Load the crafted URL and observe the JavaScript alert executing.

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 page run their own JavaScript. Here, a parameter called 'perspective' was reflected into the admin login page, and a crafted link made the browser show an alert box. This could let an attacker do things in the admin's browser, but the report only shows the alert.

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 Abdelrhman Allam

View all

1 more disclosed report, 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.