️How I Found a Reflected XSS on India’s one of the largest co
A reflected XSS vulnerability was found on the Tata Motors website because a search parameter was not sanitised. An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing cookies or redirecting to malicious sites.
Published on medium.com
In this blog, I share my real experience as an ethical hacker who found a reflected XSS vulnerability on the official website of Tata Motors, one of India’s largest companies. I responsibly reported the issue, followed up multiple times, but received no response — even though the bug was eventually fixed silently.
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 application failed to sanitise or encode user input in the search parameter before reflecting it back in the response.
Impact
An attacker could steal cookies, conduct phishing attacks, and damage user trust; the text notes that a WAF or input filtering now blocks the payload, and the bug was silently fixed.
What the attacker needed
Victim clicks a crafted link
The fix
The vulnerability was fixed silently, likely by adding input filtering or a WAF, as the text states the bug was patched without communication.
How it was found
- Visit the Tata Motors website with a crafted search parameter containing a script.
- Observe that the browser executes the script and displays an alert.
- Use a payload that reads document.cookie to demonstrate cookie theft.
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.
Reflected XSS happens when a website takes something you type (like a search term) and puts it directly into the page without cleaning it. If an attacker tricks you into clicking a link with a malicious script in it, that script runs in your browser as if the website itself sent it. This can let the attacker read your cookies (small pieces of data that keep you logged in) or send you to a fake page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.