Misconfiguration of Demographics Privacy in a Page
A Facebook Page post's demographic audience restriction did not prevent a user outside the selected demographic from viewing the post. An attacker could view posts that were intended to be limited to specific genders or age groups.
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 demographic visibility check was not enforced when displaying the post to users outside the selected audience.
What the attacker needed
A Facebook account; access to a Page post with demographic limits
The fix
Facebook temporarily fixed the issue by removing the feature.
How it was found
- User 1, as the Page, publishes a post on the page.
- User 1 clicks 'Edit Post' to edit the new post.
- User 1 changes the privacy from 'Public' to 'Demographics'.
- User 1 sets the limit visibility, for example gender: Women, age: 13–14.
- User 2, a male aged 20, views the post.
- User 2 can still view the post despite the demographic restriction.
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.
Facebook lets page owners restrict who sees a post by demographics like gender or age. The report shows that a user who did not match the chosen demographic could still see the post. This means the privacy setting did not work as intended.
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.