HexBrain

Eternal 路 Report #114631

Several XSS affecting Zomato.com and developers.zomato.com

Validstatus
5upvotes
2 Aug 2016disclosed

How it was found

Hi there, I have found several XSS in Zomato.com and developers.zomato.com

A. Steps to reproduce:

  1. Go to zomato.com
  2. Look for any restaurant
  3. Click "Write review" and enter the payload as your review (<img src=x onerror=alert(document.domain)>)
  4. Click "Publish review" . XSS pop up

B. Now in developers.zomato.com:

  1. Go to developers.zomato.com
  2. Go to "widgets" tab
  3. Look for "Restaurant Search" widget and click "Add Widget"
  4. Now a window will open (restaurant search), on the left side, you will see "Search for restaurant, cuisine or a dish" now, enter the payload (<img src=x onerror=alert(document.domain)>) in the seachbar, XSS popup.

C. developers.zomato.com (II)

  1. Go to developers.zomato.com
  2. Go to "widgets" tab
  3. Look for "Foodie Index Widget"
  4. Click "add widget"
  5. In the longitude and latitude, enter the XSS payload (<img class="emoji" alt="馃槸" src="x" /><svg onload=prompt(document.domain)>).
  6. XSS popup

I hope you fix this since this are affecting several zomato users. Thanks

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original