htpasswd-detection: Apache htpasswd Config - Detect

日期: 2025-08-01 | 影响软件: Apache htpasswd | POC: 已公开

漏洞描述

Apache htpasswd configuration was detected.

PoC代码[已公开]

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,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/.htpasswd"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - ":{SHA}"
          - ":$apr1$"
          - ":$2y$"
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a00473045022047941c6ef98df6f25b3021cd44df09a96b6450add294338cc04d811a384b9d73022100bc8800981272b16bce05daf5acaeb558327bf2606379fa3188a7091c89e07b6c:922c64590222798bb761d5b6d8e72950