Determine users with detailed role model on behalf of any Facebook Application
An endpoint that returns which permissions a user holds on a business asset did not check that the caller's business owned the target app. An attacker could supply any app ID and any user ID and learn that user's admin or developer role on that app.
Published on amolbaikar.com
A year later from my previous findings I wished to revisit business manager. A lot of changes have been made.
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 permissions-fetch endpoint authorised the request against the caller's business but never verified that the target app belonged to that business, so arbitrary app and user identifiers were accepted.
Impact
An attacker who knows one developer's profile could learn that person's admin or developer role on any app, which could aid further targeting; the text does not claim any write access or account takeover.
What the attacker needed
A business manager account; knowledge of a target app ID; knowledge of a target user's profile ID
The fix
The endpoint was fixed by Facebook so that it checks the caller's business actually owns the target app before returning permission data.
How it was found
- Send a request to the business permissions endpoint with the target app ID, asset type set to app, the target user's ID and the attacker's own business ID.
- Read the response, which lists the permission identifiers held by that user on the target app.
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 website endpoint that looks up a user's permissions on an app should first check that the person asking is allowed to see that app. Here it did not, so anyone could ask about any app and any user and get back a list of that user's roles. This is called an IDOR: the server trusts an identifier sent by the client instead of checking ownership.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.