XSS when using captions/subtitles on video player based on Flash (requires user interaction)
The Flash-based video player did not escape HTML in uploaded caption/subtitle files, so an attacker could upload a malicious caption file that executed script when a victim enabled captions. This allowed cross-site scripting in the context of the player's domain.
Originally disclosed on HackerOne
- Triaged in 6 days
- Fixed in 21 days
- Paid in 21 days
- Disclosed after 24 months
Description
The video player based on Flash (not the HTML5 one), shows the captions/subtitles without escaping. This allows to upload a file with captions/subtitles with HTML code, because the content of the file is not escaped when it's stored. The way to force the use of the Flash player is using the widget Hubnut, because on Chrome for example the default player is the HTML5 one.
Proof of concept
- For easy reproduction of the proof of concept, create a new account or delete every video in your account or make every video private.
- Upload a video or use an existing video.
- Go to the Settings of the video.
- Click on the tab Advanced.
- Download the file English.vtt that I attached to the report.
- In the section "Add Captions & Subtitles", click on Choose file.
- Select the file you downloaded in step 5.
- When the file is uploaded, click on OFF in the column Status. The value should change to ON.
- Select English in the column Language.
- Select Captions in the column Type.
- Click on Save Changes.
- Using other account, go to https://player.vimeo.com/hubnut/user/[user_url] (like https://player.vimeo.com/hubnut/user/user36690798).
- Click on Play.
- Click on CC (at the right bottom of the player) and click on English, to activate the captions.
alert(document.domain)is executed.
You can reproduce the issue using this link https://player.vimeo.com/hubnut/user/user36690798.
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 Flash player inserted caption text into the page without HTML-escaping or sanitising it.
Impact
An attacker could execute arbitrary script in the player's domain when a victim enabled captions, but the exploit required user interaction and only worked with the Flash-based player.
What the attacker needed
An account; victim clicks a link and enables captions; Flash-based player (Hubnut widget)
The fix
The text does not state a fix; it only describes the lack of escaping.
How it was found
- Create a new account or make all existing videos private.
- Upload a video or use an existing one.
- Open the video's Settings and go to the Advanced tab.
- Download the provided English.vtt file and upload it under Add Captions & Subtitles.
- Set the caption status to ON, language to English, type to Captions, and save changes.
- From another account, open the Hubnut player URL for that user, press Play, click CC, and select English to trigger the 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.
A video player can show subtitles from a file. If the player puts the subtitle text directly into the page without cleaning it, any HTML or script in that file will run as if it were part of the website. Here, an attacker uploaded a subtitle file containing script, and when a viewer turned on captions, the script ran.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.