Removing Document Cover
A user who was not permitted to edit a victim's document could still remove its cover photo by changing the note identifier in a request. The attacker could alter the victim's document and notes without authorisation.
Published on medium.com
Unfortunately Facebook now deactivate user to create a post with document in group. Whereas from this feature I start as bug hunter and find 10 bugs on Facebook.
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 remove-cover endpoint trusted the note identifier supplied by the client without checking that the caller had edit permission on that note.
Impact
An attacker could remove the cover photo from another user's document or note without permission; the text does not claim any wider effect.
What the attacker needed
A Facebook account; victim has a document or note; attacker knows the victim's note identifier
The fix
The issue was fixed by Facebook after the report.
How it was found
- Victim creates a document and does not allow any member to edit it.
- Attacker creates their own document and removes its cover.
- Attacker replaces the note identifier in the request with the victim's identifier.
- Attacker sends the request, which removes the victim's cover.
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 document is a shared page that can have a cover image. The site checked whether you could edit the document only in the page, not in the request that removes the cover. So someone else could send that request with your document's number and remove your cover even though you never gave them 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.