Skip to content
XSS Write-up Advanced

Flash-based XSS in Yandex's AmCharts component

The AmCharts Flash file hosted on Yandex's wordstat domain accepted external URLs for its data and settings files, letting an attacker supply their own XML map. By defining a transparent clickable area with a JavaScript URL and auto-triggering it on load, an attacker could run arbitrary JavaScript in the context of the wordstat.yandex.com domain without any user interaction.

blog.miki.it

Published on blog.miki.it

Here I present a (reported) Flash-based XSS vulnerability I discovered in wordstat.yandex.com, requiring no user interaction.

Michele Spagnuolo, on blog.miki.it

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute arbitrary JavaScript in the context of wordstat.yandex.com without user interaction, potentially reading cookies and page data, though this depends on the victim's browser still supporting Flash.

What the attacker needed

Victim visits a crafted URL; browser supports Flash; attacker hosts XML and SWF files

How it was found

  1. Disassemble the hosted SWF and find the data_file and settings_file parameters are taken from the URL.
  2. Host two XML files on an external server: one for settings, one defining the map.
  3. In the data file, load an external SWF as the map and define a transparent full-screen movie with a JavaScript URL and an object id.
  4. Reference that object id in the map's url attribute so the movie is clicked automatically on initialisation.
  5. Open the crafted SWF URL to trigger JavaScript execution in the wordstat.yandex.com context.

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 write-up has not been written yet. The Original tab links to the source.

A Flash file (a small interactive animation plugin) was hosted on a Yandex website and could be told to load extra files from any address on the internet. The researcher pointed it at their own files, which described a full-screen invisible button that runs JavaScript when clicked, and made the map click it automatically. Because the code ran as if it came from the Yandex site, it could read that site's cookies and page address.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.