Apache Tomcat Example Scripts - Detect
ID: tomcat-scripts
Severity: info
Author: Co0nan,Higor Melgaço
Tags: apache,tomcat,misconfig
Description
Section titled “Description”Multiple Apache Tomcat example scripts were detected.
YAML Source
Section titled “YAML Source”id: tomcat-scripts
info: name: Apache Tomcat Example Scripts - Detect author: Co0nan,Higor Melgaço severity: info description: Multiple Apache Tomcat example scripts were detected. reference: - https://www.acunetix.com/vulnerabilities/web/apache-tomcat-examples-directory-vulnerabilities/ - https://www.rapid7.com/db/vulnerabilities/apache-tomcat-example-leaks/ classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N cvss-score: 0 cwe-id: CWE-200 metadata: max-request: 8 tags: apache,tomcat,misconfig
http: - method: GET path: - "{{BaseURL}}/examples/servlets/index.html" - "{{BaseURL}}/examples/jsp/index.html" - "{{BaseURL}}/examples/websocket/index.xhtml" - "{{BaseURL}}/examples/servlets/servlet/SessionExample" - "{{BaseURL}}/..;/examples/servlets/index.html" - "{{BaseURL}}/..;/examples/jsp/index.html" - "{{BaseURL}}/..;/examples/websocket/index.xhtml" - "{{BaseURL}}/..;/examples/servlets/servlet/SessionExample"
matchers: - type: word words: - "JSP Examples" - "JSP Samples" - "Servlets Examples" - "WebSocket Examples" - "GET based form" condition: or# digest: 4b0a00483046022100aac6a63aa0518f6565482b805dd6bd9c63c1511d18c58544b66602717d62b34f022100cb0fee4015875fccd6a652e0d97a0540fe530be1d47e39cd1019c83d506b1f04:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/misconfiguration/tomcat-scripts.yaml"