Skip to content
IDOR Write-up Intermediate

Sign up for Brand Collabs Manager on behalf of other page admins

A page admin could sign up for Brand Collabs Manager on behalf of other page admins by manipulating the page_ids parameter in a GraphQL request, bypassing role restrictions. This allowed users with roles like Advertiser, Moderator, Editor, or Job Manager to apply for the programme without authorisation.

Sarmad Hassan Follow

Published on blog.flawminers.com

Brand Collabs Manager serves as a dynamic marketplace facilitating seamless connections between brands and creators, empowering them to discover, understand, and engage with each other’s potential. Located within Facebook page settings, the application process is typically exclusive to page administrators.

Sarmad Hassan, on blog.flawminers.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Brand Collabs Manager is a marketplace inside Facebook that connects brands and creators so they can discover and work with each other. The application lives in Facebook page settings, and the sign-up flow is meant to be available only to page administrators. From there an admin can apply and register as either a "creator" or an "advertiser". The official documentation is at https://www.facebook.com/business/help/1898176230203655?id=1912903575666924.

The roles that matter here are the non-admin page roles: "Advertiser", "Moderator", "Editor" and "Job Manager". Through the normal Facebook web interface these roles cannot apply for or sign up to Collabs Manager. The finding is that the request behind the sign-up option does not enforce that restriction, so a user holding one of those roles can complete the sign-up for a page they do not administer.

Setup

The flow involves two accounts:

  1. An attacker account, which holds a non-admin role (Advertiser, Moderator, Editor or Job Manager) on the target page.
  2. A victim account, which is the admin of that same page.

Burp Suite was used to intercept and modify the sign-up request.

Finding it

The starting observation is a role restriction in the web interface: when a user with Advertiser, Moderator, Editor or Job Manager role opens the Collabs Manager sign-up, the interface does not let them apply. The sign-up form itself is submitted as a POST to the GraphQL endpoint, and the page being signed up is identified by a page_ids parameter inside the request body. Because that identifier is supplied by the client and the server acts on it, the researcher treated it as an Insecure Direct Object Reference: changing the value to a page where the attacker holds only a restricted role should not be accepted, but it is.

Exploitation

Step 1: open the sign-up page

From the attacker account, navigate to:

Text
https://www.facebook.com/collabsmanager/signup/brand/

Step 2: prepare and intercept the request

Select a page for which you are an admin, enter your email, tick the "I accept the Terms of Service" box, and intercept the request with Burp Suite before submitting the form.

Step 3: inspect the POST request

On submission the request looks like this:

HTTP
POST /api/graphql/ HTTP/1.1
Host: www.facebook.com

av=100015771374000&__user=100015771374000&__a=1&... (other parameters) ... &variables={"data":{"client_mutation_id":"xxx-xxx-xxx-xxx-xxx","email":"[redacted]","entry_source":null,"page_ids":["149646615725890"]}}&doc_id=2604093872934600.

The page identifier is carried in the variables field of the GraphQL request, in the page_ids array. The vulnerable part is:

Text
page_ids":["149646615725890"]}}

Step 4: swap the page identifier

Change the page_ids value to the page_id of a page where the attacker holds a role with "Advertiser", "Moderator", "Editor" or "Job Manager", then forward the altered request to the server.

Step 5: confirm from the victim side

From the victim account (the admin of the page), visit:

Text
https://www.facebook.com/collabsmanager/signup/brand/

Under "Currently being reviewed for eligibility" the page appears, even though the admin never interacted with the flow. That confirms the non-admin role successfully signed the page up for Collabs Manager.

From the original on blog.flawminers.com

Root cause

The sign-up mutation trusts the page_ids value supplied by the client and does not check that the caller holds the admin role required for Collabs Manager sign-up on that page. The web interface hides the option from non-admin roles, but the restriction exists only in the interface; the GraphQL endpoint behind it accepts the request from any user who can reach it.

Impact

A user with an Advertiser, Moderator, Editor or Job Manager role on a page can sign that page up for Brand Collabs Manager without the admin's involvement. The page then shows as being reviewed for eligibility, and the admin only finds out by looking.

