Unlink Instagram accounts from FB business
A GraphQL endpoint allowed a user to unlink Instagram accounts from another user's Facebook business without proper authorisation. An attacker could use this to disrupt other businesses by removing their linked Instagram accounts.
The original lives on naveen.sh
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 GraphQL endpoint did not verify that the requesting user had permission to modify the specified business.
What the attacker needed
Knowledge of business ID and Instagram account ID
How it was found
- Send a POST request to the GraphQL endpoint with the business ID and Instagram account 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.
This report is about a missing permission check. A GraphQL endpoint is a way for apps to ask a server for data or actions. The server did not check whether the person making the request actually owned the business, so anyone could remove Instagram accounts from someone else's business.
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.