Facebook App Keys

ID

facebook_app_keys

Severity

low

Vendor

Facebook

Family

API Token

Description

Facebook is an online social media and social networking service.

Facebook access tokens are strings used for identification and are of three types: either to identify a user, an application, or Page. Application access tokens are used to modify and read app settings.

Security

Any hardcoded Facebook Application Key is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise your Facebook account.

Suspicious activity could be detected by using the AppEventLogger.

Examples

facebook_appId=e7hbdhe9qra85wt
facebook_appSecret=9xcpyuceyvvqfjc4ej5fsd99nyjnvev3

Mitigation / Fix

  1. Remove the Keys from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s).

  3. If under a git repository, you may remove unwanted files from the repository history using tools like git filter-repo or BFG Repo-Cleaner. You may follow the procedure listed here for GitHub.

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.