Skip to content

LS-IAC-008: Htpasswd Hash

Severity MEDIUM
Blast radius Account access after offline cracking
Rotate at https://vasishta03.github.io/leakscan/rules/
Applies to files matching (?:^|/)\.?htpasswd$

If this leaks

Password hashes can be cracked offline; weak or reused passwords will fall quickly.

What to do

  1. Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

^[\w.\-]+:(?:\$apr1\$|\$2[aby]\$|\{SHA\})[^\s]{20,}$

Suppress

On one line: # leakscan:ignore LS-IAC-008. For the whole project:

disable_rules: [LS-IAC-008]