Reflected XSS | https://████████
A reflected cross-site scripting flaw existed in the plot parameter of a plotting endpoint, and although a web application firewall was present, it could be bypassed. An attacker could run script in a victim's browser, potentially stealing 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 plot param. There's a WAF in place but it's possible to bypass it.
Steps to reproduce
- Click https://██████████/fcgi-bin/getplot.py?plot=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/getplot.py?plot=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 plot parameter was reflected into the HTML response without proper output encoding, and the WAF's filter could be bypassed.
Impact
The attacker could run script in the victim's browser and steal credentials and sessions, as the report states.
What the attacker needed
Victim clicks a crafted link; victim right-clicks the injected text
How it was found
- Open the crafted URL containing the plot parameter with the injected markup.
- Right-click the text shown on the page.
- Observe the popup showing 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) is when a website puts user-supplied text into a page without making it safe, so an attacker can make the browser run their code. Here the plot parameter was reflected back into the page, and a crafted link made the browser show a popup when the victim right-clicked. The firewall did not stop it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.