Skip to content
Info disclosure Write-up Intermediate

Disclose contact_email of any Facebook application

The contact_email field of any Facebook application was meant to be private, but the Graph API protected it while a GraphQL query returned it. An attacker could read the contact email address of any Facebook application.

Amol Baikar Follow

Published on amolbaikar.com

In Facebook developer application dashboard there is field “contactemail” which means to be secret and use to communication between app admin/developer and Facebook.

Amol Baikar (@AmolBaikar), on amolbaikar.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.

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

Root cause

Likely the GraphQL endpoint applied different field-level authorisation than the REST Graph API, so a field hidden in one interface was exposed in the other.

Impact

A malicious user could access the contact_email of any application using GraphQL.

What the attacker needed

Knowledge of a target app's numeric identifier; ability to send requests to graph.facebook.com

The fix

The issue was fixed according to the report's timeline.

How it was found

  1. Send a POST request to the GraphQL endpoint on graph.facebook.com.
  2. Query the nodes field for an application identifier, asking for name and contact_email.
  3. Read the contact_email value returned in the response.

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 apps have a private contact email used for communication with Facebook. The normal way of asking Facebook's servers for app data hid this email, but a different way of asking, called GraphQL, did not. That meant anyone who knew an app's numeric identifier could ask for its private email and get it back.

What is Info disclosure?

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

More by Amol Baikar

View all

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