Exploiting Facebook's Oculus
A cross-domain policy file on developer.oculus.com allowed Flash content from any *.oculus.com subdomain to read its responses. Because support.oculus.com let users upload files, an attacker could upload a Flash file disguised as an image and use it to read data from developer.oculus.com in a victim's session.
Meta
Published on paulosyibelo.com
{{media:0}}
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 crossdomain.xml on developer.oculus.com used a wildcard subdomain allow rule, and the upload feature on support.oculus.com served user files from a trusted subdomain without forcing a download.
Impact
An attacker could read data from developer.oculus.com in a logged-in victim's session, such as anti-CSRF tokens or messages, though the attack depended on the victim running Flash and visiting the attacker's page.
What the attacker needed
Victim uses a Flash-capable browser; victim visits attacker page; attacker can upload a file via support
The fix
The report says Facebook fixed it within hours; the author recommends restricting crossdomain.xml rules and serving uploaded files with a content-disposition header.
How it was found
- Create a malicious Flash file that reads data from the target domain.
- Rename the Flash file so it has an image extension.
- Open a support ticket on support.oculus.com and upload the file as an image attachment.
- Host a page on an attacker domain that embeds the uploaded file as Flash.
- Get the victim to visit the attacker page so the Flash file runs in their browser.
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.
Websites normally stop one site from reading another site's data, a rule called the same origin policy. Older Adobe Flash could be told to relax that rule by a small file called crossdomain.xml, and here that file trusted every subdomain of oculus.com. Since one of those subdomains accepted user uploads, an attacker could host a Flash file there and read private pages on another subdomain.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.