id: jetty-showcontexts-enable

info:
  name: Jetty showContexts Enable in DefaultHandler
  author: dhiyaneshDK
  severity: low
  description: Jetty showContexts is Enabled in DefaultHandler
  reference:
    - https://github.com/jaeles-project/jaeles-signatures/blob/master/common/jetty-showcontexts-enable.yaml
    - https://swarm.ptsecurity.com/jetty-features-for-hacking-web-apps/
  classification:
    cpe: cpe:2.3:a:eclipse:jetty:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: eclipse
    product: jetty
    shodan-query: html:"contexts known to this"
  tags: jetty,misconfig,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Contexts known to this server are:"

      - type: status
        status:
          - 404
# digest: 4b0a00483046022100dbca3a870764649edd8e61a3a9096e8248187a4f9128cf9fbee3e37c90e42c30022100d8a845f22e47e41afbc22421efe1ba0aae6b7bbd3891d2c3ddc8b84e474cb244:922c64590222798bb761d5b6d8e72950