Skip to content
Info disclosure Write-up Beginner

Facebook-Ad-Spend-Details-Leaking-For-Facebook-Marketing

An unauthenticated endpoint on Facebook returned a list of marketing partners along with their clients' business and ad account IDs and ad spend details. An attacker could obtain confidential advertising spend information for multiple clients.

Philippe Harewood Follow

Published on philippeharewood.com

Facebook Marketing partners are companies that have relationships with Facebook to offer marketing services to large clients. There was a call on Facebook that leaked the ad spend for some of the clients.

Philippe, on philippeharewood.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

Facebook Marketing partners are companies that maintain relationships with Facebook in order to offer marketing services to large clients. The partner directory lives at facebookmarketingpartners.com. Behind that public-facing directory sits an internal Facebook endpoint that serves data about those partners and the clients they run advertising for.

The report concerns a call on Facebook that returned, for each marketing partner, the associated business IDs and ad account IDs, together with the clients attached to that partner and the money spent on ads for each client. It also included a breakdown of which country the partner spent the most on ads in. In other words, the endpoint exposed commercial ad spend figures that belong to the partner's clients.

Setup

The report does not describe any account, role, tool or version needed to reach the endpoint. It presents the request as a single call to a Facebook path, with no mention of session cookies, tokens or special headers. Treat the preconditions as unstated: the report gives only the request line and the shape of the response.

Finding it

There was a call on Facebook that leaked the ad spend for some of the clients. The interesting part was not a single record but the structure of the response: a list of marketing partners, each with business IDs, ad account IDs, its clients, the money spent on ads per client, and a country breakdown of where the partner spent most.

That combination is what made it look wrong. Ad spend per client and per country is commercially sensitive data belonging to the clients, not something that should be reachable from a partner listing call.

Exploitation

Step 1: Call the partner listing endpoint

The proof of concept is a single request:

HTTP
HTTP POST /columbus/async/msp_list/

The path /columbus/async/msp_list/ is the endpoint under test, and the method used is POST. The report shows no body, parameters or headers for this request.

Step 2: Read the response

The response was a list of marketing partners and the associated business IDs and ad account IDs. Each partner had a listing of the clients and the money spent on ads related to each client. There was also a breakdown on which country the partner spent on ads the most.

So a single call yields, per partner: business IDs, ad account IDs, the client list, per-client ad spend, and the top spending country. The report does not reproduce the raw response body.

Root cause

The report does not state the underlying code or design mistake. What it establishes is that an endpoint on Facebook returned partner, business, ad account, client and spend data, and that Facebook treated this as information leakage on one of its endpoints. Why the endpoint was reachable, and which check was missing, is not described.

Impact

Information leakage was identified on one of Facebook's endpoints, which Facebook addressed. The leaked data covers the clients of Facebook Marketing partners: their business IDs, ad account IDs, the money spent on ads per client, and the country where the partner spent the most. The report hedges the scope: it leaked the ad spend for some of the clients, not necessarily all of them.

Fix

Facebook mitigated and then fixed the issue. The timeline in the report:

Time Event
Dec 26, 2017 9:57 AM Report sent
Dec 26, 2017 12:49 PM Further investigation by Facebook
Dec 26, 2017 2:22 PM Mitigation by Facebook
Dec 27, 2017 3:43 AM Fixed by Facebook
Jan 26, 2018 6:03 PM Bounty awarded by Facebook
Jan 26, 2018 6:33 PM Confirm deletion of data by Facebook
Jan 26, 2018 6:44 PM Deleted data

It records only that mitigation happened on the day of the report, the fix landed the following day, and the data held by the researcher was deleted after confirmation.

Variants to test

These are things to try on other targets, derived from the shape of this finding. A positive result in each case is data that should not be visible to the caller.

  1. Look for partner or reseller listing endpoints, for example paths containing partner, msp, reseller or list, and call them with the method the front end uses. A positive result is a list of partners with identifiers for their downstream clients.
  2. Check whether the response includes commercial figures alongside identifiers: spend, budget, impressions or revenue per client. A positive result is per-client monetary values returned to a caller who is not that client.
  3. Check for geographic breakdowns in the same response, such as spend per country. A positive result is a per-country split of a partner's or client's activity.
  4. Compare the response for an unauthenticated caller with the response for an authenticated one. A positive result is the same partner and spend data returned without a session.
  5. Try the same endpoint with different identifiers in the body or query string to see whether the partner scope can be changed. A positive result is data for a partner other than the one the caller is associated with.
  6. Look at asynchronous endpoints (paths containing async) that back internal dashboards, since these often return richer objects than the page that calls them. A positive result is a JSON list containing identifiers and figures not rendered in the UI.

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. 9 min read.

