Skip to content
XSS Disclosed report Beginner

XSS in "explore-keywords-dropdown" results.

The restaurant and dish name fields were not properly filtered, so a name containing HTML or script code would be executed in the browser of anyone viewing the search results. An attacker could run arbitrary JavaScript in a victim's session, for example to hook their browser with a tool such as BeEF.

gcurtiss_ Follow

Originally disclosed on HackerOne

Informational View original
  • Fixed in 5 days
  • Disclosed after 5 days

It seems that people have exploited this vulnerability before on this website, however, it remains unpatched, so here I am reporting the vulnerability.

A XSS vulnerability exists when a restaurant or dish is created with a malicious name. The title of the dish or restaurant is not properly filtered by the web application. Any code in the dish or restaurant name is executed on the client.

DEMO: https://www.zomato.com/kingman-ks/restaurants, search for: single quote, double quote, GT angle bracket. '">

Impact

An attacker could achieve XSS and inject hooks into the web browser (e.g. BeEF)

The original report as published on HackerOne, by gcurtiss_. 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 restaurant and dish names were inserted into the search results page without output encoding, so HTML and script in the name were rendered and executed.

Impact

An attacker could achieve cross-site scripting and inject hooks into the victim's web browser, such as BeEF, though the report gives no further detail on what was actually demonstrated.

What the attacker needed

Ability to create a restaurant or dish; victim views the search results

How it was found

  1. Create a restaurant or dish whose name contains HTML or script characters.
  2. Open the restaurant search page for that location.
  3. Search for the characters used in the name and observe the code executing in the browser.

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.

A website should treat text like a restaurant name as plain text, not as code. Here the site put the name straight into the page, so characters like angle brackets were treated as HTML and any script inside them ran in the visitor's browser. That lets an attacker run their own code in someone else's logged-in session.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.