Skip to content
XSS Write-up Advanced

Publicly-disclosed UXSS flaw was exploited against Opera users for over 2 years

A universal cross-site scripting (UXSS) flaw in Opera allowed data: URIs to gain same-origin privileges to non-opening origins across redirects, enabling a complete same-origin policy bypass. An attacker could exploit this to run script in the context of other origins, and the flaw regressed after an initial fix, leaving users vulnerable for over two years.

eligrey.com

Published on eligrey.com

Opera users were vulnerable to a publicly-disclosed UXSS exploit for most of 2010-2012.

The author, on eligrey.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 a logic error in how Opera handled data: URIs across redirects, causing them to inherit the origin of a non-opening page instead of being treated as unique.

Impact

An attacker could run script in the context of other origins, completely bypassing the same-origin policy, and this vulnerability affected Opera users for over two years after the initial fix.

What the attacker needed

Victim uses Opera browser; attacker can lure victim to a malicious page

The fix

The vulnerability was fixed in June 2010 (CVE-2010-2665) and a regression fix was released in November 2012 (CVE-2012-6463).

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.

This report describes a bug in the Opera web browser that let a malicious page bypass a core security rule: normally, scripts from one website cannot read or change data from another website. Here, a special kind of link (a data: URI) could pretend to be part of another site, so an attacker could steal information or act as the user on that other site. The bug was fixed once, then came back by mistake and stayed for years.

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.