Skip to content
XSS Disclosed report Intermediate

DOM Based XSS on a DoD website

A DoD 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 reveal browser cookies or modify web content.

juliocesar Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 5 months
  • Disclosed after 6 months

Summary by the program

A DoD 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. Thank you!

The original report as published on HackerOne, by juliocesar. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 page's client-side JavaScript took data from the URL and inserted it into the page without proper sanitisation.

Impact

An attacker could trick a user into clicking a crafted link and execute 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 a flaw where a website lets an attacker run their own code in another user's browser. Here, a specially crafted link could make the victim's browser run the attacker's script, which might steal 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.

More by juliocesar

View all

7 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.