Disclose private mockups for other users in facebook Creative Hub
The 'object_story_id' parameter in a GET request used to preview mockups in Facebook Creative Hub was vulnerable to an IDOR, allowing an attacker to view other users' private draft mockups by substituting the victim's story ID. This exposed mockup details such as title, page name, owner ID, and description.
Published on blog.flawminers.com
Facebook offers a powerful feature known as “Creative Hub,” designed to serve as a collaborative platform for businesses. This tool facilitates the creation of ad mockups and provides a space for learning and drawing inspiration from creative possibilities without requiring any specific design skills or prior…
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.
Context
Facebook Creative Hub is a feature aimed at businesses: it lets teams build ad mockups and browse creative ideas without needing design skills or prior Facebook advertising experience. The researcher links to Facebook's own help page for the feature at https://www.facebook.com/business/help/230486987369480.
Inside Creative Hub, a mockup can be previewed in two placements: "Desktop News Feed" and "Mobile News Feed". The preview is rendered by a GET request to a pagelet controller, and that request carries the identifier of the story behind the mockup in a parameter called object_story_id. That parameter is the subject of this report.
Setup
Two business accounts are needed: one acting as the victim, one as the attacker. The victim account must own at least one mockup saved as a draft (the report calls these "Private" mockups). The attacker needs the object_story_id value belonging to the victim's mockup, which is the precondition for the whole attack.
A proxy such as Burp Suite is used to intercept the preview request.
Finding it
While creating a mockup and switching the preview between placements, the researcher intercepted the request that loads the Desktop News Feed preview. The request passes the story identifier straight from the client in object_story_id, and the server uses it to decide which story to render. The request carries the story identifier in object_story_id, and swapping it for another value returned someone else's story. That is the IDOR: the object reference is user-controlled and the server does not check that the caller is allowed to see the referenced object.
The report states the consequence directly: an attacker can disclose other users' private mockups (draft mockups) if they know the FBID of the story attached to the mockup.
Exploitation
The researcher splits the reproduction into a victim phase (steps 1 to 6) and an attacker phase (steps 7 and 8).
Step 1: log in as the victim
Visit https://business.facebook.com/ads/creativehub and log in with the business account.
Step 2: create a private mockup
Navigate to Project, then Private, then the Create Mockup button, select Carousel, fill in all required information such as title, text and image, and save the mockup. This produces a draft mockup that is not meant to be visible to anyone else.
Step 3: open the preview
Return to Projects, choose Private, and click "Preview all" in the upper right side.
Step 4: note the preview URL
You are redirected to:
https://www.facebook.com/ads/creativehub/preview/?act={your-account-ID}&project_access_token={your-access-token}
The URL carries the account ID and a project access token, which is why the preview request that follows can be made in the context of that project.
Step 5: intercept the placement switch
From the upper right side, select the gear button, then VIEW BY PLACEMENT, and intercept the traffic with Burp Suite. Choose Desktop News Feed and make sure it is selected.
Step 6: capture the GET request
The preview is loaded by this request:
GET /ajax/pagelet/generic.php/AdPreviewPageletController?dpr=1&fb_dtsg_ag=blablabla&data={"adaccountid":"your-ads-account-ID","adid":null,"appid":"1111111","creative":{"object_story_id":"557660361354544_557660471354533"},"customplaymode":null,"loadingoverlay":"shimmer","videodata":{},"format":"DESKTOP_FEED_STANDARD","borderstyle":"standard","projectAccessToken":"your-project-token","editable":false,"version":"v3.0"}&..etc
The important parts:
- The path
/ajax/pagelet/generic.php/AdPreviewPageletControlleris the pagelet controller that renders the ad preview. - The
dataquery parameter is a JSON blob. Inside it,creative.object_story_idholds the story identifier, in the form<page-or-owner-id>_<story-id>. formatis set toDESKTOP_FEED_STANDARD, which is the Desktop News Feed placement.projectAccessTokencarries the project token from the preview URL, andadaccountididentifies the ad account.versionisv3.0.
Step 7: repeat as the attacker
Repeat steps 1 to 6 with the attacker's own business account, so that the attacker has a valid request of their own to modify.
Step 8: swap the identifier
Take the captured GET request and replace the attacker's object_story_id with the victim's object_story_id value, for example "object_story_id":"557660361354544_557660471354533", then forward the request to the server.
The server renders the victim's private mockup in the attacker's browser. The report adds that the response also exposes details such as the mockup title, page name, page ID, owner ID, owner name, description text and URL description, which can be read in Burp Suite's response view.

