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#
Sensitive credentials, such as API keys or secrets, have been found directly in the source code. Storing credentials in code makes them easily accessible to anyone with code access, including attackers.
Impact#
If these hard-coded secrets are leaked (e.g., through a public repository), attackers could gain unauthorized access to services or data, potentially leading to data breaches, service abuse, or financial loss for the organization.