Bypassing 2-Factor Authentication for Facebook Business Manager
The 2FA protection on Facebook Business Manager could be bypassed by replaying a captured request with the victim's session cookies and token, allowing an attacker who already had access to the victim's personal Facebook account to perform actions on the Business Manager account.
Published on theshubh77.medium.com
Hi guys, it’s Shubham Bhamare again. In this write-up, I’m going to tell you how I bypassed 2-Factor Authentication for Facebook Business Manager (now Meta Business Suite) using a very simple trick.
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 Business Manager actions did not properly verify that the 2FA challenge had been completed for that specific session, relying only on the presence of valid cookies and a CSRF token.
Impact
An attacker with access to the victim's personal Facebook account could make changes in the victim's Business Manager account despite 2FA being enabled.
What the attacker needed
Access to victim's personal Facebook account; victim has 2FA enabled for Business Manager
The fix
The issue was fixed according to the timeline.
How it was found
- Go to the attacker's own Business Manager account and intercept a request for an action you want to perform on the victim's Business Manager.
- Copy the victim's Facebook cookies and fb_dtsg token and replace them in the captured request.
- Replace the attacker's business_id with the victim's business_id in the request.
- Forward the modified request, and the action is successfully completed on the victim's Business Manager 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.
Two-factor authentication (2FA) is an extra security step, like a code from your phone, that you need to log in. Here, the attacker already had the victim's main Facebook login, but the Business Manager part was supposed to be protected by 2FA. The attacker found that by copying the victim's session cookies (small files that keep you logged in) and a special token into a request, they could skip the 2FA check and make changes.
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.