Skip to content
XSS Disclosed report Beginner

Reflected XSS [███]

A search page reflected the 'where' parameter into the response without encoding, so a crafted URL containing an SVG element with an onload handler executed script in the victim's browser. An attacker could run arbitrary JavaScript in a victim's session, potentially stealing cookies or acting as the user.

fdeleite Follow

Originally disclosed on HackerOne

  • Triaged in 16 hours
  • Fixed in 8 months
  • Disclosed after 8 months

Reflected cross-site scripting (XSS) arises when an application receives data in an HTTP request and includes that data within the immediate response in an unsafe way. An attacker can execute JavaScript arbitrary code on the victim's session. Steps To Reproduce

Go to this URL: https://████████/7/0/33/1d/www.citysearch.com/search?what=x&where=place%22%3E%3Csvg+onload=confirm(document.domain)%3E

Impact

  • Perform any action within the application that the user can perform.
  • View any information that the user is able to view.
  • Modify any information that the user is able to modify.
  • Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user.
  • Steal user's cookie.

The original report as published on HackerOne, by fdeleite. 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 page inserted the 'where' parameter into its HTML response without output encoding or sanitisation.

Impact

An attacker could perform actions as the victim, view or modify their information, interact with other users as them, and steal their cookie.

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.

Reflected cross-site scripting happens when a website takes something from the web address you typed and puts it straight into the page without cleaning it. If that something is code, the browser runs it as if the site itself had written it. The attacker just needs to get a victim to open a specially crafted link.

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 fdeleite

View all

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