-
Notifications
You must be signed in to change notification settings - Fork 110
Labels
PRPPatch Reward Program: This label is added to all PRP related issues for easy filteringPatch Reward Program: This label is added to all PRP related issues for easy filteringPRP:RequestPatch Reward Program: This issue is a PRP contribution request and is being reviewed by the panel.Patch Reward Program: This issue is a PRP contribution request and is being reviewed by the panel.
Description
- Secret name: Salesforce OAuth Access Token and Refresh Token
- Risk in exposing the secret:
- Access token leaks allow attackers to immediately call Salesforce APIs (
Authorization: Bearer <token>) as the victim. - Refresh token leaks are more severe, since they can be exchanged indefinitely for new access tokens, providing persistent unauthorized access.
- Validation method:
- Send POST to
https://login.salesforce.com/services/oauth2/tokenwithgrant_type=refresh_tokenand the leaked refresh token. - If valid, a new access token is issued.
- Regex:
3MVG[0-9A-Za-z]{80,}→ Salesforce OAuth Client ID[A-Za-z0-9._-]{20,60}near keywordsclient_secret→ Client Secret00D[0-9A-Za-z]{8,}→ Salesforce Org ID prefix (often embedded in tokens)00D[0-9A-Za-z]{8,}![A-Za-z0-9._-]{60,}→ Common access token format[A-Za-z0-9._-]{100,}nearrefresh_token→ Refresh token
- Resources:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PRPPatch Reward Program: This label is added to all PRP related issues for easy filteringPatch Reward Program: This label is added to all PRP related issues for easy filteringPRP:RequestPatch Reward Program: This issue is a PRP contribution request and is being reviewed by the panel.Patch Reward Program: This issue is a PRP contribution request and is being reviewed by the panel.