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

36 lines
945 B
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
2021-09-09 13:38:13 +00:00
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.
2020-09-22 21:26:52 +00:00
severity: info
2021-09-09 13:38:13 +00:00
tags: tech,tomcat,apache
metadata:
shodan-query: title:"Apache Tomcat"
2021-09-09 13:38:13 +00:00
2020-09-22 21:26:52 +00:00
requests:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/{{randstr}}"
2020-09-24 18:16:21 +00:00
stop-at-first-match: true
matchers-condition: or
matchers:
- type: dsl
dsl:
- 'contains(tolower(all_headers), "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
group: 1
2020-09-24 18:16:21 +00:00
regex:
- '(?i)Apache Tomcat.*([0-9]\.[0-9]+\.[0-9]+)'