Skip to content
XSS Disclosed report Beginner

Reflected XSS on business-blog.zomato.com - Part I

A reflected cross-site scripting vulnerability existed on a Zomato blog subdomain, where a crafted URL caused JavaScript to execute in the victim's browser. An attacker could use this to run arbitrary script in the context of the site.

David Sopas Follow

Originally disclosed on HackerOne

  • Fixed in 12 months
  • Disclosed after 13 months

Hi guys,

I would like to report a reflected XSS on business-blog.zomato.com.

  1. Open Chrome and Firefox (latest versions)
  2. Open https://business-blog.zomato.com/wp-includes/js/mediaelement/flashmediaelement.swf?jsinitfunctio%gn=alert1
  3. Payload is executed

Check the attached screenshot.

Solution:

  • Update Wordpress to 4.5.2
  • Update flashmediaelement.swf to 2.21.1

Feel free to contact me if you need further assistance.

Best, -David Sopas

Attachments

zomato1.jpg
zomato1.jpg From the original on HackerOne

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

Root cause

Likely an outdated WordPress installation and an outdated Flash media element file allowed a parameter to be reflected into a script context without proper sanitisation.

Impact

An attacker could execute JavaScript in a victim's browser when the victim visits a crafted link.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open Chrome or Firefox (latest versions).
  2. Visit the crafted URL containing the payload.
  3. Observe that the payload executes.

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.

XSS is when a site runs an attacker's JavaScript in another user's browser. Here a crafted link made the site run code that showed an alert box, proving the attacker could run their own code.

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 David Sopas

View all

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