XSS on Facebook’s acquisition Oculus CDN Server
The Oculus CDN server failed to validate the signature parameters when the '/V/' path segment was removed from an image URL, allowing the same URL to serve attacker-controlled HTML. An attacker could therefore run arbitrary JavaScript on the oculuscdn.com domain, though the sandboxed domain prevented access to user cookies or sessions.
Published on amolbaikar.com
I would suggest you first to read the previous post here. How I bypassed Facebook CDN content’s signature protection.
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 CDN's signature validation was tied to the URL path containing the '/V/' segment, so removing that segment bypassed the check and allowed the stored file to be served with an attacker-chosen content type.
Impact
This could have allowed an attacker to run arbitrary JavaScript on the Oculus CDN, but it would not have allowed access to user cookies or sessions due to the sandboxed domain; it could have been used for phishing or as a Linkshim bypass.
What the attacker needed
Ability to upload a file to oculus.com; victim visits a crafted CDN URL
The fix
The issue was fixed according to the timeline.
How it was found
- Upload an image from any upload endpoint within oculus.com.
- Retrieve the image file URL from the response.
- Remove the '/V/' parameter from the URL so the 'oh' and 'oe' signature parameters are no longer validated.
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.
A content delivery network (CDN) is a set of servers that host files like images for a website. This CDN checked a signature to make sure only the original file could be served, but if you deleted a small part of the web address the check was skipped. That let an attacker upload a file that runs code in a visitor's browser, a technique called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.