Skip to content
Account takeover Write-up Beginner

Account Takeover via Facebook OAuth Misconfiguration

The application allowed users to manually enter an email address when Facebook OAuth did not provide one, without verifying ownership. An attacker could enter a victim's email and gain full access to their account without any interaction from the victim.

medium.com

Published on medium.com

Hey everyone, Today I’m excited to share a bug I discovered in a Bugcrowd VDP target involving Facebook login — and it led to full account takeover without any victim interaction. Grab your coffee and let’s dive in.

Ahmed Elghazaly, 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 failed to verify that the manually entered email address belonged to the user, treating it as trusted identity data.

Impact

An attacker could take over any account by entering the victim's email address, with no victim interaction required.

What the attacker needed

A Facebook account; knowledge of victim's email

How it was found

  1. Go to the login page and choose Facebook login.
  2. On Facebook's permission screen, deny access to your email address.
  3. The app then asks you to manually enter an email address.
  4. Enter the victim's email address.
  5. You are logged in as the victim without any password or verification.

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 in using another service like Facebook. Here, the app trusted an email address typed by the user without checking it. So anyone could type someone else's email and get into their 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.

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.