Skip to content
XSS Write-up Advanced

Video Downloader and Video Downloader Plus Chrome Extension Hijack Exploit - UXSS via CSP Bypass (~15.5 Million Affected)

The Video Downloader and Video Downloader Plus Chrome extensions built their popup HTML by concatenating a video URL scraped from the visited page, so a crafted link could inject markup. Because the popup page was web-accessible and could be framed, an attacker page could trigger script execution in the extension's context without the victim clicking the extension icon, gaining the extension's broad permissions.

thehackerblog.com

Published on thehackerblog.com

While scanning various Chrome extensions with tarnish I found the popular Chrome extensions Video Downloader for Chrome version 5.0.0.12 (8.2 million users) and Video Downloader Plus (7.3 million users) suffers from a Cross-site Scripting (XSS) vulnerability in their browser action page. All that is required to…

The author, on thehackerblog.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The extension concatenated an attacker-controlled video URL into an HTML string that was appended to the popup DOM, and the popup page was listed as a web-accessible resource so any site could frame it.

Impact

An attacker could run script in the extension's context and, using its permissions, dump all browser cookies, intercept all browser requests and act as the authenticated user on any site; the text notes the CSP blocked inline script and arbitrary sources, so the bypass relied on the whitelisted Google CDN.

What the attacker needed

Victim visits an attacker page; extension installed; no click needed (iframe trick)

The fix

The extension owners were notified and the latest versions of both extensions should no longer be vulnerable.

How it was found

  1. Host a page containing a crafted link and an iframe, plus a wildcard route returning more than 1024 bytes with a video content type.
  2. The content script scrapes the crafted link from the page and sends it to the background page.
  3. The background page fetches the link's headers, accepts it because the size and URL checks pass, and stores it for the tab.
  4. After a delay the page points the iframe at the extension's popup page.
  5. The popup builds its list from the stored link and the injected markup executes, loading scripts from the allowed Google CDN.

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 write-up has not been written yet. The Original tab links to the source.

A browser extension is a small program added to Chrome; some can read cookies and requests on every site you visit. These two extensions took a link from whatever page you were on and pasted it into their own popup page without cleaning it, so a page could sneak in code. That code then ran with the extension's powers, letting the attacker act as you on websites.

What is XSS?

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

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.