Skip to content
XSS Disclosed report Beginner

Reflected XSS in https://███████ via search parameter

A search parameter on a public site echoed user input back into the page without proper encoding, so a crafted link could run script in a victim's browser. An attacker could send such a link to steal cookies or other session data.

kegn Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 54 days
  • Disclosed after 59 days

Summary: Reflected XSS in https://█████████

Description: I noticed I got an error when visiting https://███.mil stating

The provided hostname is not valid for this server

I pinged the site to see that it resolves to https://██████

██████

Based on the content of the site I believe this asset is a DOD asset due to the logos and verbiage. The staff page has all @mail.mil email contacts. If I should report this to https://www.us-cert.gov/report instead, please allow me to self close this as the owner/operator on this one is tough to determine.

██████████

The search parameter is subject to Reflected XSS

  • Visit https://█████/search?search_text=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
  • See the response in browser

████

Impact

Reflected XSS allows an attacker to send seemingly legitimate links to a victim, potentially stealing cookies or other sensitive session data via unwanted javascript execution

The original report as published on HackerOne, by kegn. 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

Impact

An attacker could send seemingly legitimate links to a victim and potentially steal cookies or other sensitive session data through unwanted script execution.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the site's search URL with a script payload in the search parameter.
  2. Load the resulting URL in a browser and observe the script running in the response.

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 site puts search input straight back into the page, it must treat it as plain text, not code. Here it did not, so a link could carry a script the victim's browser runs. That could let an attacker steal cookies or session data.

What is XSS?

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

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.