Facebook-Business-Takeover
An endpoint for importing admins into a business account lacked permission checks, allowing an attacker to add themselves as an administrator to any business. This could let an attacker take over the business account and access connected assets such as pages, ad accounts, applications, and Instagram accounts.
Published on philippeharewood.com
There is a call to import admins to a business account. The call at the time didn’t seem to have any permissions set to it.
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 admin import endpoint lacked an authorization check to verify the requester had permission to add admins to the target business.
Impact
An attacker without an existing role could take over any business account and gain access to various business assets (Facebook pages, Ad accounts, applications, Instagram accounts) connected to the business.
What the attacker needed
A Facebook account; knowledge of target business ID; a valid session
The fix
The endpoint was removed and the issue was fixed by Facebook.
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.
A business account on Facebook can have multiple administrators who manage pages and ad accounts. The feature that lets you add new admins did not check whether the person making the request was allowed to do so. That meant anyone could make themselves an admin of someone else's business and control everything connected to it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.