XSS on player.vimeo.com without user interaction and vimeo.com with user interaction
The user's display name was not escaped when shown as the title 'More from [name]' at the end of a video, allowing JavaScript execution. An attacker could set a malicious display name and execute code on player.vimeo.com without user interaction, or on vimeo.com if the victim clicks to play a video.
Originally disclosed on HackerOne
- Triaged in 6 days
- Fixed in 8 days
- Paid in 8 days
- Disclosed after 22 months
I reported this one in the report #87854, but I was asked to report it again in a separate report.
Description
At the end of each video appears the thumbnail of other video from the same user. This thumbnail has the title More from [name_of_the_user].
The problem is that the name of the user is not escaped, which allows to execute Javascript code.
There is a limit for the length of characters that you can use for the name of the user, but it's enough to exploit it. The way I used for the proof of concept is setting the window.name to the Javascript code, and then put <svg onload=eval(name)></svg> as the name of the user.
Proof of concept
- Download the file name_xss_iframe.html that I attached.
- Wait 10 seconds.
prompt(document.domain,document.cookie)is executed on https://player.vimeo.com.- Download the file name_xss.html that I attached.
- Click on Watch video.
- Click on the button to play the video.
- Wait 10 seconds.
prompt(document.domain, document.cookie)is executed on https://vimeo.com.
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 application inserted the user's display name into the page without escaping it, so HTML and JavaScript in the name were interpreted by the browser.
Impact
An attacker could execute JavaScript on player.vimeo.com without user interaction, and on vimeo.com if the victim plays a video, with access to the domain and cookie shown in a prompt.
What the attacker needed
Attacker can set a display name; victim views a video or clicks to play
How it was found
- Download the provided file name_xss_iframe.html.
- Wait 10 seconds.
- Observe that prompt(document.domain,document.cookie) executes on player.vimeo.com.
- Download the provided file name_xss.html.
- Click 'Watch video' and then click the play button.
- Wait 10 seconds and observe that prompt(document.domain, document.cookie) executes on vimeo.com.
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 site shows a username without cleaning it, an attacker can put markup in that name. Here the username was placed directly into the page, so a name containing markup could run as code in the visitor's browser. This is called 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.