id: apache-server-status

info:
  name: Apache Server Status Disclosure
  author: thabisocn
  severity: low
  description: |
    Apache /server-status displays information about your Apache status. If you are not using this feature, disable it.
  reference:
    - https://www.exploit-db.com/ghdb/5548
    - https://www.invicti.com/web-vulnerability-scanner/vulnerabilities/apache-server-status-detected/
    - https://www.acunetix.com/vulnerabilities/web/apache-server-status-detected/
  metadata:
    verified: true
    max-request: 2
    google-query:
      - site:*/server-status intext:"Apache server status for"
      - site:*/server-info intext:"Apache server Information"
  tags: misconfig,exposure,apache,debug

http:
  - method: GET
    path:
      - "{{BaseURL}}/server-info"
      - "{{BaseURL}}/server-status"

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "Apache Server Status", "Apache Server Information")'
          - 'contains(body, "Server Version")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022073046a7f7318561fdad8f1e0e3ad6818519618e4e1098f741c862e3326e774d602206bbcc1f50d5c11180aa9f9f244803569f6e13980af3cbafe0f5c9061bcfde926:922c64590222798bb761d5b6d8e72950