.. / CVE-2017-12617

Exploit for Apache Tomcat - Remote Code Execution (CVE-2017-12617)

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.

Nuclei Template

View the template here CVE-2017-12617.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2017/CVE-2017-12617.yaml
Copy

References:

https://github.com/cyberheartmi9/CVE-2017-12617
https://www.exploit-db.com/exploits/43008
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
https://versa-networks.com/blog/apache-tomcat-remote-code-execution-vulnerability-cve-2017-12617/
https://nvd.nist.gov/vuln/detail/CVE-2017-12617