Skip to content

Apache htpasswd Config - Detect

ID: htpasswd-detection

Severity: high

Author: geeknik

Tags: config,exposure

Apache htpasswd configuration was detected.

id: htpasswd-detection
info:
name: Apache htpasswd Config - Detect
author: geeknik
severity: high
description: Apache htpasswd configuration was detected.
reference: https://httpd.apache.org/docs/current/programs/htpasswd.html
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cwe-id: CWE-200
metadata:
max-request: 1
tags: config,exposure
http:
- method: GET
path:
- "{{BaseURL}}/.htpasswd"
matchers-condition: and
matchers:
- type: word
words:
- ":{SHA}"
- ":$apr1$"
- ":$2y$"
condition: or
- type: status
status:
- 200
# digest: 4a0a00473045022100d6ce49e1bdbe502438c498b5c977ee094ad1a885fc3d277fcc119e8c51621d4c022058cac5ecb1eb10f8284b14164fad31d0af92d45cbadc6e6ef6fe305c4cb41a51:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/configs/htpasswd-detection.yaml"

View on Github