Skip to content
XSS Disclosed report Beginner

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

A reflected cross-site scripting flaw existed in the 'home' parameter of a logout page on a subdomain. An attacker could craft a link that, when a victim clicked a link on the page, executed JavaScript in the victim's browser, potentially stealing cookies or enabling phishing.

0xd3adc0de Follow

Originally disclosed on HackerOne

  • Triaged in 14 hours
  • Fixed in 42 days
  • Disclosed after 51 days

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

After analyzing https://████████████/ (national levee database) I found auth/logout.jsx page that have home parameter in GET request. home parameter vulnerable to XSS vulnerability.

Payload: https://█████████████████/auth/logout.jsx?home=javascript:(alert(%27XSS%20Success!%27))() ████████

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://████████████████/auth/logout.jsx?home=javascript:(alert(%27XSS%20Success!%27))()

  • click on Click here to return to your application. and 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

Impact

An attacker could trick users into executing JavaScript, potentially stealing cookies and enabling advanced phishing or other browser-based attacks.

What the attacker needed

Victim clicks a crafted link; victim clicks a link on the page

How it was found

  1. Visit the crafted URL containing the malicious 'home' parameter.
  2. Click the link labelled 'Click here to return to your application.'
  3. Observe the 'XSS Success!' alert box.

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.

XSS lets an attacker run JavaScript in someone else's browser on a trusted site. Here the 'home' parameter was vulnerable, so a crafted link could run code when the victim clicked a link on the page. That code could read cookies.

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.