DOM Based XSS on an Army website
A U.S. Army website had a DOM-based cross-site scripting vulnerability, allowing an attacker to craft a URL that executes a malicious script in a victim's browser. This could potentially reveal browser cookies or modify web content.
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 14 days
- Disclosed after 28 days
Summary by the program
A U.S. Army website was vulnerable to a DOM based 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's client-side JavaScript took user-controlled input from the URL and inserted it into the page without proper sanitisation, leading to DOM-based XSS.
Impact
An attacker could potentially steal a user's browser cookies or modify web content, but the text does not specify any further impact or whether defences limited the attack.
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 lets an attacker run harmful code in other people's browsers. Here the problem was in browser-side code (DOM-based). An attacker could trick someone into clicking a crafted link, and the script could steal that person's cookies 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.