Skip to content
Account takeover Write-up Intermediate

How I Discovered a Critical OAuth Account Takeover Across Web and

The OAuth account linking logic failed to verify that the OAuth identity belonged to the currently authenticated user, allowing an attacker to link their own OAuth account to a victim's account. The attacker could then log in via their OAuth account and gain full access to the victim's account across web, Android, and iOS.

zuksh Follow

Published on zuksh.medium.com

This write-up explains how a single OAuth design issue propagated across multiple platforms and domains, resulting in high-impact account compromise

Zuksh, on zuksh.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

The backend did not verify that the OAuth identity belongs to the currently authenticated user before linking it, and did not enforce a one-to-one relationship between OAuth identities and user accounts.

Impact

An attacker could gain full access to a victim's account across web, Android, and iOS, effectively achieving account takeover.

What the attacker needed

A normal user account; an attacker-controlled OAuth account; victim's account exists

How it was found

  1. Register a normal user account with email and password.
  2. Log out and create a second account using an OAuth provider controlled by the attacker.
  3. Log back into the original victim account.
  4. Navigate to account linking settings.
  5. Link the attacker-controlled OAuth account without any ownership verification or re-authentication.
  6. Log out, then log in using the attacker's OAuth account to gain full access to 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.

OAuth is a way to log in using another service like Google. The site let a user attach a Google account to an existing account without checking that the Google account really belonged to that user. An attacker could attach their own Google account to someone else's account and then log in as that person.

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.

More by zuksh

View all

6 more disclosed reports, best first.

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.