LS-GEN-005: Basic Auth in URL¶
| Severity | MEDIUM |
| Blast radius | Account access on the target host |
| Rotate at | https://vasishta03.github.io/leakscan/rules/ |
If this leaks¶
Embeds a username and password directly in a URL, granting whatever access that account has on the target host or service.
What to do¶
- Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
- 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¶
https?://[a-zA-Z0-9._\-]+:([a-zA-Z0-9._\-]{4,})@
Suppress¶
On one line: # leakscan:ignore LS-GEN-005. For the whole project:
disable_rules: [LS-GEN-005]