Skip to content
Access control Write-up Beginner

Bypass ad account roles vulnerability 2015

The backend endpoint for adding users to an ad account did not check the requester's permission level, so a user with Analyst access could assign the Admin role. An attacker with limited access could therefore take administrative control of a shared ad account.

Pouya Follow

Published on darabi.me

I discovered an authorization vulnerability in Facebook Ads Manager that allowed a user with limited access to an ad account to escalate privileges and gain administrator access.

Pouya, on darabi.me

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 permission-management endpoint trusted the client-supplied permission value and did not verify that the requester had authority to assign that role.

Impact

A lower-privileged user could escalate to administrator and take control of an ad account shared through Business Manager.

What the attacker needed

Limited access to a shared ad account; ability to send requests to the permissions endpoint

The fix

Facebook deployed a fix that stopped lower-privileged users from assigning unauthorised roles.

How it was found

  1. Obtain limited (Analyst) access to a shared ad account.
  2. Send a POST request to the permissions endpoint with action=add_user.
  3. Set the add_user_permission parameter to the Admin value (1001).
  4. The target user is added as an administrator of the ad 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.

Ad accounts can be shared with different permission levels, like Analyst (view only) or Admin (full control). The server accepted a request to add an Admin user from someone who only had Analyst rights, because it did not check whether that person was allowed to grant higher roles. This let a limited user give themselves or someone else full control.

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.

More by Pouya

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.