Exploiting Facebook Ads: $2100 Bug Bounty for Role Management DoS
A parameter controlling role permissions in Facebook's shared access feature accepted an invalid numerical ID, which locked the ad account owner out of managing permissions. An attacker could send a single request to prevent the owner from adding, removing, or changing access for anyone.
medium.com
Published on medium.com
I recently found a security flaw that let me mess up ad accounts with a single request.
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 server did not validate that the permitted_roles parameter contained a known, valid role ID before applying it.
Impact
The ad account owner could not control who accessed their account, potentially causing campaign chaos, financial risk, and reputation damage.
What the attacker needed
Access to the shared access feature; ability to intercept requests
The fix
The bug was fixed by Meta after being reported.
How it was found
- Intercept the request for shared access in the ad account feature.
- Locate the permitted_roles parameter containing a numerical role ID.
- Change the ID to a random 15-digit number.
- Send the modified request, which locks the owner out of permission management.
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 share access to an ad account, the system uses a number to represent each permission level. The bug was that it did not check whether that number was valid. By sending a made-up number, an attacker could break the permission settings so the real owner could no longer manage who had access.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.