Reflected XSS | https://████
A reflected cross-site scripting flaw existed in the project parameter of a release script, and a WAF could be bypassed. An attacker could run script in a victim's browser to steal credentials and sessions.
- Triaged in 37 hours
- Fixed in 18 days
- Disclosed after 34 days
Summary
Hi team, there's a reflected XSS on https://█████████ using the project param. There's a WAF in place but it's possible to bypass it.
Steps to reproduce
- Click https://████████/fcgi-bin/release.py?project=aaa%3Ch1%20onauxclick=confirm(document.domain)%3ERIGHT%20CLICK%20HERE
- Observe the popup showing document.domain when right clicking "RIGHT CLICK HERE"
███
Impact
The attacker can trigger remote code execution on the victim’s browser, and steal credentials, sessions, and potentially send malware to the victim.
System Host(s)
███████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Click https://█████████/fcgi-bin/release.py?project=aaa%3Ch1%20onauxclick=confirm(document.domain)%3ERIGHT%20CLICK%20HERE
- Observe the popup showing document.domain when right clicking "RIGHT CLICK HERE"
Suggested Mitigation/Remediation Actions
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the project parameter was reflected into the HTML response without output encoding, and the WAF's rules did not cover the chosen event handler.
Impact
The attacker could run code in the victim's browser and steal credentials and sessions, and potentially send malware to the victim.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open the crafted release script URL with the project parameter containing an HTML element with an event handler.
- Right-click the injected text and observe the popup showing the document domain.
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 report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) lets an attacker slip their own JavaScript into a page that other people view. Here the page echoed back whatever was in the project part of the link without cleaning it, so a crafted link could run code in the visitor's browser. The report also says a web application firewall (a filter that blocks bad requests) was present but could be got around.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.