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:
|
2021-12-29 13:40:59 +00:00
|
|
|
name: Tomcat Detection
|
2023-06-24 22:25:54 +00:00
|
|
|
author: philippedelteil,dhiyaneshDk,AdamCrosser
|
2020-09-22 21:26:52 +00:00
|
|
|
severity: info
|
2024-03-26 08:03:04 +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.
|
|
|
|
classification:
|
|
|
|
cpe: cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
|
2021-12-29 13:40:59 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 3
|
2023-06-24 22:25:54 +00:00
|
|
|
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
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-09-22 21:26:52 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2021-12-29 13:40:59 +00:00
|
|
|
- "{{BaseURL}}"
|
|
|
|
- "{{BaseURL}}/{{randstr}}"
|
2022-10-18 19:55:53 +00:00
|
|
|
- "{{BaseURL}}/docs/introduction.html"
|
2020-09-24 18:16:21 +00:00
|
|
|
|
2021-12-29 13:40:59 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-12-29 13:40:59 +00:00
|
|
|
matchers-condition: or
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- 'contains(tolower(header), "tomcat")'
|
2020-09-24 18:16:21 +00:00
|
|
|
|
2021-12-29 13:40:59 +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
|
2023-06-24 22:25:54 +00:00
|
|
|
name: version
|
2021-12-29 13:40:59 +00:00
|
|
|
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]+)'
|
2024-03-26 08:05:26 +00:00
|
|
|
# digest: 4b0a00483046022100e3d8776e9ca37212551101bbd98be081de439409f2dec31a8d7103552b3b33cf022100e76afac4d122a66489d1aca0e5105d0c0de7bef5bb7d4f572e60db2d18bb0e08:922c64590222798bb761d5b6d8e72950
|