View Friends List of any users using
The 'View as' feature on Facebook allowed a user to see the friends list of other users even when those users had set their friends list to 'only me'. An attacker could replace their own username in the URL with another username while in 'View as' mode to view that user's friends list.
Published on ph-hitachi.medium.com
{{media:0}}
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 'View as' feature did not properly check whether the viewer was authorised to see the target user's friends list, allowing username substitution to bypass privacy settings.
Impact
An attacker could view the friends list of any Facebook user, even if that user had set their friends list to be visible only to themselves, leading to a privacy breach.
What the attacker needed
A Facebook account; access to the 'View as' feature
The fix
The issue was fixed by Facebook, as indicated in the timeline.
How it was found
- Set all privacy settings to 'only me' on your own account.
- Use the 'View as' feature on your own profile and click the friends tab; your friends list appears even though it should be hidden.
- While in 'View as' mode, replace your username in the URL with another user's username.
- The other user's friends list is displayed.
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 has a 'View as' tool that lets you see how your profile looks to others. The researcher found that while using this tool, they could change the username in the web address to someone else's name and see that person's friends list, even if that person had set their friends list to private. This means a privacy setting was not being respected.
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.