Skip to content
XSS Disclosed report Beginner

Reflected XSS in ██████████

A reflected cross-site scripting flaw existed in the militarybranch parameter of a registration page. An attacker could craft a link that, when visited, would execute script in the victim's browser and potentially steal cookies.

0xd3adc0de Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 16 days
  • Disclosed after 30 days

Description: XSS vulnerability found on one of ██████████ subdomains. [ DoD scope]

After analyzing https://████████████/ (███████) I found path/user/NextRequestAccount.action page that have militarybranch parameter in GET request. militarybranch parameter vulnerable to XSS vulnerability.

https://█████████████/ requires a valid user to access the contents, but the registration page is accessible to all visitors without any restrictions or credentials. ████

User should select Military Branch in registration page and there is reflection point! Modifying militarybranch parameter in request and set payload on it, you'll receive XSS Success! alert box.

Payload: https://████████████/path/user/NextRequestAccount.action?militarybranch=███%3CHTMl%0Aonmouseover%0A=%0Aalert(%27XSSSuccess!%27)%0Dx//&firstName=0xd3adc0de&middleName=0xd3adc0de&lastName=0xd3adc0de&email=0xd3adc0de&title=0xd3adc0de&department=&organization=&ship=0xd3adc0de&orgid=&location= █████

References

https://owasp.org/www-community/attacks/xss/

Impact

By exploiting this vulnerability an attacker can trick the users to execute XSS and steal user's cookies. Launch advanced phishing attacks. Execute browser-based attacks etc.

System Host(s)

████████████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  • Visit the following URL

https://████████████/path/user/NextRequestAccount.action?militarybranch=████%3CHTMl%0Aonmouseover%0A=%0Aalert(%27XSSSuccess!%27)%0Dx//&firstName=0xd3adc0de&middleName=0xd3adc0de&lastName=0xd3adc0de&email=0xd3adc0de&title=0xd3adc0de&department=&organization=&ship=0xd3adc0de&orgid=&location= you will receive XSS Success! alert box.

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by 0xd3adc0de. 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 reflected the militarybranch parameter into the HTML response without proper output encoding or validation.

Impact

An attacker could trick users into executing script to steal cookies and launch phishing or other browser-based attacks.

What the attacker needed

Victim clicks a crafted link

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 typed into a form field without cleaning it, so a crafted link could run code in the visitor's browser.

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 0xd3adc0de

View all

3 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.