Possibility to overwrite any file in the vpe.cdn.vimeo.tv leads to the Stored XSS for the all customers on the embed.vhx.tv
The CDN used for JavaScript delivery accepted PUT requests with a blank or generic content type, allowing arbitrary file upload and overwrite. An attacker could upload a script containing an XSS payload or overwrite an existing script, leading to stored XSS for all customers on the embed domain.
- Triaged in under an hour
- Fixed in 4 days
- Paid in under an hour
- Disclosed after 7 months
Summary by the program
By modifying the Content-Type to be blank, during a PUT command, the researcher was able to upload files to the CDN. This has been resolved.
Summary by the researcher
It was possible to write (and overwrite) arbitrary files to the CDN ( vpe.cdn.vimeo.tv ) used for JS scripts delivery on the various in-scope assets using the PUT method with blank or application/octet-stream Content-Type. Any other Content-Type caused auth error from Google Cloud Storage side.
Example:
PUT /something.js HTTP/1.1
Host: vpe.cdn.vimeo.tv
Content-Type: application/octet-stream
Content-Length: 10
Connection: close
alert(document.domain)
could create something.js with XSS payload or overwrite something.js if it already exist.
The issue was fixed fast. Thanks to the VHX team for the great experience, awesome communication and the bounty!
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the CDN's upload endpoint did not properly authenticate or restrict PUT requests when the Content-Type was blank or application/octet-stream, allowing arbitrary file writes.
What the attacker needed
Ability to send PUT requests to the CDN
The fix
The issue was fixed by the VHX team.
How it was found
- Send a PUT request to the CDN host with a blank or application/octet-stream Content-Type.
- Include a JavaScript payload in the request body.
- The file is created or overwritten on the CDN.
- The malicious script is then served to users of the embed site, executing the XSS payload.
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 report has not been written yet. The Original tab links to the source.
A content delivery network (CDN) is a service that stores and serves files like scripts to many websites. Here, the CDN wrongly allowed anyone to upload or replace files. Because those files are loaded by the embed site, an attacker could put malicious code in a script that then runs in visitors' browsers, which is called stored 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.