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#
Hard-coded API tokens have been found in the source code. Storing credentials directly in code makes them easy to accidentally expose, especially if the code is shared or published.
Impact#
If attackers gain access to these tokens, they could use them to access sensitive APIs or services, potentially leading to data breaches, unauthorized actions, or compromise of other systems connected to your application.