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.
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 receiveXSS Success!alert box.
Suggested Mitigation/Remediation Actions
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
- Visit the crafted URL containing the malicious 'home' parameter.
- Click the link labelled 'Click here to return to your application.'
- 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.