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.
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.
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
- Send a POST request to the GraphQL endpoint on graph.facebook.com.
- Query the nodes field for an application identifier, asking for name and contact_email.
- 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.