id: tomcat-cookie-exposed

info:
  name: Tomcat Cookie Exposed
  author: tess,dk999
  severity: low
  description: Tomcat Cookie is exposed.
  reference:
    - https://medium.com/bugbountywriteup/apache-example-servlet-leads-to-61a2720cac20
  metadata:
    verified: true
    max-request: 1
  tags: misconfig,apache,tomcat,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/examples/servlets/servlet/CookieExample"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Cookies Example"
          - "Your browser is sending the following cookies:"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100977f613418a47648c9a955ca02e2379d0380878ea34acc0d04276210575a34d502201c79b9aeb3c133e93bf47e872b5a4d8b9d3c434f583d9681a75f8f1ac7a6e12b:922c64590222798bb761d5b6d8e72950