# Htpasswd Exposure Detection Module id: htpasswd-exposure info: name: Htpasswd Exposure author: sif severity: high description: Detects an exposed htpasswd file that leaks crackable basic auth password hashes tags: [apache, htpasswd, credentials, hashes, exposure, recon] type: http http: method: GET paths: - "{{BaseURL}}/.htpasswd" matchers: - type: status status: - 200 - type: regex part: body condition: or regex: - '(?m)^[^:\s]+:\$(apr1|2[aby]|1|5|6)\$' - '(?m)^[^:\s]+:\{SHA\}' extractors: - type: regex name: htpasswd_user part: body regex: - '(?m)^([^:\s]+):' group: 1