Skip to content
Info disclosure Write-up Intermediate

Disclose the owner of a recruiting manager in Jobs Beta

A GraphQL query on Facebook's Jobs feature allowed retrieving the personal identity of the owner of a recruiting manager's photo, which should have been hidden. An attacker could use this to deanonymise the person behind a job posting.

Philippe Harewood Follow

Published on philippeharewood.com

Facebook has a feature capable of posting jobs on behalf of personas called recruiting managers. It is possible to identify the creator of the persona.

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.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

Facebook Jobs lets a page post job openings on behalf of personas called recruiting managers. A job opening that carries a "LISTED BY" section on the right, under a URL of the form https://www.facebook.com/jobs/nearby/all/all/example, is attributed to one of these personas rather than to a plain page.

The researcher found that the GraphQL endpoint behind the Jobs feature would resolve the recruiting manager of a job opening down to the photo object, and from there to the owner of that photo. The owner turned out to be the personal account behind the persona, so the request disclosed the page owner's personal identity.

The test was a single GraphQL query sent to the GraphQL endpoint, asking for the recruiting manager's photo and the photo's owner:

HTTP
https://graph.facebook.com/graphql?q=node(JOB_OPENING){recruiting_manager{photo{id,owner{name,id}}}}

The response returned the job opening node, the recruiting manager, the photo and the owner, including a name and a numeric user id:

JSON
{
 "JOBOPENINGID": {
   "recruiting_manager": {
       "photo": {
            "id": "PHOTO_ID",
             "owner": {"name": "Some User","id": "4"}
        }
    }
  }
}

The report gives no severity rating and no CVSS score. The timeline it records is:

Date Event
Nov 19, 2019 Report sent
Nov 21, 2019 Confirmation of submission by Facebook
Dec 6, 2019 Confirmation of patch by Facebook
Dec 12, 2019 Bounty awarded by Facebook

The amount of the bounty is not stated.

Root cause

The report does not explain the cause. One possibility is that the photo object attached to the persona keeps a reference to the backing account as its owner.

Impact

The report's own claim is limited: it is possible to identify the creator of a recruiting manager persona, which means the personal identity behind a page that presents itself as a hiring entity. In practice that links a business-facing persona to a personal account, which is a privacy leak rather than a takeover. The report does not describe any way to act on the disclosed identity, only to read it.

How this kind of bug works

Graph-based APIs make it easy to walk from one object to another, and every edge is a chance to forget an authorisation check. A resolver typically checks that the caller may see the object it was asked for, but the nested fields are resolved separately, and each of those resolvers must apply its own rule. When a public object (a job opening, a post, a listing) holds a reference to a private one (a user account, an email address, a phone number), the private object becomes reachable through the public one unless the edge itself is guarded.

The same pattern appears whenever a product creates a proxy identity: a page, a business account, a bot, a recruiting manager. The proxy is meant to be public, but its backing record is not, and the mapping between the two is sensitive. Bugs of this class are usually found by enumerating fields on objects you can already see and checking whether any of them point at something you should not be able to see.

How to test for it

  1. Find a feature that creates a proxy identity or a public object with an owner: business pages, job listings, event hosts, marketplace sellers, support bots.
  2. Capture the request the client makes when it renders that object. GraphQL APIs often accept a query document as a parameter, which makes it easy to edit.
  3. Enumerate the fields of the object and of its nested objects. Ask for identifiers, names, photos, contact details and anything that looks like an owner or creator reference.
  4. Compare what you receive with what the UI shows. A field that returns a real name or a numeric user id where the UI shows only a brand name is a positive result.
  5. Confirm the finding from a second, unrelated account so you can show it is not specific to your own view.

A positive result is a response that resolves a public object to a private identity: a personal name, a user id, an email address or a phone number that the product does not display. Common false positives are fields that return the page's own public name, ids that are already visible in the page source, and values that are placeholders or shared across all personas. Check the rendered page before reporting, because a value that is already public is not a leak.

How it is fixed

Hunting notes

This class of bug tends to hide in newer or secondary products: jobs, marketplace, events, fundraising, business tooling and anything that lets one entity act on behalf of another. Recon signals include GraphQL endpoints that accept a query as a parameter, objects with an owner, creator or admin field, and features where the UI deliberately hides who is behind a page. When you report, show the request, the response and the visible page side by side, and state plainly what the user expected to keep private. A clear privacy impact with a reproducible request is usually enough for a program to accept the report.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Facebook Jobs lets a page publish job openings. Some of those openings are not posted by the page itself but by a persona called a recruiting manager, a kind of stand-in identity that acts for the business. When a job opening has a "LISTED BY" section on the right, under a URL of the form https://www.facebook.com/jobs/nearby/all/all/example, it is attributed to one of these personas rather than to a plain page.

A persona looks like a separate entity, but behind it there is a real person. The researcher found that a GraphQL request about the recruiting manager's photo would also return who owns that photo. The owner turned out to be the personal account behind the persona. So a request that started from a public job opening ended at a private identity: the name and numeric user id of the person who created the recruiting manager.

That is a privacy leak, not a takeover. The report does not describe any way to act on the disclosed identity, only to read it. It gives no severity rating and no CVSS score, and the amount of the bounty is not stated.

