Skip to content
Account takeover Write-up Advanced

My bug bounty journey: Full account takeover caused by SSO token

A first-party SSO client ID could be used in the device-login flow to obtain a token that was accepted by the main GraphQL API, even though the user only authorised public profile access. An attacker could then modify the victim's profile, email, videos and payout details, leading to full account takeover.

AnonymousPlayer Follow

Published on medium.com

This program is a live‑streaming platform with seven or eight domains, including multiple subdomains. Since the platform has already been tested globally by security researchers for more than two years, I knew it would be inefficient to test everything.

AnonymousPlayer, on medium.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 the authorisation server did not properly restrict which client IDs could obtain tokens valid for the main GraphQL API, allowing a first-party client ID to be used in the device-login flow to mint tokens with broader access than the consented scopes.

Impact

An attacker could take over a victim's account, including changing their email, deleting videos and updating payout information.

What the attacker needed

Victim clicks an authorisation link; victim approves the authorisation prompt; attacker has a first-party client ID

How it was found

  1. Enumerate subdomains and find the TV subdomain used for device-login SSO.
  2. Use the first-party TV client ID to request a device code and authorisation URL.
  3. Have the victim open the authorisation URL and click Authorize for public profile permissions.
  4. Exchange the device code for the victim's token.
  5. Use the token against the main GraphQL API to modify the victim's account.

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.

Single Sign-On (SSO) lets you log in to one site using another account. The platform had a special 'device login' flow where a third-party app receives a token directly after the user clicks Authorize. The researcher found that by pretending to be the platform's own TV app, the token they got was trusted by the main website, so they could change the victim's account details.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.