Reflected XSS [██████]
A reflected cross-site scripting flaw existed in a search URL parameter, where the application echoed the input into the response without safe encoding. An attacker could craft a link that runs JavaScript in a victim's session, allowing actions, data access and cookie theft as that user.
- Triaged in 9 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.
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 HTML response without output encoding, so markup in the input was interpreted by the browser.
Impact
An attacker could run script in the victim's session to perform the user's actions, read what the user can read, change what the user can change, interact with other users as the victim, and steal the user's cookie.
What the attacker needed
Victim opens a crafted link
How it was found
- Open the supplied search URL containing the crafted parameter value.
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 means a website takes something from the address you visit and puts it straight into the page without cleaning it. If that something is code, the browser runs it as if the site itself wrote it. The attacker only needs to trick someone into opening a prepared link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.