Reflected XSS on an Army website
A U.S. Army 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 23 hours
- Fixed in 43 days
- Disclosed after 51 days
Summary by the program
A U.S. Army website was vulnerable to a 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 failed to properly sanitise or encode user-supplied input before reflecting it back in a response.
Impact
An attacker could trick a user into executing a malicious script, potentially revealing the user's browser 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 you type 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 you click it, that script runs in your browser as if the website itself had sent it. This can let the attacker read your cookies (small files that keep you logged in) or change what you see on the page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.