Skip to content
XSS Disclosed report Beginner

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.

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 project param. There's a WAF in place but it's possible to bypass it. Steps to reproduce

  1. Click https://████████/fcgi-bin/release.py?project=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/release.py?project=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 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

  1. Open the crafted release script URL with the project parameter containing an HTML element with an event handler.
  2. 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.

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.