Fix

Meta fixed the issue: the report was triaged on 16 October 2019, marked fixed on 23 October 2019, and the fix was confirmed by the researcher the same day.

  1. On other GraphQL mutations that take a page or object identifier, replace the identifier with one where the account holds only a restricted role. A positive result is the mutation succeeding and the change being visible to the owner of the object.
  2. Look for other features whose UI is hidden from non-admin page roles but whose backing request is reachable. A positive result is the request completing and the effect appearing in the page settings.
  3. Test whether the page_ids array accepts more than one identifier, or an identifier for a page the account has no role on. A positive result is the server accepting the value and acting on the page.
  4. Check whether the same sign-up flow can be driven for the "creator" path as well as the "brand" path. A positive result is the same bypass on the other entry point.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Facebook has a feature called Brand Collabs Manager. It is a marketplace inside Facebook where brands and creators can find each other and work together. You reach it from a Facebook page's settings, and the sign-up form is supposed to be open only to people who are administrators of that page. An administrator can register the page as either a "creator" or an "advertiser".

A Facebook page can have several people helping to run it, each with a different role. Besides the admin, there are roles called "Advertiser", "Moderator", "Editor" and "Job Manager". These people can do some things on the page, but they are not in charge of it. In the normal Facebook website, these non-admin roles are not allowed to sign the page up for Brand Collabs Manager.

Sarmad Hassan found that the restriction only exists on the surface. When you fill in the sign-up form, your browser sends a request to Facebook's servers. That request contains the identifier of the page being signed up. The server accepts the identifier supplied in the request, so a person with only a limited role can change it to a page they help with but do not administer and sign that page up anyway. So a person with only a limited role can change the identifier to a page they help with but do not administer, send the request, and sign that page up anyway. The page is added without any action by the admin.

This kind of bug is called an Insecure Direct Object Reference, or IDOR: the server lets you name an object (here, a page) directly in the request, and it does not check that you are allowed to act on that object. The result here is privilege escalation: someone with fewer rights gets an action done that should require more rights.

Background: the product and the roles

Brand Collabs Manager is a marketplace inside Facebook that connects brands and creators so they can discover and work with each other. The application lives in Facebook page settings, and the sign-up flow is meant to be available only to page administrators. From there an admin can apply and register as either a "creator" or an "advertiser". The official documentation is at https://www.facebook.com/business/help/1898176230203655?id=1912903575666924.

The roles that matter here are the non-admin page roles: "Advertiser", "Moderator", "Editor" and "Job Manager". Through the normal Facebook web interface these roles cannot apply for or sign up to Collabs Manager. The finding is that the request behind the sign-up option does not enforce that restriction, so a user holding one of those roles can complete the sign-up for a page they do not administer.

A useful comparison: think of a shared office. The admin holds the master key. The other roles have keys to some rooms but not the room where the contracts are signed. The website is like a receptionist who refuses to hand those people the contract form. The bug is that the door to the room was never actually locked: if you know the room number, you can walk in.

Setting up the test

The researcher used two accounts:

  1. An attacker account, which holds a non-admin role (Advertiser, Moderator, Editor or Job Manager) on the target page.
  2. A victim account, which is the admin of that same page.

Two accounts are needed because the whole point is to show that one person (the limited-role user) can cause a change that the other person (the admin) did not make. The attacker account is the one doing the manipulation; the victim account is used at the end to look at the page and see the result.

Burp Suite was used to intercept and modify the sign-up request. Burp Suite is a tool that sits between your browser and the website. When your browser is about to send a request, Burp can pause it, show you the exact text of the request, let you edit it, and then send it on. Without such a tool you only see the web page; with it you see the raw conversation between browser and server.

Finding it

The starting observation is a role restriction in the web interface: when a user with Advertiser, Moderator, Editor or Job Manager role opens the Collabs Manager sign-up, the interface does not let them apply. The sign-up form itself is submitted as a POST to the GraphQL endpoint, and the page being signed up is identified by a page_ids parameter inside the request body. Because that identifier is supplied by the client and the server acts on it, the researcher treated it as an Insecure Direct Object Reference: changing the value to a page where the attacker holds only a restricted role should not be accepted, but it is.

