reCAPTCHA Key
ID |
recaptcha_google |
Severity |
high |
Vendor |
reCAPTCHA |
Family |
API Token |
Description
reCAPTCHA key is used to verify that the request sent to a website is not done by a bot.
Security
Any hardcoded reCAPTCHA Key is a potential secret reported by this detector.
Accidentally checking-in the keys to source control repositories could compromise your reCAPTCHA account.
Alerts can be automatically triggered by Google if they find suspicious activity.
Mitigation / Fix
-
Remove the
Key
from the source code or committed configuration file. -
Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). API Key revocation can be handled from Google developers console.
-
If under a git repository, you may remove unwanted files from the repository history using tools like
git filter-repo
orBFG 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. |