Skip to content
Account takeover Write-up Intermediate

Third Party Account Linking Account Takeover

The third-party account linking flow lacked a state parameter and used GET requests, allowing an attacker to link their own social media account to a victim's account. The attacker could then log in to the victim's account using their own social media credentials.

medium.com

Published on medium.com

This story is about how third party account linking could lead to Account takeover.

phlmox, 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 OAuth implementation omitted the state parameter and used GET requests, so there was no CSRF protection on the account linking callback.

Impact

An attacker could link their own social media account to a victim's account and then log in as the victim.

What the attacker needed

Victim must start linking a social media account; attacker must have a social media account

How it was found

  1. Trigger the bind request on the victim's end to start linking a social media account.
  2. Perform the callback request on the victim's end using the attacker's saved callback code.

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.

When you link a social media account to a website, the site should verify that you started the linking process. Here, it did not, so an attacker could trick the site into linking their own social media account to someone else's account. Then the attacker could 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.

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.