Root cause
The preview controller takes object_story_id from the client and uses it to fetch and render the story without verifying that the requesting account is allowed to see that story. The request carries the attacker's own projectAccessToken and ad account, and swapping only the story identifier was enough to return the victim's mockup. The pattern is the classic IDOR: a user-controlled object identifier returned without an apparent permission check. The report does not describe the server-side code, so the exact check that was absent is not stated.
Impact
An attacker who knows the FBID of a story attached to another user's mockup can view that user's private (draft) mockup, including its title, page name, page ID, owner ID, owner name, description text and URL description. The exposure is limited to mockups whose story identifier the attacker knows; the report does not describe any way of enumerating identifiers.
Fix
Meta fixed the issue: the timeline records the report as triaged on 23 October 2018, fixed on 23 April 2019, and the fix confirmed by the researcher on 24 April 2019, with a bounty awarded on 7 June 2019.
Variants to test
- Other placements in the same preview flow. Switch
formatfromDESKTOP_FEED_STANDARDto the Mobile News Feed value and repeat the swap. A positive result is the victim's mockup rendering in the other placement. - Other identifiers in the same JSON blob. Change
adaccountidorappidwhile keeping the victim'sobject_story_id. A positive result is a response that still returns the victim's story data under a different account context. - The same controller with a different object type. Try identifiers for other creative objects the controller accepts. A positive result is any object the caller does not own being returned.
- Identifier enumeration. Where identifiers are sequential or guessable, test neighbouring values. A positive result is any response containing another user's data rather than an error or empty result.
- Token scope. Reuse a
projectAccessTokenfrom one project against a story from another project. A positive result is cross-project data returned with a token that should not cover it.
What happened, in plain words
Facebook has a tool called Creative Hub. It is meant for businesses: a team can sit down, build pretend versions of adverts (called mockups) and look at creative ideas, without anyone needing design skills or experience with Facebook advertising. The researcher points to Facebook's own help page for the feature at https://www.facebook.com/business/help/230486987369480.
Inside Creative Hub you can preview a mockup in two places: the "Desktop News Feed" and the "Mobile News Feed". A preview is just a picture of what the advert would look like to a person scrolling Facebook. When you switch between those two previews, your browser quietly asks Facebook's servers for the preview, and that request contains a code that identifies the story behind the mockup. The code sits in a parameter called object_story_id. That parameter is the whole subject of this report.
A parameter is a named value stuck onto the end of a web address or request, a bit like a label on a parcel. The server reads the label to know what you are asking for. The problem the researcher found is that swapping the object_story_id the browser sent for another user's value returned that user's private mockup. That kind of mistake has a name: Insecure Direct Object Reference, or IDOR. Think of a cloakroom where you hand in a ticket with a number and get back whatever coat has that number, even if the coat belongs to someone else, because nobody at the desk checks that the ticket is yours.
Because of this, an attacker could see other people's private mockups (the ones saved as drafts) as long as they knew the FBID of the story attached to the mockup. FBID simply means Facebook ID, the long number Facebook uses internally to refer to a thing.
Setting up
You need two business accounts: one playing the victim, one playing the attacker. The victim account must own at least one mockup saved as a draft; the report calls these "Private" mockups. The attacker needs the object_story_id value that belongs to the victim's mockup. That value is the precondition for the whole attack: without it, there is nothing to swap in.
To see and edit the requests travelling between the browser and Facebook, the researcher uses a proxy called Burp Suite. A proxy is a program that sits between your browser and the internet and lets you read, pause and change the traffic going past, like a postal worker who opens every letter, reads it, and can rewrite it before sending it on.
Finding it
While creating a mockup and switching the preview between placements, the researcher intercepted the request that loads the Desktop News Feed preview. The request passes the story identifier straight from the client (your browser) in object_story_id, and the server uses it to decide which story to render. Nothing in the request ties that identifier to the account making the call, so swapping it for another value looked like it should return someone else's story. That is the IDOR: the reference to the object is controlled by the user, and the server does not check that the caller is allowed to see the referenced object.
The report states the consequence directly: an attacker can disclose other users' private mockups (draft mockups) if they know the FBID of the story attached to the mockup.
Exploitation
The researcher splits the reproduction into a victim phase (steps 1 to 6) and an attacker phase (steps 7 and 8).
Step 1: log in as the victim
Visit https://business.facebook.com/ads/creativehub and log in with the business account.
This is simply the normal way in. You need to be logged in so that Facebook knows who you are and gives your browser the session it needs to use Creative Hub.
Step 2: create a private mockup
Navigate to Project, then Private, then the Create Mockup button, select Carousel, fill in all required information such as title, text and image, and save the mockup. This produces a draft mockup that is not meant to be visible to anyone else.
A carousel is an advert format that shows several images side by side, each with its own title and link. The point of this step is to have something private to protect: a draft that only the victim should be able to see.
Step 3: open the preview
Return to Projects, choose Private, and click "Preview all" in the upper right side.
This is how a normal user looks at their own mockup. It is also how the researcher gets the browser to make the preview request that will later be captured.
Step 4: note the preview URL
You are redirected to:
https://www.facebook.com/ads/creativehub/preview/?act={your-account-ID}&project_access_token={your-access-token}
Line by line:
https://www.facebook.com/ads/creativehub/preview/is the address of the preview page.act={your-account-ID}is a parameter carrying your account ID, the number that identifies your advertising account.project_access_token={your-access-token}is a parameter carrying a project access token. A token is a short string of characters that acts like a temporary key or a wristband at an event: it proves to the server that you have already been let in, so you do not have to prove it again on every request.
The URL carries the account ID and a project access token, which is why the preview request that follows can be made in the context of that project.
Step 5: intercept the placement switch
From the upper right side, select the gear button, then VIEW BY PLACEMENT, and intercept the traffic with Burp Suite. Choose Desktop News Feed and make sure it is selected.
A placement is simply where the advert would appear. Switching to Desktop News Feed forces the browser to ask the server for that particular preview, and that is the request the researcher wants to catch. Intercepting means telling Burp Suite to hold the request so it can be read and edited before it reaches Facebook.
Step 6: capture the GET request
The preview is loaded by this request:
GET /ajax/pagelet/generic.php/AdPreviewPageletController?dpr=1&fb_dtsg_ag=blablabla&data={"adaccountid":"your-ads-account-ID","adid":null,"appid":"1111111","creative":{"object_story_id":"557660361354544_557660471354533"},"customplaymode":null,"loadingoverlay":"shimmer","videodata":{},"format":"DESKTOP_FEED_STANDARD","borderstyle":"standard","projectAccessToken":"your-project-token","editable":false,"version":"v3.0"}&..etc
Line by line:
GETis the type of request. A GET request asks the server to send something back, without changing anything on the server. It is the everyday "please give me this page" request your browser makes all the time./ajax/pagelet/generic.php/AdPreviewPageletControlleris the path. It points at the piece of Facebook's software (the pagelet controller) that builds the ad preview. An API, in simple terms, is a doorway on a server that programs talk to instead of humans; this path is one such doorway.dpr=1is a parameter, andfb_dtsg_ag=blablablais another. The report does not explain what they do; the second value is clearly a placeholder in the write-up.data=is the important parameter. Its value is a JSON blob. JSON is just a way of writing structured information as text, using curly brackets for groups and quotes around names and values, so a computer can read it unambiguously.- Inside the blob,
"adaccountid":"your-ads-account-ID"says which ad account the request is for. "adid":nullmeans there is no ad ID;nullis the word for "nothing here"."appid":"1111111"is an application ID, a placeholder in the write-up."creative":{"object_story_id":"557660361354544_557660471354533"}is the heart of it.creativegroups the advert content, and inside itobject_story_idholds the story identifier, written in the form<page-or-owner-id>_<story-id>, two numbers joined by an underscore."customplaymode":null,"loadingoverlay":"shimmer","videodata":{}and"borderstyle":"standard"are display settings; the report does not explain them further."format":"DESKTOP_FEED_STANDARD"is the placement, here the Desktop News Feed."projectAccessToken":"your-project-token"carries the project token from the preview URL, and"adaccountid"identifies the ad account."editable":falsesays the preview is not editable."version":"v3.0"is the version field.&..etcat the end is the researcher's shorthand for "and more parameters follow".
Step 7: repeat as the attacker
Repeat steps 1 to 6 with the attacker's own business account, so that the attacker has a valid request of their own to modify.
The only thing that will be changed is the story identifier.
Step 8: swap the identifier
Take the captured GET request and replace the attacker's object_story_id with the victim's object_story_id value, for example "object_story_id":"557660361354544_557660471354533", then forward the request to the server.
Forwarding means letting the edited request continue on its way to Facebook. The server renders the victim's private mockup in the attacker's browser. The report adds that the response also exposes details such as the mockup title, page name, page ID, owner ID, owner name, description text and URL description, which can be read in Burp Suite's response view.

