Skip to content
XSS Disclosed report Beginner

Reflected XSS at https://████████/███/...

An unauthenticated reflected cross-site scripting flaw existed on a subdomain, where a URL parameter was echoed into the page without sanitisation. An attacker could craft a link that runs script in a victim's browser, potentially stealing cookies or altering the page.

pudsec Follow

Originally disclosed on HackerOne

  • Triaged in 24 hours
  • Fixed in 6 months
  • Disclosed after 7 months

Summary:

According to DOD Websites, the ███████ is a potential in-scope target, and where I discovered an unauthenticated GET based reflected cross-site scripting vulnerability on the ██████████ subdomain.

Steps to Reproduce:

Visit the following URL;

https://█████/█████/████████=%22%20autofocus%20onfocus=%22alert(document.domain)%22&Z_MODE=&Z_CALLER_URL=&Z_FORMROW=&Z_LONG_LIST=&Z_ISSUE_WAIT=

The following generated in the page source;

███████ VALUE="" autofocus onfocus="alert(document.domain)"%">

You will see that a pop-up appears, demonstrating that the JavaScript was executed successfully.

Recommendations:

Sanitise any user input and check any other potential vulnerable parameters.

Impact

A cross-site scripting vulnerability allows an attacker to embed malicious code into a URL of a vulnerable page, which is then executed when a victim views the page and can be used to gain account credentials by stealing cookies or modify the destination page to perform malicious actions.

The original report as published on HackerOne, by pudsec. 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 application echoed a URL parameter into an HTML attribute without encoding or sanitising it.

Impact

An attacker could embed malicious code into a URL of a vulnerable page, which executes when a victim views it, and could be used to steal cookies or modify the page to perform malicious actions.

What the attacker needed

Victim clicks a crafted link; no authentication needed

How it was found

  1. Open the crafted URL containing the parameter value in a browser.
  2. Observe the value reflected into the page source inside an HTML attribute.
  3. See the script execute and a pop-up appear.

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.

A reflected cross-site scripting bug means a value you put in a web address is copied straight into the page that comes back, without being made safe. If that value is a small script, the victim's browser runs it as if the site itself had written it. The attacker only needs to get someone to open a prepared link.

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 pudsec

View all

1 more disclosed report, 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.