What happened, in plain words

Facebook works with a set of companies called Facebook Marketing partners. These are businesses that have an official relationship with Facebook so they can run advertising campaigns on behalf of large clients. The public directory of these partners is a website at facebookmarketingpartners.com.

Behind that public directory, on Facebook itself, there was a web address (an endpoint) that answered questions about those partners. When the researcher called it, it handed back a lot of detail: which partners exist, the business IDs and ad account IDs tied to each partner, the list of clients each partner runs ads for, how much money was spent on ads for each of those clients, and which country the partner spent the most ad money in.

That last part is the problem. How much a company spends on advertising, and where, is private commercial information. It belongs to the client paying for the ads, not to whoever happens to call a Facebook web address. The researcher found that this one call returned it, and reported it. Facebook investigated, mitigated it, fixed it, paid a bounty, and confirmed the researcher's copy of the data had been deleted.

Background you need first

A few ideas come up throughout this write-up. Here they are from zero.

Endpoint. A web address on a server that does a particular job when you contact it. When you type a normal page address into your browser, you get a page back. An endpoint is the same idea, but it is usually meant to be contacted by software rather than by a person clicking around, and it returns data rather than a designed page. Think of a restaurant: the dining room is the website you see, and the kitchen door is the endpoint where orders actually get made.

HTTP request and method. When your browser (or any program) talks to a server, it sends a request. Every request has a method, which is a verb saying what kind of action you want. GET means "give me this". POST means "here is some information, now do something with it". The request also has a path, which is the part of the address after the domain name, such as /columbus/async/msp_list/.

API. An API (application programming interface) is a set of endpoints a service offers so that other software can ask it questions and get structured answers back. It is like a service counter at a shop: you do not walk into the stockroom yourself, you ask at the counter and someone brings you what you asked for. The endpoint in this report is part of an API.

Authentication and authorisation. Authentication is proving who you are, like showing your passport at a border. Authorisation is what you are then allowed to do, like a visa that only lets you visit certain regions. A system can authenticate you correctly and still fail at authorisation if it lets you see things that are not yours.

Information leakage. This is the name for a bug where data that should stay private is handed out to someone who should not have it. Nothing gets changed or deleted; the harm is simply that the wrong person can read the wrong information. It is like a bank teller reading out another customer's balance because they did not check whose account was asked about.

Marketing partner. A company that has an official relationship with Facebook and runs advertising on behalf of large clients. The client pays the partner, the partner spends money on Facebook ads, and the amounts involved are commercially sensitive.

Business ID and ad account ID. Identifiers: long strings of characters that a platform uses to refer to a business or to an advertising account. They are not secret in the way a password is, but they are the handles you need to refer to someone's account, so they are not something to hand out freely either.

Ad spend. The amount of money spent on advertising. For a large client this can be a closely guarded number, because it reveals the size of their marketing budget and their strategy.

Asynchronous endpoint. A path containing async usually means the server does work in the background and returns a chunk of data rather than a finished page. These endpoints often back an internal dashboard, and because the dashboard is not the thing being protected, they can return richer data than the page that calls them.

The setup

The report does not describe any account, role, tool or version needed to reach the endpoint. It presents the request as a single call to a Facebook path, with no mention of session cookies, tokens or special headers. A cookie is a small piece of data your browser stores for a site so the site can recognise you on the next request; a token is a similar credential used by software. The report does not say whether either was involved here, so treat the preconditions as unstated: what we have is the request line and the shape of the response.

Finding it

There was a call on Facebook that leaked the ad spend for some of the clients. The interesting part was not a single record but the structure of the response: a list of marketing partners, each with business IDs, ad account IDs, its clients, the money spent on ads per client, and a country breakdown of where the partner spent most.

That combination is what made it look wrong. Ad spend per client and per country is commercially sensitive data belonging to the clients, not something that should be reachable from a partner listing call.

Exploitation

Step 1: Call the partner listing endpoint

The proof of concept is a single request:

HTTP
HTTP POST /columbus/async/msp_list/

