Skip to content
XSS Write-up Advanced

Party time: Injecting code into Teleparty extension

The Teleparty browser extension used an outdated jQuery version that allowed code injection via HTML attributes when refreshing chat messages, and also had an open redirect in its session creation. An attacker could run arbitrary JavaScript in the context of the extension's content script on a malicious website, and redirect users to arbitrary domains.

Wladimir Palant Follow

Published on palant.info

Teleparty, formerly called Netflix Party, is a wildly popular browser extension with at least 10 million users on Google Chrome (likely much more as with Chrome Web Store anything beyond 10 million is displayed as “10,000,000+”) and 1 million users on Microsoft Edge. It lets people from different location join a video…

Wladimir Palant, on palant.info

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

Likely the extension used jQuery 2.1.4, which evaluates script tags in HTML passed to it, and a message refresh function read data from HTML attributes via jQuery.data() without proper escaping, allowing injection.

Impact

The attacker could run JavaScript in the context of the extension's content script, but the impact was limited because the internal messaging mostly allowed messing with chats and the reInject message only allowed extension file URLs.

What the attacker needed

Victim visits malicious website; victim clicks 'Join the Party' button; Teleparty extension installed

How it was found

  1. The malicious website creates a Teleparty session via WebSockets.
  2. It opens the Teleparty join URL with the correct session ID, asking the user to join.
  3. If the user clicks 'Join the Party', they are redirected back to the malicious page.
  4. Teleparty initiates a session on the malicious page, which then triggers the vulnerable message refresh.

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 adds extra features to your browser. This extension used an old version of a helper library called jQuery that could run code hidden in HTML attributes. A malicious website could trick the extension into running that code, but the damage was limited because the extension's internal messaging didn't allow much beyond messing with chats.

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 Wladimir Palant

View all

7 more disclosed reports, best first.

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.