Why it worked
The preview controller takes object_story_id from the client and uses it to fetch and render the story without verifying that the requesting account is allowed to see that story. The request carries the attacker's own projectAccessToken and ad account, and swapping only the story identifier was enough to return the victim's mockup. The pattern is the classic IDOR: a user-controlled object identifier returned without an apparent permission check.
What an attacker could get
An attacker who knows the FBID of a story attached to another user's mockup can view that user's private (draft) mockup, including its title, page name, page ID, owner ID, owner name, description text and URL description.
The fix
Meta fixed the issue: the timeline records the report as triaged on 23 October 2018, fixed on 23 April 2019, and the fix confirmed by the researcher on 24 April 2019, with a bounty awarded on 7 June 2019.
Other places to look
- Other placements in the same preview flow. Switch
formatfromDESKTOP_FEED_STANDARDto the Mobile News Feed value and repeat the swap. A positive result is the victim's mockup rendering in the other placement. - Other identifiers in the same JSON blob. Change
adaccountidorappidwhile keeping the victim'sobject_story_id. A positive result is a response that still returns the victim's story data under a different account context. - The same controller with a different object type. Try identifiers for other creative objects the controller accepts. A positive result is any object the caller does not own being returned.
- Identifier enumeration. Where identifiers are sequential or guessable, test neighbouring values. A positive result is any response containing another user's data rather than an error or empty result.
- Token scope. Reuse a
projectAccessTokenfrom one project against a story from another project. A positive result is cross-project data returned with a token that should not cover it.
Glossary
- API: a doorway on a server that programs talk to, so one piece of software can ask another for data or actions.
- Authorisation: the check that decides whether a logged-in person is allowed to do or see a particular thing.
- Burp Suite: a proxy tool that lets you read, pause and change the traffic between your browser and a website.
- Carousel: an advert format that shows several images side by side, each with its own title and link.
- Client: the program on your side, usually your browser, that sends requests to the server.
- Creative Hub: Facebook's tool for businesses to build ad mockups and browse creative ideas.
- Draft mockup: a mockup saved but not published, meant to be visible only to its owner.
- FBID: Facebook ID, the long number Facebook uses internally to refer to a thing.
- GET request: a request that asks a server to send something back without changing anything on the server.
- IDOR (Insecure Direct Object Reference): a bug where the server takes an object identifier from the user and returns the object without checking that the user is allowed to see it.
- JSON: a way of writing structured information as text, using curly brackets and quotes, so a computer can read it unambiguously.
- Mockup: a pretend version of an advert, used to see how it would look before publishing.
- Pagelet controller: the piece of Facebook's software that builds a part of a page, here the ad preview.
- Parameter: a named value attached to a request or web address, which the server reads to know what you are asking for.
- Placement: where an advert would appear, such as the Desktop News Feed or the Mobile News Feed.
- Proxy: a program that sits between your browser and the internet and lets you read, pause and change the traffic going past.
- Response: what the server sends back after a request.
- Server: the computer on the other side that stores data and answers requests.
- Session: the state of being logged in, which the server remembers between requests.
- Token: a short string of characters that acts like a temporary key, proving to the server that you have already been let in.
- Triaged: the stage where a security team has reviewed a report and accepted it for investigation.