Oauth Misconfiguration Leads to 0-Click ATO
The OAuth sign-up flow allowed a user to omit sharing their Facebook email, leaving the email field empty and disabled. By intercepting the account creation request and inserting an already verified victim email, the attacker could log into the victim's account without any interaction.
Published on medium.com
When I open the main website I got the main page and a login/register functionality so I decided to create an account
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 server trusted the client-supplied email field during OAuth account creation instead of using the verified email from the OAuth provider, and did not check that the email belonged to the authenticating user.
What the attacker needed
Facebook account; Victim's verified email address; Ability to intercept HTTP requests
The fix
The server should ignore any client-supplied email during OAuth registration and only use the verified email returned by the OAuth provider, or require email verification if the provider does not supply one.
How it was found
- Sign up with Facebook OAuth and choose not to share your email address.
- On the Create account page, note that the email field is empty and disabled.
- Intercept the account creation request and change the email parameter to a victim's already verified email address.
- Submit the request and observe that you are 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.
When you sign up with Facebook, the site asks Facebook for your email. If you refuse to share it, the site still lets you create an account but leaves the email field blank. The attacker found they could change that blank field to someone else's email and the site would log them in as that person.
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.