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

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

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

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