Skip to content
Account takeover Write-up Intermediate

The OAuth Oversight: When Configuration Errors Turn into Account

The OAuth login flow did not verify that the email address returned by the provider belonged to the same account, so an attacker could change their account's email to the victim's address and then log in via OAuth to take over the victim's account.

ProwlSec Follow

Published on medium.com

Hey folks I hope you are doing well. I am back with another writeup on OAuth misconfiguration leads to account takeover.

ProwlSec, 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 application linked OAuth logins by email address without verifying that the email was verified or that it matched the existing account's identity.

Impact

An attacker could take over a victim's account, gaining full access to it.

What the attacker needed

A free account; victim's email address known

How it was found

  1. Create an account on the target site using OAuth.
  2. Change the account's email address to the victim's email address.
  3. Log out and log in again via OAuth using the previous email.
  4. The attacker is logged into 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 'Sign in with Google'. The site trusted the email address from that service without checking it was the same person. An attacker could set their account's email to the victim's, then log in again with OAuth and be placed into the victim's account.

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 ProwlSec

View all

1 more disclosed report, 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.