Skip to content
XSS Disclosed report Intermediate

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.

stefanovettorazzi Follow

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

  1. Download the file name_xss_iframe.html that I attached.
  2. Wait 10 seconds.
  3. prompt(document.domain,document.cookie) is executed on https://player.vimeo.com.
  4. Download the file name_xss.html that I attached.
  5. Click on Watch video.
  6. Click on the button to play the video.
  7. Wait 10 seconds.
  8. prompt(document.domain, document.cookie) is executed on https://vimeo.com.

The original report as published on HackerOne, by stefanovettorazzi. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Download the provided file name_xss_iframe.html.
  2. Wait 10 seconds.
  3. Observe that prompt(document.domain,document.cookie) executes on player.vimeo.com.
  4. Download the provided file name_xss.html.
  5. Click 'Watch video' and then click the play button.
  6. 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.

More by stefanovettorazzi

View all

17 more disclosed reports, best first.

More from Vimeo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.