Skip to content
Business logic Write-up Beginner

How I Bypassed Facebook’s Email Validation (Logic Flaw)

Facebook's signup page rejected temporary or spam email addresses, but the confirmation page allowed changing the email to one that was previously rejected. An attacker could register with a disposable email address despite the intended restriction.

medium.com

Published on medium.com

Hello, I am Abdullah Ahmed, a cybersecurity enthusiast and a beginner Bug Bounty Hunter.

Abdullah Ahmed, 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 email validation was only applied on the initial registration form and not on the contact info update page.

Impact

An attacker could bypass the email validation and register with a temporary or spam email address, which the platform intended to block.

What the attacker needed

A Facebook account signup attempt; access to a temporary or spam email address

The fix

The email validation should be applied consistently on the confirmation page and when changing email from the profile.

How it was found

  1. Go to the Facebook account registration page.
  2. Enter an email from a temporary or spam provider; Facebook refuses it.
  3. Enter a popular email provider address and click Sign Up.
  4. On the confirmation page, click Update Contact Info.
  5. Change the email to the previously rejected address.
  6. Receive the registration code on that email.

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, Facebook checks if your email is from a temporary or spam provider and blocks it. But after you start signing up, there is a page where you can change your email, and that page did not do the same check. So you could enter a blocked email there and still get the registration code.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.