Skip to content
CORS Write-up Advanced

Firefox - Same-Origin Policy bypass (CVE-2015-7188)

Firefox's IP address parser accepted whitespace characters after an IP, and Unicode decomposition could insert an '@' into the hostname. When a Flash applet was loaded from such a crafted URL, Flash treated the part after '@' as the origin, allowing cross-origin HTTP requests and reading responses.

Michał Bentkowski Follow

Published on blog.bentkowski.info

The original lives on blog.bentkowski.info

We do not hold its text, 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 Firefox's internal IP address parser (copied from BSD) accepted trailing whitespace and arbitrary suffixes, and its Unicode decomposition of fullwidth '@' into '@' created a hostname that Flash re-parsed differently, treating the prefix as a username and the suffix as the true origin.

Impact

An attacker could bypass the same-origin policy to read HTTP responses from other domains, but only if Flash was installed and activated on the victim's machine and only for the HTTP protocol.

What the attacker needed

Flash installed and activated; Victim visits a crafted URL; HTTP protocol only

How it was found

  1. Craft a URL with an IP address followed by a whitespace character and a fullwidth '@' character, then a target hostname.
  2. Load a Flash applet from that crafted URL.
  3. The Flash applet issues an HTTP GET request to the target URL.
  4. The response body is returned to the JavaScript and displayed to the user.

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.

The same-origin policy is a browser rule that stops one website from reading data from another website. This report shows that by using a strange IP address format and a special character that looks like '@', Firefox could be tricked into letting a Flash file believe it belonged to a different site. That let the Flash file read responses from the other site, breaking the rule.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More by Michał Bentkowski

View all

15 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.