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

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: 4a0a00473045022100c987eaf89a9df138224ba5070ae804cf40d0a8616efde2a7245d55106330ca63022064a02d466826790b26e3eea2b57456ba3e703a34b3fe63834a85bbba4c4aed7c:922c64590222798bb761d5b6d8e72950