Skip to content
OAuth / SSO Write-up Intermediate

The Most Dangerous OAuth Bug I’ve Ever Found

The OAuth provider allowed accounts to be created with unverified email addresses and then returned that email as verified to relying parties. An attacker could register with a victim's email and log into the victim's account on any site using the provider.

medium.com

Published on medium.com

Hello Im Ali Mojaver! Some of you might know me (just kidding).

Ali Mojaver, 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 provider treated unverified email addresses as verified when returning user information to relying parties.

Impact

An attacker could take over every user account on any website that used this platform as an OAuth provider.

What the attacker needed

Victim has an account on a relying site; attacker knows the victim's email; relying site trusts the provider's email claim

How it was found

  1. Create an account on the OAuth provider using the victim's email address.
  2. Go to the relying website and choose to log in with the provider.
  3. Log in to the provider account that uses the victim's email.
  4. The provider returns the unverified email as if it were verified, logging the attacker 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 lets you log into one website using an account from another, like 'Log in with Google'. This provider let anyone create an account with someone else's email without proving they owned it, then told other sites the email was confirmed. So an attacker could sign up with a victim's email and get into the victim's account on any site that trusted this provider.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.