Line by line:

  • HTTP POST says which method is being used. POST means the caller is sending something to the server and asking it to act, rather than just asking for a page.
  • /columbus/async/msp_list/ is the path of the endpoint.

The report shows no body, parameters or headers for this request. The report shows only this request line and the shape of the response.

Step 2: Read the response

The response was a list of marketing partners and the associated business IDs and ad account IDs. Each partner had a listing of the clients and the money spent on ads related to each client. There was also a breakdown on which country the partner spent on ads the most.

So a single call yields, per partner: business IDs, ad account IDs, the client list, per-client ad spend, and the top spending country. The report does not reproduce the raw response body. Reading the response is the whole point of the step: the request alone proves nothing, and it is the contents coming back that show the data is exposed.

Root cause

What it establishes is that an endpoint on Facebook returned partner, business, ad account, client and spend data, and that Facebook treated this as information leakage on one of its endpoints. Why the endpoint was reachable, and which check was missing, is not described.

Impact

Information leakage was identified on one of Facebook's endpoints, which Facebook addressed. The leaked data covers the clients of Facebook Marketing partners: their business IDs, ad account IDs, the money spent on ads per client, and the country where the partner spent the most. The report hedges the scope: it leaked the ad spend for some of the clients, not necessarily all of them.

Fix

Facebook mitigated and then fixed the issue. The timeline in the report:

Time Event
Dec 26, 2017 9:57 AM Report sent
Dec 26, 2017 12:49 PM Further investigation by Facebook
Dec 26, 2017 2:22 PM Mitigation by Facebook
Dec 27, 2017 3:43 AM Fixed by Facebook
Jan 26, 2018 6:03 PM Bounty awarded by Facebook
Jan 26, 2018 6:33 PM Confirm deletion of data by Facebook
Jan 26, 2018 6:44 PM Deleted data

It records only that mitigation happened on the day of the report, the fix landed the following day, and the data held by the researcher was deleted after confirmation. "Mitigation" means a temporary measure to stop the leak, while "fixed" means the underlying problem was corrected.

Variants to test

These are things to try on other targets, derived from the shape of this finding. A positive result in each case is data that should not be visible to the caller.

  1. Look for partner or reseller listing endpoints, for example paths containing partner, msp, reseller or list, and call them with the method the front end uses. A positive result is a list of partners with identifiers for their downstream clients.
  2. Check whether the response includes commercial figures alongside identifiers: spend, budget, impressions or revenue per client. A positive result is per-client monetary values returned to a caller who is not that client.
  3. Check for geographic breakdowns in the same response, such as spend per country. A positive result is a per-country split of a partner's or client's activity.
  4. Compare the response for an unauthenticated caller with the response for an authenticated one. A positive result is the same partner and spend data returned without a session.
  5. Try the same endpoint with different identifiers in the body or query string to see whether the partner scope can be changed. A positive result is data for a partner other than the one the caller is associated with.
  6. Look at asynchronous endpoints (paths containing async) that back internal dashboards, since these often return richer objects than the page that calls them. A positive result is a JSON list containing identifiers and figures not rendered in the UI.

Glossary

  • API: a set of endpoints a service offers so other software can ask it questions and get structured answers back.
  • Ad account ID: an identifier the platform uses to refer to an advertising account.
  • Asynchronous endpoint: an endpoint, often with async in its path, that returns data for a dashboard rather than a finished page.
  • Authentication: proving who you are to a system.
  • Authorisation: what a system then allows you to do or see.
  • Bounty: a payment a company makes to a researcher who reports a valid security bug.
  • Business ID: an identifier the platform uses to refer to a business.
  • Cookie: a small piece of data a browser stores for a site so the site can recognise you on later requests.
  • Endpoint: a web address on a server that performs a particular job when contacted, usually by software rather than a person.
  • HTTP method: the verb in a request, such as GET (give me this) or POST (here is information, act on it).
  • Information leakage: a bug where private data is handed to someone who should not have it, without anything being changed.
  • Marketing partner: a company with an official relationship with Facebook that runs advertising for large clients.
  • Mitigation: a temporary measure to stop a problem while the real fix is prepared.
  • Path: the part of a web address after the domain name, such as /columbus/async/msp_list/.
  • Request: the message a browser or program sends to a server asking it to do something.
  • Response: the message the server sends back.
  • Token: a credential used by software to prove identity, similar in purpose to a cookie.
  • Unauthenticated: without proving who you are.

More by Philippe Harewood

View all

56 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.