OAuth Client Credential Classification
Classify application credentials separately from user tokens, since a client secret acts as the application itself and its rotation path runs through every grant it holds
Use when: a candidate resembles an application client identifier or its secret
Avoid when: the corpus contains no application credentials of any kind
Procedure
- Separate the client identifier, which is often public, from the client secret, which never is.
- Record which identity provider is in use and which flow the credential belongs to, from configuration context.
- Check for redirect URIs configured alongside, since a permissive redirect list compounds the finding.
- Note whether the credential appears in a tracked file, an artifact or history.
- List the rotation path: provider console, application configuration, every environment and any stored grant.
- Classify the secret as secret and the identifier as internal, and report them as two related entries.
Signals
- A client secret sits in a tracked configuration file
- A redirect URI list includes a wildcard or a broad pattern
- The client identifier is reported with the same rank as the secret
- Rotation requires a provider console step nobody has access to
Patterns
1. Pair record
idp: major provider | flow: authorization code | client id: public, tracked (expected) | client secret: present, tracked (finding) | redirect list: 1 exact URI
2. Two entries
identifier -> internal entry; secret -> secret entry; both cross-referenced so a reader sees them together
3. Rotation path
steps: provider console, app config, environments, stored grants; each step has an owner or is marked blocked
Pitfalls
- Reporting the client identifier as a credential, which is wrong and wastes reviewer time
- Fixing the file while the provider-side secret remains unchanged
- Overlooking a permissive redirect URI that makes the credential easier to exercise
Done when
- Client identifier and secret are reported as separate cross-referenced entries
- The rotation path is listed with an owner or an explicit blocker per step