Skip to content
Account takeover Write-up Advanced

How I Could Have Hacked Multiple Facebook Accounts

The author theorised that Facebook's six-digit password reset codes could be duplicated if more than a million reset requests were made, and that a guessed code could then be brute-forced against a large set of user IDs. They claimed to have found a matching ID and gained access to an account, but the text does not confirm that Facebook acknowledged or fixed the issue.

medium.com

Published on medium.com

Let’s get into the nitty-gritty. The only way you can reset your password on Facebook (if you’ve forgotten one) is through entering a 6 digit passcode.

Gurkirat, 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

Impact

The author claims they could take over a random user's account by guessing a reset code and matching it to a user ID, but the text does not show that Facebook confirmed the issue or that it affected more than the single account described.

What the attacker needed

Ability to send many reset requests; rotating proxy IPs; large set of user IDs; headless browser automation

How it was found

  1. Scrape a large number of Facebook user IDs and resolve them to usernames.
  2. Send password reset requests to those users through rotating proxy IPs and headless browsers.
  3. Guess a six-digit passcode and test it against the batch of user IDs via the recovery URL.
  4. Use the matching ID and passcode to reach the password reset page and take over the 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 forget your password, a website may send a short numeric code to your email or phone. This author guessed that if enough people asked for a code at the same time, two people might get the same code, and then a single guessed code could be tried against many accounts. They also describe scraping many public profile IDs and using many proxy servers to send reset requests at scale, but the text does not prove the underlying flaw was real.

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.