All Vimeo Private videos disclosure via Authorization Bypass
An Ajax endpoint for sharing videos returned an error message that included a secret token for the private video's config file. An attacker could use this token to access the config file and obtain direct links to the video, bypassing privacy settings.
Originally disclosed on HackerOne
- Fixed in 2 hours
- Paid in 2 hours
- Disclosed after 3 months
Hello,
There is a vulnerability in https://vimeo.com/[VIDEO_ID]?action=share that makes all Vimeo private videos available to anybody.
POC link : http://opnsec.com/vimeo/vl/videoLeak.php?video=[VIDEO_ID]
POC requirements :
- No need to be logged in Vimeo
- Because of sensitivity of this, I put a password on the POC :
username : vimeo password : aS3cr3tP4$$wrD7854123
POC instructions :
- Open the POC link replacing
[VIDEO_ID]by any Vimeo private video id (I believe all type of private videos are vulnerable) - Enter the username and password as per requirements
- If the Vimeo video id is correct, no matter the status of the video, the video should start playing.
Technical description :
https://vimeo.com/[VIDEO_ID]?action=share is an Ajax link used to ask Vimeo for the "Share" code to embed the video
Because it is Ajax, the server is only replying if the Header X-Requested-With is set to XMLHttpRequest.
If the Attacker send this request with a [VIDEO_ID] of a private video that he don't have access to, the server reply with an error message. However, this message contains the link to the config file of the private video including a token parameter s=[SECRET] which will grant the attacker access to the config file.
The config file contains all the info about the video including the actual video file links, video title, owner vimeo account, ... which means that the attacker has complete access to the video.
Example of config file with token parameter s=[SECRET]
https://player.vimeo.com/video/165266592/config?autoplay=0&byline=0&bypass_privacy=1&context=Vimeo%5CController%5CClipController.main&default_to_hd=1&portrait=0&title=0&s=bb016a22af815053eb54XXXXXXX019d8_1462989197
Vulnerability Mitigation
To resolve this issue, the https://vimeo.com/[VIDEO_ID]?action=share server should not include the token parameter s=[SECRET] of the config file in the error response of https://vimeo.com/[VIDEO_ID]?action=shareif the user doesn't have right to access the video.
There is a good chance this vulnerability is present in other links, especially other Ajax links.
In addition, if that is possible, the https://player.vimeo.com/video/[VIDEO_ID]/config config file server should also check that the user has valid right to access the video even if he has a correct s=[SECRET] token
Here is the source code of http://opnsec.com/vimeo/vl/videoLeak.php
If you need more info or if the POC doesn't work feel free to contact me.
Regards,
Enguerran Gillier ██████████████████ ██████████████████████
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
The share endpoint included a secret token for the video's config file in its error response when the user lacked access rights.
Impact
An attacker could access a private video's config file, obtaining direct video links and metadata, bypassing privacy settings.
What the attacker needed
No Vimeo login required; knowledge of a private video ID
The fix
The share endpoint should not include the secret token in error responses, and the config server should verify access rights even with a valid token.
How it was found
- Open the proof-of-concept link, replacing the video ID with any private Vimeo video ID.
- Enter the provided username and password.
- If the video ID is correct, the video starts playing regardless of its privacy status.
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.
When you try to share a private video, the website sends a request to a special link. If you don't have permission, the website replies with an error, but that error accidentally includes a secret code. Anyone who sees that code can use it to watch the private video without logging in.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.