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 PyPI upload token has been found hard-coded in the source code. Storing credentials directly in code makes them easily accessible to anyone with code access, risking unauthorized use.
Impact#
If an attacker obtains this token, they could upload or modify packages in your PyPI repository, potentially distributing malicious software or compromising your project’s integrity and reputation.