IDOR allows non-group members to add any group to favorites on th
A GraphQL mutation that saves favourite groups on a Facebook profile did not check whether the caller was a member of the group being added. An attacker could add any public or private group, including groups they do not belong to, to their own profile's favourites.
Published on medium.com
On Facebook, normally only group members can add a group to their profile’s favorites. However, this IDOR vulnerability allows non-group members to add any public or private group to their profile.
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 GraphQL save mutation trusted the client-supplied group identifier and did not verify that the acting user was a member of that group.
Impact
A user could add any public or private group, including ones they are not a member of, to their profile's favourites, which the report says violates Facebook's policies.
What the attacker needed
A Facebook account; professional mode enabled; knowledge of the target group's ID
How it was found
- Log in as User A and create a group.
- Turn on professional mode, open the About tab, then Communities, then Favorite groups, and add User A's group while intercepting the save request.
- In the intercepted request, replace the group identifier with User B's group identifier and send it.
- Refresh the profile page and see that User B's group has been added to User A's favourites.
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 save a favourite group on your profile, the website sends a request to its server with the group's identifier. The server should check that you are actually a member of that group before saving it. Here it did not, so anyone could put any group, even a private one, into their favourites list.
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.