Salesforce Refresh Tokens

ID

salesforce_refresh_tokens

Severity

low

Vendor

Salesforce

Family

API Token

Description

Salesforce provides customer relationship management software and applications focused on sales, customer service, marketing automation, analytics, and application development.

A token is given when a user authorizes an app. It expires after some time and can be renewed with the refresh token

Security

Any hardcoded Salesforce Token is a potential secret reported by this detector.

Accidentally checking-in the token to source control repositories could compromise your Salesforce account.

Examples

refresh_token=5Aep861..YqU35WQ9nH93THcawtyR2kSfJHPpLyWu6d5NUr2RxaGMJuWn5zEEKpLxG3NU.JJ8pgW8h3tTQ3gnrr

Mitigation / Fix

  1. Remove the Token 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). Credentials revocation can be achieved from your Dashboard.

  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.