Okta OAuth 2.0 Client Credentials with Host detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_SECRET_361
Category
Secrets
Severity
LOW
Framework
Git
Impact
The Okta OAuth 2.0 Client Credential is the "password" for a specific application in your SSO flow.
Exposure is a Critical Risk allowing an attacker to mint valid access tokens for that application, bypassing user authentication to access downstream APIs.
How to Fix
To remediate exposed Auth tokens or Signing Keys:
Log in to your Identity Provider or OAuth provider settings.
Rotate the compromised Client Secret, Private Key, or Signing Certificate.
Update your application configuration with the new credentials.
Redeploy your application to ensure the new keys are in effect.
Next, remove the secret from your codebase:
Locate the exposed secret in your codebase.
Replace the hardcoded value with a secure variable or reference.
Finally, clean your version control history:
Permanently remove the sensitive data from your version control history to ensure it cannot be retrieved.
Warning: Rotating signing keys or client secrets will likely invalidate active user sessions or tokens. Be prepared for users to be logged out.
Last updated
Was this helpful?
