(POC) Untrim any live video on Facebook
A Facebook endpoint that trims live videos did not properly check that the requester owned the video, so a crafted request could reset the trim on any live video. An attacker could therefore untrim another user's live video on their behalf.
Published on edmundaa222.medium.com
This could let a malicious user untrim any live video on Facebook using non GraphQL.
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
Impact
An attacker could untrim any live video on Facebook on behalf of its owner, though the request still needed a valid CSRF token from the attacker's own session.
What the attacker needed
A Facebook account; knowledge of the target video ID; a valid CSRF token
The fix
The endpoint was patched by Facebook, presumably to check that the requester owns the video.
How it was found
- Find the ID of the target live video.
- Send a POST request to the trim endpoint with that video ID and a valid CSRF token.
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 trim a video you cut it down to a shorter clip. Facebook had a web address that handled this trimming, but it did not check that the person sending the request actually owned the video. So anyone who knew a video's ID could send the same request and change someone else's video.
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.