Skip to content
XSS Disclosed report Beginner

Cross-Site Scripting via URL on ███████

A reflected cross-site scripting flaw existed in a GET parameter on a Department of Defense domain, allowing an attacker to inject a script that runs in a victim's browser. The reporter claims this could lead to cookie theft and session hijacking.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in 16 hours
  • Fixed in 37 days
  • Disclosed after 4 months

Description:

I discovered a Cross-Site Scripting (XSS) vulnerability on ███ , specifically through the GET method. This vulnerability allows an attacker to inject malicious scripts that could be executed, potentially leading to cookie theft, session hijacking, and other malicious actions.

Payload: <image src=1 onerror=confirm(9706)>

████████ is an official domain from DoD. ██████████ ██████

References

█████

Impact

Exploitation of this vulnerability can lead to severe consequences, including but not limited: Session Hijacking: Attackers can steal cookies and impersonate legitimate users.

System Host(s)

█████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Open the link:

███

Suggested Mitigation/Remediation Actions

Apply context-dependent encoding and/or validation to user input rendered on a page.

The original report as published on HackerOne, by jonasdiasrebelo. 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 application reflected a GET parameter into the page without context-appropriate encoding or validation.

Impact

An attacker could steal cookies and impersonate legitimate users, though the report does not demonstrate this beyond a proof-of-concept alert.

What the attacker needed

Victim opens a crafted link

How it was found

  1. Open the crafted link containing the injected script in the GET parameter.

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 a user typed or clicked and puts it on the page without cleaning it first, so an attacker can sneak in their own small program. Here the attacker puts that program in a link, and anyone who opens the link runs it in their browser. That program could then read the victim's login cookie, which is like a temporary key that keeps them signed in.

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 jonasdiasrebelo

View all

27 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.