id: tomcat-exposed-docs

info:
  name: Tomcat exposed docs
  author: Podalirius
  severity: info
  classification:
    cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: tomcat
    shodan-query: title:"Apache Tomcat"
    vendor: apache
  tags: version,tomcat,docs,panel,apache

http:
  - method: GET
    path:
      - '{{BaseURL}}/docs/'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Apache Tomcat'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<div class="versionInfo">[ \n\t]*(Version[ \n\t]*[^\n\t<]+)[ \n\t]*<time'
# digest: 4a0a004730450221009c7f7fc4b4a84fcb7f09be2f83a028283c0c8ee7322c3ebcaa1757e11f205b7102205c9bb529b0489eec94fa759a76e6f81cb459abbd35c8ea4a09933300db51f54b:922c64590222798bb761d5b6d8e72950