id: public-tomcat-manager

info:
  name: Apache Tomcat Manager Login Panel - Detect
  author: Ahmed Sherif,geeknik,sinKettu
  severity: info
  description: Apache Tomcat Manager login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: apache
    product: tomcat
    shodan-query:
      - title:"Apache Tomcat"
      - http.title:"apache tomcat"
      - http.html:"apache tomcat"
      - cpe:"cpe:2.3:a:apache:tomcat"
    fofa-query:
      - body="apache tomcat"
      - title="apache tomcat"
    google-query: intitle:"apache tomcat"
  tags: panel,tomcat,apache

http:
  - method: GET
    path:
      - '{{BaseURL}}/manager/html'
      - '{{BaseURL}}/host-manager/html'

    matchers-condition: and
    matchers:
      - type: word
        part: response
        words:
          - "Apache Tomcat"
          - "Tomcat Manager"
        condition: or

      - type: status
        status:
          - 401
          - 200
        condition: or
# digest: 4a0a00473045022077df3b3f45373936fa59adce8d5e18fa4b444838dc6de4aea61d280ab596cb94022100f18c1619370494125b37beecb75412455554a1918087a3f92ac2b66328d558f9:922c64590222798bb761d5b6d8e72950