Skip to content
XSS Disclosed report Beginner

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.

x3ph_ Follow

Originally disclosed on HackerOne

  • 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

  1. Click https://██████████/fcgi-bin/getplot.py?plot=aaa%3Ch1%20onauxclick=confirm(document.domain)%3ERIGHT%20CLICK%20HERE
  2. 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

  1. Click https://████████/fcgi-bin/getplot.py?plot=aaa%3Ch1%20onauxclick=confirm(document.domain)%3ERIGHT%20CLICK%20HERE
  2. Observe the popup showing document.domain when right clicking "RIGHT CLICK HERE"

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by x3ph_. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Open the crafted URL containing the plot parameter with the injected markup.
  2. Right-click the text shown on the page.
  3. 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.

More by x3ph_

View all

5 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.