Two terms in that paragraph deserve a plain explanation.

An API is the part of a website that the page talks to behind the scenes. When you click a button, your browser does not usually send a whole new page request; it sends a small message to an API, and the API answers with data. Think of a restaurant: the menu and the waiter are the interface, the kitchen is the API. You do not walk into the kitchen yourself; you give an order and the kitchen acts on it. Here the kitchen is at /api/graphql/.

GraphQL is a style of API where the browser sends one request containing a description of what it wants, written in a JSON-like structure. JSON is just a text format for structured data, made of names and values in curly braces. A POST request is the kind of request used to send data to a server, as opposed to a GET request, which is normally used just to ask for a page.

Exploitation

Step 1: open the sign-up page

From the attacker account, navigate to:

Text
https://www.facebook.com/collabsmanager/signup/brand/

This is the normal public address of the sign-up form for the "brand" path. The attacker opens it like any ordinary user would. You cannot easily write the request from scratch; it is much easier to let Facebook's own page build it and then change one value.

Step 2: prepare and intercept the request

Select a page for which you are an admin, enter your email, tick the "I accept the Terms of Service" box, and intercept the request with Burp Suite before submitting the form.

That produces a valid, well-formed request.

Step 3: inspect the POST request

On submission the request looks like this:

HTTP
POST /api/graphql/ HTTP/1.1
Host: www.facebook.com

av=100015771374000&__user=100015771374000&__a=1&... (other parameters) ... &variables={"data":{"client_mutation_id":"xxx-xxx-xxx-xxx-xxx","email":"[redacted]","entry_source":null,"page_ids":["149646615725890"]}}&doc_id=2604093872934600.

Line by line:

  • POST /api/graphql/ HTTP/1.1 says this is a POST request sent to the path /api/graphql/ on the server, using version 1.1 of the HTTP protocol, the language browsers and servers use to talk.
  • Host: www.facebook.com names the website the request is addressed to. One server can host many sites, so the request states which one it means.
  • The blank line separates the headers (the labels at the top) from the body (the data being sent).
  • The body is one long line of name=value pairs joined by &. Each pair is a field of the request.
  • av=100015771374000 and __user=100015771374000 are identifiers Facebook's own pages include. The report does not explain what they mean beyond being part of the request.
  • __a=1 is another parameter sent by the page.
  • ... (other parameters) ... stands for the rest of the fields, which the report does not list.
  • variables={...} is the important field. It holds a JSON object describing what the browser wants the API to do.
  • Inside it, client_mutation_id is an identifier the browser generates for this particular action. A mutation, in GraphQL, is a request that changes something on the server, as opposed to a query, which only reads.
  • email is the address typed into the form.
  • entry_source is set to null, meaning no value.
  • page_ids is a list (the square brackets) of page identifiers. Here it contains one value, 149646615725890, the page the attacker selected in the form.
  • doc_id=2604093872934600 tells the server which stored GraphQL operation this request corresponds to.

The page identifier is carried in the variables field of the GraphQL request, in the page_ids array. The vulnerable part is:

Text
page_ids":["149646615725890"]}}

This fragment is the exact piece of text to look for in the paused request. It is the page number, written as a string inside a list, followed by the closing braces of the surrounding JSON. The server reads this number to decide which page to sign up.

Step 4: swap the page identifier

Change the page_ids value to the page_id of a page where the attacker holds a role with "Advertiser", "Moderator", "Editor" or "Job Manager", then forward the altered request to the server.

This is the heart of the attack. The attacker leaves everything else as it was and replaces only the number. The request still looks like a perfectly normal sign-up request, except that it now names a page the attacker does not administer. Forwarding means letting Burp send the edited request on to Facebook.

Step 5: confirm from the victim side

From the victim account (the admin of the page), visit:

Text
https://www.facebook.com/collabsmanager/signup/brand/

