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.
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.
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
- Visit the subdomain tunnel.target.com and find the path /a/b/c/index.php with parameters a and system.
- Test the system parameter for SQL injection using sqlmap, which reports possible XSS.
- 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.