Skip to content
XSS Disclosed report Beginner

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

A reflected cross-site scripting flaw existed in a GET parameter, allowing an attacker to inject a script that executes in a victim's browser. This could lead to cookie theft and session hijacking.

jonasdiasrebelo Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 10 days
  • Disclosed after 52 days

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: "><img%20%20src=x%20onerror="prompt(1)

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 user input from a GET parameter into the page without proper context-dependent encoding or validation.

Impact

An attacker could steal cookies and impersonate legitimate users, leading to session hijacking.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the crafted link containing the payload 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 input from a user and puts it into a page without cleaning it first, so an attacker can sneak in their own code. Here, a crafted link made the site run the attacker's script in the victim's browser, which could let the attacker steal the victim's login session.

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.