CSRF on Vimeo via cross site flashing leading to info disclosure and private videos go public
A cross-site request forgery (CSRF) vulnerability on Vimeo allowed an attacker to make a victim's private videos public and change their name by luring them to a malicious page. The attacker could also obtain the victim's Vimeo name, user ID, and account type.
Originally disclosed on HackerOne
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 3 months
Hello Vimeo Security Team.
There is a CSRF vulnerability on Vimeo.com. With this vulnerability, an attacker can make all the victim's vimeo videos go public just by having the victim open a link to the attacker webpage. He can also get the victim's vimeo name, user id, user account type and perform other CSRF actions such as changing the victim's vimeo name.
POC link : http://opnsec.com/vimeo/VimeoMoogaloop.html
POC requirements : -Fully working with Firefox on Windows. POC partly working with Internet Explorer and not working with Chrome (the vulnerability is present in all browsers though) -Flash must be active -You must be logged in Vimeo (if you have private videos, they will be public after the POC)
POC instructions :
- Open the POC link
- Wait a few seconds
- The leaked infos and CSRF actions will show in the boxes.
- You can then check your vimeo account to see the changes made by the CSRF POC. (Name change is immediate, videos privacy changes take 1-2 minutes)
Technical info :
Vulnerability description : There is a vulnerability because a Vimeo XSRF token is present in the source code of the 404 http error pages, including in https://vimeo.com/moogaloop
There is a crossdomain file in http://vimeo.com/moogaloop/crossdomain.xml, which allows connections from *.vimeocdn.com. This means that the moogaloop.swf file from vimeo cdn (https://f.vimeocdn.com/p/flash/moogaloop/6.3.5/moogaloop.swf) can access and read the https://vimeo.com/moogaloop page, including the XSRF token value.
The moogaloop.swf is vulnerable to Cross Site Flashing, meaning that an external SWF (http://evilsite.com/evil.swf) can load moogaloop.swf and take control of it and perform a request to the https://vimeo.com/moogaloop page on behalf of https://f.vimeocdn.com/p/flash/moogaloop/6.3.5/moogaloop.swf. This means that the evil.swf file get the XSRF token value of the Vimeo user from the 404 page https://vimeo.com/moogaloop.
The evil.swf file can then use the token to perform CSRF request to Vimeo such as changing the vimeo name (POST request to https://vimeo.com/settings) or changing the privacy of all uploaded videos and futur videos to public (POST request to https://vimeo.com/settings/videos)
Vulnerability Mitigation :
If you no longer need the http://vimeo.com/moogaloop/crossdomain.xml file, removing it will remove the vulnerability.
If you don't want to remove the crossdomain file, you just need to remove any private info (user name, user id, XSRF token) from the https://vimeo.com/moogaloop 404 page and any https://vimeo.com/moogaloop/... page and the vulnerability will be remove.
It would be a good practice to remove these info from any 404 webpage to avoid any other similar CSRF vulnerability.
Regarding the moogaloop.swf file, if you want to avoid Cross site flashing, you need to sanitize user input, in particular the "config_url" flashvar parameter.
If you need more info like POC source code 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
Likely the combination of a crossdomain.xml file that allowed Flash content from a CDN to read a Vimeo page containing an XSRF token, and a Flash file vulnerable to cross-site flashing, enabling token theft and subsequent CSRF.
Impact
An attacker could make all of a victim's Vimeo videos public, change the victim's Vimeo name, and obtain the victim's Vimeo name, user ID, and account type; the exploit worked fully only in Firefox on Windows with Flash active, partly in Internet Explorer, and not in Chrome.
What the attacker needed
Victim is logged in to Vimeo; Flash must be active; Victim opens the attacker's link
The fix
The vulnerability should be fixed by removing the crossdomain.xml file or by removing private information from the 404 page, and by sanitising user input in the Flash file, particularly the config_url parameter.
How it was found
- Open the proof-of-concept link.
- Wait a few seconds.
- The leaked information and CSRF actions will show in the boxes.
- Check your Vimeo account to see the changes made by the CSRF proof of concept.
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.
CSRF is when a malicious website tricks your browser into sending requests to another site where you're logged in, without your knowledge. Here, the attacker used a Flash file to steal a secret token from Vimeo and then used it to change your settings, like making private videos public.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.