Generate valid signatures for FBCDN urls
An endpoint in Creative Hub accepted a URL to a private Facebook CDN image and generated a new signed URL for a cropped version of that image. An attacker could use this to bypass access controls and view private photos.
Published on philippeharewood.com
A business endpoint exists in Creative Hub that allows one to upload a project icon via the ad account library connected to the project. This endpoint creates valid signatures for URLS that were previously not valid.
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 view private photos by obtaining a new signed URL for a cropped version, bypassing the original access control.
What the attacker needed
A Facebook account; access to an ad account and business; knowledge of a private photo URL
The fix
The endpoint should be fixed to reject unsigned URLs or verify that the image belongs to the user.
How it was found
- Take a private photo URL and remove all query parameters.
- Send a request to the Creative Hub project edit endpoint with the stripped URL as the profile picture.
- Request the list of projects for the business.
- Find the new signed URL in the response.
- The new URL points to a cropped version of the private photo.
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 stores private photos on a content delivery network (CDN) and uses secret signatures in the URL to control who can see them. This report shows that a feature in Creative Hub would take a URL without a signature and create a new signed URL for a cropped version, letting anyone view the private photo.
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.