Reflected XSS vulnerability on a DoD website
A reflected cross-site scripting vulnerability was found on a Department of Defense website. An attacker could craft a specially formatted URL that tricks a user into executing a malicious script, potentially revealing session information or modifying web content.
- Triaged in under an hour
- Fixed in 3 months
- Disclosed after 4 months
Summary by the program
A cross-site scripting vulnerability was found on a Department of Defense website which may trick a web user into executing a malicious script, potentially revealing a user's web session information or modify web content. @yaworskwas able to demonstrate this vulnerability by crafting a specially formatted URL. Thanks @yaworsk!
Summary by the researcher
Not super exciting, here's my payload '>12345"+onfocus=alert(document.domain)+autofocus
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 website reflected user input from the URL into the page without proper encoding or validation.
Impact
An attacker could trick a user into executing a malicious script, potentially revealing session information or modifying web content.
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) is a flaw where a website inserts user-supplied text into a page without making it safe, so a crafted link can run a script in the victim's browser. Here, the attacker made a link that, when clicked, would run code in the context of the DoD site, which could let the attacker read the user's session or change what the page shows.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.