LS-TWITTER-001: Twitter Bearer Token¶
| Severity | HIGH |
| Blast radius | API usage abuse |
| Rotate at | https://developer.twitter.com/en/portal/dashboard |
If this leaks¶
Allows making API calls against the X (Twitter) API on behalf of the app, which can be used for spam, scraping, or rate-limit exhaustion.
What to do¶
- Rotate or revoke the credential at https://developer.twitter.com/en/portal/dashboard.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
AAAAAAAAAAAAAAAAAAAAA[A-Za-z0-9%]{40,}
Suppress¶
On one line: # leakscan:ignore LS-TWITTER-001. For the whole project:
disable_rules: [LS-TWITTER-001]