Skip to content
Account takeover Write-up Beginner

Story about Facebook Oauth Account Takeover

The Facebook OAuth login endpoint accepted an email address as the sole identifier, allowing an attacker to log in as any user by changing the email parameter to the victim's address. The attacker could take over any account knowing only the victim's email.

Zerb0a Follow

Published on medium.com

Bounty$150 View original

Hi, My name is Rafli pasya. My hacker name is Zerb0a.

zer, 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 used the email address from the OAuth callback as the sole authentication factor, without verifying a token or session from Facebook.

Impact

An attacker could take over any account by knowing only the victim's email address.

What the attacker needed

Victim's email address; ability to intercept HTTP requests

The fix

The text states the issue was fixed, but does not describe the fix; it should verify the OAuth token or session before trusting the email.

How it was found

  1. Intercept the login request while logging in with Facebook.
  2. Change the email parameter to the victim's email address.
  3. Submit the request and observe being logged in as the victim.

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 log in with Facebook, the website should verify that Facebook confirms who you are. Here, the site trusted an email address sent in the request without checking it, so anyone could pretend to be another user by typing their email.

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 Zerb0a

View all

4 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.