nuclei-templates/http/technologies/apache/tomcat-detect.yaml

45 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-10 05:54:16 +00:00
id: tomcat-detect
2021-09-09 13:38:13 +00:00
2020-09-22 21:26:52 +00:00
info:
name: Tomcat Detection
author: philippedelteil,dhiyaneshDk,AdamCrosser
2020-09-22 21:26:52 +00:00
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.
metadata:
max-request: 3
vendor: apache
product: tomcat
2023-10-14 11:27:55 +00:00
shodan-query: title:"Apache Tomcat"
tags: tech,tomcat,apache,intrusive
2021-09-09 13:38:13 +00:00
http:
2020-09-22 21:26:52 +00:00
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/{{randstr}}"
2022-10-18 19:55:53 +00:00
- "{{BaseURL}}/docs/introduction.html"
2020-09-24 18:16:21 +00:00
stop-at-first-match: true
2023-10-14 11:27:55 +00:00
matchers-condition: or
matchers:
- type: dsl
dsl:
- 'contains(tolower(header), "tomcat")'
2020-09-24 18:16:21 +00:00
- type: dsl
dsl:
- 'contains(tolower(body), "apache tomcat")'
- 'contains(tolower(body), "/manager/html")'
- 'contains(tolower(body), "/manager/status")'
condition: or
2020-09-24 18:16:21 +00:00
2020-09-22 21:26:52 +00:00
extractors:
- type: regex
name: version
group: 1
2020-09-24 18:16:21 +00:00
regex:
2022-10-18 19:55:53 +00:00
- '(?i)Apache Tomcat.*([0-9]\.[0-9]+\.[0-9]+)'
# digest: 480a00453043021f33760d1e70615e5a6ea58444271729392d288e1e0d267b7814cee7ddd9e5f402207cb3fb17ae7eb0c9c7cc95de0ba94a79ca0ed5518e5b4b74b34e93e8d952ccb4:922c64590222798bb761d5b6d8e72950