Skip to content
XSS Write-up Intermediate

5 different vulnerabilities in Google's Threadit

Threadit had five vulnerabilities: a DOM XSS via a javascript: link combined with clickjacking, an ACL flaw letting any viewer downgrade and remove the post owner, a clickjacking attack to delete a victim's account, an information disclosure of the viewer list on public posts, and a way to harvest a logged-in user's email by embedding a post in an iframe. An attacker could execute script, lock owners out of their posts, delete accounts, and collect personal data.

websecblog.com

Published on websecblog.com

Threadit was an online tool that allowed users to record and share short video recordings. It was built by Area 120, Google's in-house program for experimental projects.

Thomas Orlita, on websecblog.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

Likely missing server-side validation and authorisation checks, plus absent security headers (X-Frame-Options and a URL scheme check), allowed these attacks.

Impact

An attacker could execute JavaScript in the victim's browser, remove a post owner from the ACL so they lose access, delete a victim's account via clickjacking, and obtain the email addresses of viewers, though the XSS required a modifier key in Chromium and the iframe-based email harvesting was later blocked by X-Frame-Options.

What the attacker needed

A Threadit account; victim clicks a link or visits attacker site; victim is logged in to Threadit; attacker can view the public post

The fix

The XSS was fixed by requiring links to start with http:// or https://, and clickjacking was mitigated by adding the X-Frame-Options: DENY header; the ACL issue was fixed by rejecting owner scope updates.

How it was found

  1. Create a blank Threadit post and add a camera or screen recording.
  2. In the Link field, add a title and a valid URL, then publish.
  3. Intercept the PATCH request and replace the url value with a javascript: URI.
  4. Open the published post and click the CTA link while holding CTRL to execute the script.
  5. Embed the post in an iframe on an attacker site and position it under the mouse pointer.
  6. Use a decoy button to get the victim to click the hidden link.

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.

Threadit let people share short videos. Several mistakes let an attacker run their own code in a victim's browser, take away a post owner's control, trick a logged-in user into deleting their account, and see who viewed a post. These are common web security problems caused by missing checks on the server and missing browser protections.

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.