Modifying any Ad Space and Placement
Ad Space and Placement identifiers were not checked against the requesting user, so anyone who knew a victim's identifiers could edit that victim's Ad Space or add and edit Placements. The reporter also found that the first fix still allowed this for users with a Tester or Analytic User role.
Published on medium.com
In early November, Facebook introduced a new feature in the Audience Network called Ad Spaces.
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 used the client-supplied ad_space_id or placement ID to select the object without verifying that the object belonged to the authenticated user.
Impact
A malicious user could modify any information of an Ad Space and could also add and modify Placements; the initial fix still allowed this for users holding a Tester or Analytic User role.
What the attacker needed
A Facebook developer account; knowledge of victim Ad Space or Placement IDs; a Tester or Analytic User role for the initial fix bypass
The fix
Facebook fixed the issue, but the first fix was insufficient and a second fix was applied; the text does not describe the final fix.
How it was found
- Open the Audience Network Ad Spaces page for an app and create an Ad Space.
- Edit the Ad Space while capturing the POST request with a debugging tool.
- Change the ad_space_id parameter in the request to another Ad Space ID.
- Create a Placement in your Ad Space while capturing the POST request.
- Change the ad_space_id in that request to another Ad Space ID.
- Edit your Placement while capturing the request, then change the Placement ID in the request URL to the victim's Placement ID.
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.
An Ad Space is a slot in an app where ads can appear, and a Placement is a specific position inside it. The website trusted the identifier sent in the request instead of checking that the logged-in user owned that Ad Space or Placement. That meant someone could change another person's ad settings just by swapping in their identifier.
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.