Skip to content
XSS Disclosed report Beginner

XSS on ███

A reflected cross-site scripting flaw existed in the search function of a site, where a crafted search term was executed as script. An attacker could run script in a victim's browser to steal session data or act as the user.

bewgsy Follow

Originally disclosed on HackerOne

  • Triaged in 20 hours
  • Fixed in 24 days
  • Disclosed after 10 months

Description

A reflected Cross-Site Scripting (XSS) vulnerability exists on the ████ search

Steps

  1. Visit: █████████
  2. Enter this in the search: test`-alert(0)-`k or simply visit: ████████
  3. XSS is Executed!

Impact

An attacker can potentially:

  • Steal credentials or session tokens by accessing document.cookie or localStorage.
  • Log keystrokes to capture sensitive user input, including passwords or credit card data.
  • Perform actions on behalf of authenticated users (e.g., change settings, send messages).
  • Deface parts of the UI or inject misleading content (e.g., fake login prompts).
  • Exfiltrate CSRF tokens or other DOM-accessible secrets.
  • Redirect users to malicious sites or deliver browser-based exploits.
  • Propagate the payload across users (e.g., wormable XSS in chat or profile systems).

System Host(s)

██████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Visit: ████████
  2. Enter this in the search: test`-alert(0)-`k or simply visit: ██████
  3. XSS is Executed!

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by bewgsy. 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 search parameter was reflected into the page without proper output encoding, allowing script to execute.

Impact

An attacker could steal session tokens or credentials, perform actions as the user, deface the page, or redirect users to malicious sites.

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 when a website takes something a user typed and puts it into the page without making it safe, so the browser runs it as code. Here, the search box echoed the search term back as script, so a link with a special search term could run code in the visitor's browser. That code could read cookies (small pieces of login data) or act as the logged-in user.

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.