Eternal · Report #115560
Two XSS vulns in widget parameters (all_collections.php and o2.php)
How it was found
I have found two additional possibilities of XSS attacks via the widget API endpoints: https://www.zomato.com/widgets/all_collections.php and https://www.zomato.com/widgets/o2.php
https://www.zomato.com/widgets/all_collections.php has a vulnerable city_id parameter that does not filter html or javascript:
The https://www.zomato.com/widgets/o2.php endpoint has a vulnerable language_id parameter, which does not filter html or js:
These URLs can be placed in <iframe> elements in an attacker-controlled website and any Zomato users visiting that site are open to executing arbitrary javascript in the zomato.com origin, which opens them to CSRF attacks and others.
I have tested the other parameters and have found them to be sanitized.
These two parameters should be sanitized.
Cheers!