Skip to content
XSS Disclosed report Intermediate

XSS on vimeo.com | "Search within these results" feature (requires user interaction)

The search results page inserted the URL path into a data attribute without escaping, allowing an attacker to inject an event handler via a crafted video title. An attacker could execute JavaScript in a victim's browser when they hover over the video thumbnail.

stefanovettorazzi Follow

Originally disclosed on HackerOne

  • Triaged in 34 days
  • Fixed in 34 days
  • Paid in 35 days
  • Disclosed after 24 months

Description

When you search in pages such as the videos of some Category or the videos of some User, and you receive more than 0 results, the path of the URL is put in the attribute data-start-page of a <li> element without escaping. This allows to insert another attribute like onmouseover to execute Javascript code. To exploit this bug, you need to retitle a video to something like "onmouseover="alert(document.domain)&#x2f; and put the title as the search query in the URL. The character / has to be encoded like &#x2f; because if you send the character / as %2F you will get a 404 response.

Proof of concept

  1. Upload a new video via https://vimeo.com/upload, or go to the Settings of one that you already uploaded.
  2. Enter "onmouseover="alert(document.domain)&#x2f; for the Title of the video.
  3. Click on Save Changes.
  4. Using other user, go to https://vimeo.com/[the_user_used_to_upload_the_video]/videos/search:%22onmouseover%3D%22alert%28document.domain%29%26%23x2f%3B/.
  5. Move your mouse over the thumbnail of the video that you uploaded (it should be the only video that appears in the results).
  6. alert(document.domain) is executed.

To see the proof of concept in action, you can go to https://vimeo.com/user36690798/videos/search:%22onmouseover%3D%22alert%28document.domain%29%26%23x2f%3B/.

Happily, I can only reproduce it on Firefox, because XSS Auditor notices that "onmouseover="alert(document.domain)&#x2f; appears in the document and in the URL. I will try a little more to reproduce it on Chrome too, but I see it very difficult.

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 failed to escape the URL path before inserting it into an HTML attribute, allowing attribute injection.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, but the exploit only worked on Firefox because Chrome's XSS Auditor blocked it.

What the attacker needed

Attacker can upload or edit a video; victim uses Firefox; victim visits a crafted search URL; victim hovers over the video thumbnail

How it was found

  1. Upload a new video or go to the settings of an existing one.
  2. Set the video title to a string containing an event handler and an encoded slash.
  3. Save the changes.
  4. As another user, visit the search URL for that user's videos with the crafted query.
  5. Hover over the video thumbnail in the results.
  6. The JavaScript executes.

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 you search on Vimeo, the page takes part of the web address and puts it into the page's code without cleaning it first. An attacker can set a video title to include special characters that break out of that attribute and add their own code. Then, when someone hovers over the video, that code runs in their browser.

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.