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"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "Apache Server Status", "Apache Server Information")'
          - 'contains(body, "Server Version")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a004830460221008b0fbdc02a5937e21cf2ebbf9535c3df359262419ec6350c7b8cf04e056f4650022100d50b16ff6a5340fa3f63433896eb66c16f2ddaebe5438045a72250313df4ce28:922c64590222798bb761d5b6d8e72950