Stored XSS on vimeo.com and player.vimeo.com
The Hubnut widget's Flash file rendered the video owner's name without escaping it, allowing an attacker to inject a malicious Flash file via an image tag. This led to stored cross-site scripting on both vimeo.com and player.vimeo.com.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 28 days
- Paid in 28 days
- Disclosed after 3 months
Description
You can share your uploaded videos using the widget Hubnut. The URL is something like https://player.vimeo.com/hubnut/user/user36690798/uploaded_videos?color=44bbff&background=000000&slideshow=0&video_title=1&video_byline=1, and I noticed that the same content is loaded for this URL https://vimeo.com/hubnut/user/user36690798/uploaded_videos?color=44bbff&background=000000&slideshow=0&video_title=1&video_byline=1.
The problem is that the Flash file that shows the files uploaded by an user (https://f.vimeocdn.com/p/flash/hubnut/2.0.11/hubnut.swf) renders the Name of the owner of the video without escaping it. This allows to load an external Flash file using the <img> tag.
Proof of concept
- Go to https://vimeo.com/settings.
- Change your Name to
{{media:0}}. - Click on Save Changes.
- Go to https://vimeo.com/settings/profile.
- Save, for future use, the editable value of the field Vimeo URL (probably is like user36690798).
- Go to https://player.vimeo.com/hubnut/user/[value_from_step_5] (like: https://player.vimeo.com/hubnut/user/user36690798).
alert(document.domain)is executed.- Go to https://vimeo.com/hubnut/user/[value_from_step_5] (like: https://vimeo.com/hubnut/user/user36690798).
alert(document.domain)is executed.
Please, let me know if something is not clear.
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
Impact
An attacker could run JavaScript in the context of vimeo.com and player.vimeo.com, as shown by an alert of the domain.
What the attacker needed
A Vimeo account; victim visits the crafted Hubnut URL
How it was found
- Go to the account settings page.
- Change the Name field to a special placeholder value.
- Save the changes.
- Go to the profile settings page and note the Vimeo URL value.
- Visit the Hubnut player URL with that value.
- Observe that JavaScript executes, and repeat on the main vimeo.com Hubnut URL.
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 Flash file used by Vimeo to show a user's uploaded videos displayed the user's name without cleaning it first. By setting their name to a special code, an attacker could make the page load a harmful Flash file, which then ran JavaScript in the victim's browser. This is called stored cross-site scripting because the malicious input is saved and shown to others.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.