Reflected XSS in Zomato Mobile - category parameter
The category parameter on Zomato's mobile photo pages was reflected into the page without proper encoding, allowing an attacker to inject a script that executes in the victim's browser. An attacker could craft a link that runs arbitrary JavaScript in the context of Zomato's site.
- Fixed in 7 days
- Disclosed after 37 days
Hi there. I have found a reflected XSS in Zomato.com mobile. This XSS affects mobile users of Zomato. Steps to reproduce:
- Go to Zomato.com and change your user agent to mobile (iPhone/Android user agent)
- Go to a certain restaurant/place and their photos (e.g. site: https://www.zomato.com/manila/artsy-cafe-diliman-quezon-city/photos?category=ambience)
- Change the value in the
categoryparameter to an XSS payload: ```
"--><%2Fscript><svg%2Fonload%3D'%3Balert(document.domain)%3B'>``` 4. Final URL will look like this: https://www.zomato.com/manila/artsy-cafe-diliman-quezon-city/photos?category=%22--%3E%3C%2Fscript%3E%3Csvg%2Fonload%3D%27%3Balert%28document.domain%29%3B%27%3E
XSS will execute. POC attached.
Thanks and I hope you consider and fix this
Attachments


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 application reflected the category parameter into the HTML without proper output encoding, allowing injected markup and script to execute.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser when they visit a crafted link, potentially leading to session theft or other client-side attacks, though the report does not demonstrate specific consequences.
What the attacker needed
Victim uses a mobile user agent; victim clicks a crafted link
How it was found
- Set the browser's user agent to a mobile one (iPhone or Android).
- Navigate to a restaurant's photos page with a category parameter.
- Replace the category value with a crafted XSS payload.
- Load the resulting URL and observe the script executing.
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.
When a site puts something from the address bar, like a category name, into the page without cleaning it, an attacker can sneak in code the browser runs. This is cross-site scripting (XSS). Here, a crafted link could run the attacker's code on Zomato's site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.