Skip to content
XSS Disclosed report Beginner

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.

harrymg Follow

Originally disclosed on HackerOne

  • 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:

  1. Go to Zomato.com and change your user agent to mobile (iPhone/Android user agent)
  2. 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)
  3. Change the value in the category parameter 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

Screen_Shot_05-20-17_at_05.41_PM_001.PNG
Screen_Shot_05-20-17_at_05.41_PM_001.PNG From the original on HackerOne
Screen_Shot_05-20-17_at_05.41_PM.PNG
Screen_Shot_05-20-17_at_05.41_PM.PNG

The original report as published on HackerOne, by harrymg. 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 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

  1. Set the browser's user agent to a mobile one (iPhone or Android).
  2. Navigate to a restaurant's photos page with a category parameter.
  3. Replace the category value with a crafted XSS payload.
  4. 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.

More by harrymg

View all

6 more disclosed reports, best first.

More from Eternal

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.