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.
- 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)
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
- Create a restaurant or dish whose name contains HTML or script characters.
- Open the restaurant search page for that location.
- 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.