Discovery of Reflected XSS Vulnerability on a Global Car Website
A search input field on a global car website reflected unsanitised user input, allowing an attacker to inject and execute JavaScript in a victim's browser. The attacker could steal session cookies and potentially hijack accounts.
Published on medium.com
As part of my ongoing security assessments on popular websites, I’ve once again identified a Reflected Cross-Site Scripting (RXSS) vulnerability on a well-known global car website. This vulnerability allowed me to inject and execute JavaScript on the user's browser, displaying an alert and retrieving sensitive…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the search input was reflected into the page without proper output encoding or sanitisation.
Impact
An attacker could steal a victim's session cookies and potentially hijack their account without needing login credentials.
What the attacker needed
Victim clicks a crafted search link
How it was found
- Enter a JavaScript payload into the search input field.
- Submit the search request.
- Observe the alert box pop up, confirming script execution.
- Inject a payload that sends document.cookie to an attacker-controlled server.
- Retrieve the victim's session cookies on the attacker server.
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 write-up has not been written yet. The Original tab links to the source.
When a website takes what you type into a search box and puts it directly into the page without cleaning it first, an attacker can type code instead of normal text. That code then runs in the browser of anyone who clicks a crafted link, letting the attacker read things like login cookies. This is called reflected cross-site scripting because the malicious input bounces back to the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.