id: apache-httpd-eol

info:
  name: Apache HTTP Server End-of-Life - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Detected Apache HTTP Server versions that have reached End-of-Life (EOL) and no longer receive security updates.
  reference:
    - https://httpd.apache.org/
    - https://endoflife.date/apache
  metadata:
    verified: true
    max-request: 1
    shodan-query: "Server: Apache/"
    product: http_server
    vendor: apache
  tags: tech,apache,eol

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - compare_versions(version, '<=2.2.34')
          - contains(server, 'Apache')
        condition: and

    extractors:
      - type: regex
        part: header
        name: version
        group: 1
        regex:
          - 'Server: Apache/([0-9.]+)'
# digest: 4a0a00473045022064a0f854da0036ae22a51990cfcf50f08c4ad34cb34a6636335c7d46b746e744022100f5e335e5f1d4120a5103b57dd15a897f9300778e9ff877951ab0fbc354edf588:922c64590222798bb761d5b6d8e72950