Stored Cross site scripting
A stored cross-site scripting flaw existed in the review feature of a Zomato restaurant page. An attacker could submit a review containing a crafted payload that executed script when the review was edited.
- Disclosed after 11 days
hello zomato team,
i have found a stored xss on https://www.zomato.com/beirut/garcias-dbayeh-metn
step to reproduce
1- write a review by this payload : >'>"><img src=x onmouseover =prompt(document.domain)> 2-click edit 3- xss will excute :)
video : https://youtu.be/ibawEBPQs3g
best regaeds, Amir Ezat.
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 review content was stored without proper sanitisation and later rendered unsafely in the edit view.
Impact
An attacker could run script in the browser of a user who edits the malicious review.
What the attacker needed
Ability to post a review; victim edits the review
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.
XSS is when a site shows user input without cleaning it, so a snippet runs as code. Here a review with a special image tag was saved and ran a script when the review was edited.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.