Skip to content

Independent cybersecurity briefing

Latest

RSS
Breaches, bounties, zero-days, and AI.

Bug Bounty Write Ups

Meta 2FA Bypass: The $27,200 Code With No Rate Limit

*AI-assisted: drafted with AI help from public sources, then reviewed and edited. This is an analytical case study of a public disclosure, not my own discovery.*

Adam Hale, ZeroDay Times editorBy Adam Hale3 min read

Still life for “Meta 2FA Bypass: The $27,200 Code With No Rate Limit”: a magnifier and a sealed envelope, walnut desk, Meta mark, signal CASE. [ BUG BOUNTY ] badge.

AI-generated illustration

A Meta Accounts Center check let anyone guess a 6-digit code endlessly, enough to strip SMS 2FA from Facebook accounts. Meta paid $27,200

AI-assisted: drafted with AI help from public sources, then reviewed and edited. This is an analytical case study of a public disclosure, not my own discovery.

Your Facebook account has SMS two-factor authentication turned on. A stranger who knows only your phone number makes it disappear. That was the Meta 2FA bypass Nepalese researcher Gtm Mänôz (Manoj Gautam) reported in September 2022: a six-digit confirmation code in the new Meta Accounts Center could be guessed as many times as an attacker liked. Meta fixed it and paid $27,200.

Disclaimer: * Educational and defensive use only. Meta fixed this in October 2022. Request details and reproduction steps are intentionally omitted.*

Vulnerability Overview

  • Type: Missing rate limit on a contact-point verification code, leading to SMS 2FA removal on linked Facebook accounts
  • CWE (analytical mapping): CWE-307 (Improper Restriction of Excessive Authentication Attempts), CWE-287 (Improper Authentication)
  • CVE: None. Meta’s bug bounty program does not issue CVEs for its own web services
  • Bounty: $27,200 in total. Meta paid an initial award for the Instagram verification bypass, then an additional amount for the 2FA impact under its new payout guidelines

How the Meta 2FA Bypass Worked (high level)

Ahead of BountyCon 2022, Mänôz noticed a redesigned Accounts Center inside Instagram. It let users add an email or phone number to Instagram and a linked Facebook account, confirmed with a six-digit code.

Six digits means one million possibilities, which only matters if the server stops a guesser early. This confirmation step had no rate limit at all.

So an attacker could add a victim’s known phone number to their own account and keep guessing until the code matched. Meta then treated the number as confirmed by the attacker. If the victim had that number fully confirmed with 2FA on, Facebook turned their 2FA off. If the number was used only for 2FA, it was revoked and removed. The same flaw also let attackers confirm email addresses and phone numbers they did not own, on Instagram and on Facebook.

Business Impact

SMS 2FA is the safety net for phished or reused passwords. Removing it silently turns a leaked password into account takeover, hitting the users who did everything right.

Accounts Center was still in limited rollout; Meta first could not reproduce the bug because the feature was missing from its test accounts. Meta later told press it was caught during a small public test, with no evidence of abuse.

Fixing Meta 2FA Bypass-Style Code Guessing (my own analysis)

1. Budget each code. A handful of attempts per challenge, then the code is burned and a fresh one is required.

2. Limit by account and by target. Per-IP limits alone fail against distributed guessing; cap attempts per user and per phone number or email.

3. Never move a 2FA factor silently. Claiming a contact point that is already verified elsewhere should notify the current owner and require step-up.

# Pseudocode: every verification code gets a small, server-side attempt budget
MAX_TRIES = 5
def verify_contact_code(user, challenge, submitted):
    if challenge is None or challenge.owner != user.id or challenge.expired():
        return "invalid"
    if challenge.attempts >= MAX_TRIES:
        challenge.burn()                          # force a brand-new code
        return "too_many_attempts"
    if limiter.exceeded("user", user.id) or limiter.exceeded("target", challenge.target):
        return "slow_down"                        # holds across IPs and challenges
    challenge.attempts += 1                       # count before comparing
    if not constant_time_equal(challenge.code_hash, hash_code(submitted)):
        return "wrong_code"
    if challenge.target_verified_by_someone_else():
        notify_owner(challenge.target)            # 2FA phones never move silently
        return "step_up_required"
    challenge.consume()
    return "linked"
# Test: 10,000 guesses from many IPs -> 5 tries per code, then burned; no link

Key Takeaways

  • A six-digit code is only as strong as the attempt limit behind it.
  • Rate limits belong on every verification endpoint, including the “add a contact” flows that quietly control recovery and 2FA.
  • New UI surfaces reuse old trust: if they can change security factors, they need the same protections as login.

Credit & Sources

Discovered and reported by Gtm Mänôz (Manoj Gautam, Kathmandu, Nepal). Primary source: Two Factor Authentication Bypass On Facebook, 20 January 2023. Corroboration: Meta’s Looking Back at Our Bug Bounty Program in 2022 (confirms the $27,200 award) and The Verge’s report. Facts come from those sources; analysis and code are original.

Next breakdown: the $25K GitHub OAuth bypass hidden in a HEAD request. Follow @masimshahzad for daily bug bounty breakdowns.

First published by Adam Hale on Medium.

Sources

Share

Corrections and tips:[email protected]