The request and the response

The test was a single query sent to the GraphQL endpoint. GraphQL is a way for a client to ask a server for exactly the pieces of data it wants, by naming them in a query document, instead of receiving a fixed page of results. Here the query was passed as a parameter in the URL:

HTTP
https://graph.facebook.com/graphql?q=node(JOB_OPENING){recruiting_manager{photo{id,owner{name,id}}}}

Read it from the outside in:

  1. node(JOB_OPENING) asks for one object, the job opening, identified by its id.
  2. recruiting_manager asks for the persona attached to that opening.
  3. photo asks for the persona's photo.
  4. id asks for the photo's identifier.
  5. owner asks for the account that owns the photo, and name,id asks for that account's name and numeric user id.

Each step is a hop from one object to another. The job opening is public, the persona is meant to be public, but the owner of the photo is the private account behind the persona. The response returned the whole chain:

JSON
{
 "JOBOPENINGID": {
   "recruiting_manager": {
       "photo": {
            "id": "PHOTO_ID",
             "owner": {"name": "Some User","id": "4"}
        }
    }
  }
}

The outer key is the job opening id, then the recruiting manager, then the photo with its id, and finally the owner with a name and a numeric user id. The values shown here are placeholders standing in for the real ones. The point is the shape: a public object resolved all the way down to a personal identity.

Timeline

Date Event
Nov 19, 2019 Report sent
Nov 21, 2019 Confirmation of submission by Facebook
Dec 6, 2019 Confirmation of patch by Facebook
Dec 12, 2019 Bounty awarded by Facebook

In general, why this kind of bug happens

Graph-based APIs make it easy to walk from one object to another, and every link between two objects is a chance to forget an authorisation check. Authorisation means deciding whether the person making the request is allowed to see a given piece of data. A server usually checks that you may see the object you asked for, but the nested fields inside it are fetched separately, and each of those fetches needs its own rule. When a public object holds a reference to a private one, the private object becomes reachable through the public one unless that particular link is guarded.

The same pattern appears whenever a product creates a proxy identity: a page, a business account, a bot, a recruiting manager. The proxy is meant to be public, but the record behind it is not, and the mapping between the two is sensitive. Think of a company mailbox: anyone may write to sales@, but the name of the employee whose desk the mail lands on is not printed on the envelope.

In general, how to test for it

  1. Find a feature that creates a proxy identity or a public object with an owner: business pages, job listings, event hosts, marketplace sellers, support bots.
  2. Capture the request the browser makes when it renders that object. GraphQL APIs often accept the query as a parameter, which makes it easy to edit.
  3. Enumerate the fields of the object and of its nested objects. Ask for identifiers, names, photos, contact details and anything that looks like an owner or creator reference.
  4. Compare what you receive with what the page shows. A field that returns a real name or a numeric user id where the page shows only a brand name is a positive result.
  5. Confirm the finding from a second, unrelated account so you can show it is not specific to your own view.

A positive result resolves a public object to a private identity: a personal name, a user id, an email address or a phone number that the product does not display. Common false positives are fields that return the page's own public name, ids that are already visible in the page source, and values that are placeholders or shared across all personas. Check the rendered page before reporting, because a value that is already public is not a leak.

In general, how it is fixed

The report does not describe the fix; it only records Facebook's confirmation of a patch on Dec 6, 2019.

In general, where to look

This class of bug tends to hide in newer or secondary products: jobs, marketplace, events, fundraising, business tooling and anything that lets one entity act on behalf of another. Signals worth watching are GraphQL endpoints that accept a query as a parameter, objects with an owner, creator or admin field, and features where the interface deliberately hides who is behind a page. When you report, show the request, the response and the visible page side by side, and state plainly what the user expected to keep private. A clear privacy impact with a reproducible request is usually enough for a program to accept the report.

Glossary

  • GraphQL: a way for a client to ask a server for specific fields of data by naming them in a query, rather than receiving a fixed response.
  • Endpoint: the address a request is sent to, here https://graph.facebook.com/graphql.
  • Query: the text that tells a GraphQL server which objects and fields you want.
  • Node / object: a single item in the data, such as a job opening, a photo or a user account.
  • Field: one named piece of data on an object, such as name or id.
  • Nested field: a field reached by walking from one object into another, such as the owner of a photo.
  • Resolver: the server-side code that produces the value for a field when it is requested.
  • Schema: the description of which objects and fields exist and how they connect.
  • Authorisation: the decision about whether the person making a request is allowed to see a given piece of data.
  • Persona / proxy identity: a public-facing identity, such as a recruiting manager, that acts for a real account behind it.
  • Recruiting manager: the persona Facebook Jobs uses to post job openings on behalf of a page.
  • Job opening: a job listing published through Facebook Jobs.
  • User id: the numeric identifier of a Facebook account.
  • Enumeration: trying many field names or values one after another to see which ones the server answers.
  • False positive: a result that looks like a leak but is not, for example a value that is already public.
  • Privacy leak: exposure of information the user expected to keep private, without any ability to change or control the account.
  • CVSS: a standard scoring system for the severity of a security issue; the report gives no score.
  • Bounty: a payment a program makes to a researcher for a valid report.

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.