Skip to content
XSS Write-up Advanced

Exploiting CVE-2011-2461 on Google.com

A vulnerable SWF file hosted on Google.com could be loaded with a malicious FlashVars parameter pointing to an attacker-controlled SWF, which then inherited the Google domain's security context and could read HTTP responses from Google services. This allowed an attacker to steal the victim's Gmail address, name, and calendar events.

blog.mindedsecurity.com

Published on blog.mindedsecurity.com

As a follow up of our Troopers 2015 presentation about CVE-2011-2461 we want to release more details about a real world exploitation scenario targeting Google services. During our large-scale analysis of web sites hosting vulnerable SWF files, we found out that also Google was affected.

The author, on blog.mindedsecurity.com

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

Root cause

Likely the vulnerable SWF allowed an attacker-controlled resource module to be loaded via FlashVars without proper security checks, causing the malicious SWF to inherit the host's SecurityDomain.

Impact

The attacker could steal the victim's Gmail address, first name, last name, and future calendar events, and potentially perform actions on the user's behalf by stealing anti-CSRF tokens.

What the attacker needed

Victim logged into Google; victim visits attacker's page; Flash enabled

The fix

The issue was fixed by Google after being reported.

How it was found

  1. The victim is logged on google.com, and visits a malicious website
  2. The malicious site loads an HTML page, which embeds the vulnerable SWF together with a malicious SWF resource file (specified via FlashVars)
  3. The vulnerable SWF file is loaded by the Flash player, consequently loading the malicious SWF file (after having verified the crossdomain.xml, hosted on the attacker's site)
  4. Since the malicious SWF inherits the SecurityDomain of the vulnerable SWF, it can access HTTP responses from the victim's domain

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.

Flash files (SWF) can load other Flash files. If a trusted site hosts a Flash file that loads an attacker's file, the attacker's file can act as if it came from the trusted site. This report shows that a Google Flash file could be tricked into loading a malicious file, which then read the user's Google data.

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.