Under "Currently being reviewed for eligibility" the page appears, even though the admin never interacted with the flow. That confirms the non-admin role successfully signed the page up for Collabs Manager.

This last step matters because it proves the change really happened on the server, not just in the attacker's browser. The admin account is a neutral witness: it did nothing, yet its page is now in the review queue. "Currently being reviewed for eligibility" is the status Facebook shows while it checks whether a page qualifies for the programme.

From the original on blog.flawminers.com

Root cause

The sign-up mutation trusts the page_ids value supplied by the client and does not check that the caller holds the admin role required for Collabs Manager sign-up on that page. The web interface hides the option from non-admin roles, but the restriction exists only in the interface; the GraphQL endpoint behind it accepts the request from any user who can reach it.

In everyday terms: the receptionist was told to turn away non-admins, but the back door was open to anyone who worked in the building. Hiding a button is not a security control. The check has to happen on the server, on every request, because the browser belongs to the user and the user can change anything the browser sends.

Impact

A user with an Advertiser, Moderator, Editor or Job Manager role on a page can sign that page up for Brand Collabs Manager without the admin's involvement. The page then shows as being reviewed for eligibility, and the admin only finds out by looking.

It is a way for a lower-ranked member of a page's team to make a decision that belongs to the owner. Still, it is an unauthorised action taken in the owner's name, and it can put the page into a business programme the owner never chose.

Fix

Meta fixed the issue: the report was triaged on 16 October 2019, marked fixed on 23 October 2019, and the fix was confirmed by the researcher the same day.

Triaged means the security team reviewed the report and accepted it as a real issue. The timeline in the report runs from the initial report on 30 September 2019, through internal checking on 3 October, triage on 16 October, the fix on 23 October, the researcher's confirmation the same day, and a bounty awarded on 25 October.

If you want to look for similar bugs yourself, these are the directions the researcher suggests. Each one follows the same idea: find a place where the browser names an object, and check whether the server verifies that you are allowed to act on that object.

  1. On other GraphQL mutations that take a page or object identifier, replace the identifier with one where the account holds only a restricted role. A positive result is the mutation succeeding and the change being visible to the owner of the object.
  2. Look for other features whose UI is hidden from non-admin page roles but whose backing request is reachable. A positive result is the request completing and the effect appearing in the page settings.
  3. Test whether the page_ids array accepts more than one identifier, or an identifier for a page the account has no role on. A positive result is the server accepting the value and acting on the page.
  4. Check whether the same sign-up flow can be driven for the "creator" path as well as the "brand" path. A positive result is the same bypass on the other entry point.

Glossary

  • API: the part of a website that the page talks to behind the scenes, receiving small messages and answering with data.
  • Brand Collabs Manager: a Facebook marketplace where brands and creators can find and work with each other.
  • Burp Suite: a tool that sits between browser and server, letting you pause, read and edit requests before they are sent.
  • Client: the program on the user's side, normally the browser, which builds and sends requests.
  • Creator / advertiser: the two ways a page can register in Brand Collabs Manager, as a content creator or as an advertiser.
  • GraphQL: a style of API where the request contains a structured description of the operation and its data.
  • Header: the labelled lines at the top of an HTTP request, such as Host.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • IDOR (Insecure Direct Object Reference): a bug where the server lets you name an object directly in a request and does not check that you are allowed to act on it.
  • JSON: a text format for structured data, made of names and values inside curly braces and square brackets.
  • Mutation: in GraphQL, a request that changes something on the server, as opposed to a query that only reads.
  • Page role: the level of access a person has on a Facebook page, such as admin, Advertiser, Moderator, Editor or Job Manager.
  • Parameter: a named value in a request, written as name=value.
  • POST request: the kind of HTTP request used to send data to a server.
  • Privilege escalation: getting an action done that should require more rights than you have.
  • Request body: the data part of a request, below the headers.
  • Server: the computer that receives requests and decides what to do with them.
  • Triaged: reviewed by a security team and accepted as a real issue.
  • UI (user interface): what you see and click on the website.

More by Sarmad Hassan

View all

17 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.