Reflected XSS on a Department of Defense website
A Department of Defense website reflected user input without proper sanitisation, allowing an attacker to craft a URL that executes a malicious script in a victim's browser. This could let the attacker steal cookies or modify web content.
Originally disclosed on HackerOne
- Triaged in 21 hours
- Fixed in 47 days
- Disclosed after 51 days
Summary by the program
A Department of Defense website was vulnerable to a reflected cross-site scripting attack which may be used to trick a web user into executing a malicious script, potentially revealing a user's browser cookies or modify web content. juliocesar was able to demonstrate this vulnerability by crafting a specially formatted URL. Thanks juliocesar!
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 echoed a URL parameter into the page without encoding or validating it, so script code in the parameter ran in the browser.
Impact
An attacker could trick a user into clicking a crafted link and run script in the user's browser, potentially revealing cookies 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 when a website takes something a user typed or put in a link and shows it back on the page without cleaning it first. An attacker can put a small script in a link, and if someone clicks it, that script runs in their browser as if the website itself had written it. This can let the attacker read the victim's cookies (small files that keep them logged in) 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.