Use of Hard-coded Credentials
| Property | |
|---|---|
| Language | regex |
| Severity | |
| CWE | CWE-798: Use of Hard-coded Credentials |
| OWASP | A07:2021 - Identification and Authentication Failures |
| Confidence Level | Low |
| Impact Level | Medium |
| Likelihood Level | Low |
Description#
A Twitter API bearer token was found hard-coded in the source code. Storing sensitive credentials directly in code makes them easy to accidentally expose and should be avoided.
Impact#
If an attacker obtains this token, they could gain unauthorized access to your Twitter account or API, potentially resulting in data leaks, account abuse, or reputational damage. Hard-coded secrets are a common target for attackers scanning public or leaked code repositories.