Skip to content
XSS Disclosed report Beginner

Reflected XSS on a Navy website

A U.S. Navy 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 page content.

samux Follow

Originally disclosed on HackerOne

  • Triaged in 24 hours
  • Fixed in 30 days
  • Disclosed after 51 days

Summary by the program

A U.S. Navy 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. samux was able to demonstrate this vulnerability by crafting a specially formatted URL. Thanks samux!

The original report as published on HackerOne, by samux. 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 website failed to properly encode or validate user-supplied input before including it in the page.

Impact

An attacker could trick a user into running 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.

When a website takes something you type or put in the address bar and shows it back on the page without cleaning it first, an attacker can put code (a script) in that spot. If a victim clicks a link the attacker made, the victim's browser runs that script as if the website itself had sent it. This is called reflected cross-site scripting because the malicious input is reflected straight back to the victim.

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 samux

View all

1 more disclosed report, 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.