Files
nuclei-templates/http/technologies/apache/tomcat-detect.yaml
2025-10-26 16:17:37 +00:00

53 lines
1.6 KiB
YAML

id: tomcat-detect
info:
name: Tomcat Detection
author: philippedelteil,dhiyaneshDk,AdamCrosser
severity: info
description: If an Tomcat instance is deployed on the target URL, when we send a request for a non existent resource we receive a Tomcat error page with version.
classification:
cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
metadata:
max-request: 3
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: tech,tomcat,apache,intrusive,discovery
http:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/{{randstr}}"
- "{{BaseURL}}/docs/introduction.html"
stop-at-first-match: true
matchers-condition: or
matchers:
- type: dsl
dsl:
- 'contains(tolower(header), "tomcat")'
- type: dsl
dsl:
- 'contains(tolower(body), "apache tomcat")'
- 'contains(tolower(body), "/manager/html")'
- 'contains(tolower(body), "/manager/status")'
condition: or
extractors:
- type: regex
name: version
group: 1
regex:
- '(?i)Apache Tomcat.*\D([1-9]*[0-9]\.[0-9]+\.[0-9]+)'
# digest: 4b0a00483046022100ec3b2e012984a823e82f6c94bbd031700f2426020efe0cc2a50c91f8c8d5f421022100e995e02b781c4204f7129229f912212bc38741c42bfa56734d9b9d4ebce7cf3c:922c64590222798bb761d5b6d8e72950