Skip to content
Access control Write-up Intermediate

Page shops with a hidden Product in “Featured product section” which could be controlled by attacker (Ex Editor).

A page editor could create a collection that referenced a product from another page, and after being removed from that page, the editor could still control the featured product section of the victim's page. This could allow an attacker to steal sales or manage featured products without any role on the page.

Rohit Kumar Follow

Published on medium.com

While initiating this request a user needs “Full permission — Admin” on the victim’s page, later on when that admin will be removed from that page, that malicious user will be still able to control the featured product section of the victim page.

Rohit kumar, on medium.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 application did not verify that the product_id used in a collection belonged to the same page as the collection.

Impact

An attacker with editor access could control the victim page's featured products even after removal, potentially stealing sales or managing featured products without a role; Facebook noted that page editors already have significant access.

What the attacker needed

Editor-level access to the victim page; shops enabled on both pages; ability to intercept requests

How it was found

  1. Enable shops on both pages using their respective accounts.
  2. As the attacker, add a new product on the attacker's page and copy the product_id from the response.
  3. As the victim, add a product and create a collection of products, then copy the collection_id.
  4. As the attacker, create a collection with the attacker's products and intercept the request.
  5. Change the collection_id to the victim's collection_id and forward the request.
  6. Remove the attacker from the victim's page, then make changes to the attacker's product and observe them reflected in the victim's featured product area.

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.

A page editor is someone who helps manage a Facebook page. The bug meant that an editor could set up a product collection that pointed to a product on a different page, and even after the editor was removed, changes to that product would still show up on the victim's page. This could let the attacker take over the featured products area without 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 Rohit Kumar

View all

4 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.