“MyFlaw” — Cross Platform 0-Day RCE Vulnerability Discovered in Opera’s Browser
A forgotten Opera web page under flow.opera.com lacked CSP and SRI protections, allowing a malicious extension to inject code that could call privileged browser APIs to download and execute files. An attacker could achieve remote code execution on Windows or macOS with a single click.
Published on labs.guard.io
Table of Contents
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 an outdated web page on a production domain lacked CSP and SRI protections, allowing a malicious extension to inject code that could access a privileged built-in extension's APIs.
Impact
An attacker could execute arbitrary files on the victim's Windows or macOS system, but the attack requires the user to install a malicious extension and click once.
What the attacker needed
Victim installs malicious extension; victim clicks once on a page
The fix
Opera removed the vulnerable assets from their servers within five days of disclosure.
How it was found
- Install a malicious extension disguised as an ad blocker.
- The extension opens the vulnerable flow.opera.com page in a new tab.
- The extension injects code into the page, which interacts with the Opera Touch Background extension.
- The code simulates pairing a mobile device and sends a malicious file to the browser.
- The file is saved to the local filesystem via the SEND_FILE handler.
- The user clicks anywhere on the page, triggering OPEN_FILE to execute the file.
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.
Opera's My Flow feature lets you send files between devices. A built-in extension with powerful permissions could open files on your computer. An old, forgotten web page on Opera's domain didn't have the usual protections, so a malicious extension could inject code into it and use those permissions to run any file. The user just had to click once.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.