Skip to content
Access control Write-up Intermediate

Create a block list in brand safety on behalf of any other user

A missing authorisation check in Facebook's brand safety block list feature allowed an attacker to create a block list on another user's ad account by changing the account ID in a request. The victim could not delete the block list, only the attacker could.

Sarmad Hassan Follow

Published on bugreader.com

1- Go to https://www.facebook.com/brandsafety/ 2- Select block list ===> Create block list====> type block list name and upload any .txt file ====> then hit upload =====> apply ====> select any of those options ("Don't apply to ad account now" or "Apply to ad account") it doesn't matter ===> Save 3- Go to Control…

Bugreader by Semicolon | Developed by Mohammad Fakhri Atwi 2023 | www.bugreader.com/mo, on bugreader.com

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 verify that the authenticated user had permission to modify the specified ad account when processing the auto_applied_ad_accounts request.

Impact

An attacker could create block lists on any other user's ad account, and the victim could not remove them without the attacker's action.

What the attacker needed

Attacker has a Facebook account; attacker knows victim's ad account ID; attacker uses a proxy like Burp Suite

How it was found

  1. Log in as the attacker and go to the brand safety page.
  2. Create a block list by uploading a text file and saving it.
  3. Go to Control options, select the block list, and intercept the save request with Burp Suite.
  4. In the intercepted POST request, change the account_id parameter to the victim's account ID and forward it.
  5. The server returns an error, but the block list is still created for the victim.
  6. Log in as the victim and observe the block list created by the attacker, which the victim cannot delete.

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 use a website, your browser sends requests to the server that include an identifier for your account. If the server does not check that the account identifier in the request belongs to you, someone else can change it to your identifier and perform actions as you. Here, the attacker changed the account ID to the victim's, and the server created a block list for the victim without verifying permission.

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 Sarmad Hassan

View all

17 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

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.