Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2017-12617 PoC — Apache Tomcat 安全漏洞

Source
Associated Vulnerability
Title:Apache Tomcat 安全漏洞 (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.
Readme
# CVE-2017-12617
CVE-2017-12617 critical Remote Code Execution (RCE) vulnerability discovered in Apache Tomcat 


<p>affect systems with HTTP PUTs enabled (via setting the "read-only" initialization parameter of the Default servlet to "false") are affected.

<p>Tomcat versions before 9.0.1 (Beta), 8.5.23, 8.0.47 and 7.0.82 contain a potentially dangerous 
<p>remote code execution (RCE) vulnerability on all operating systems if the default servlet is 
<p>configured with the parameter readonly set to false or the WebDAV servlet is enabled with the 
<p>parameter readonly set to false

# Apache Tomcat  page


<br>./cve-2017-12617.py [options]

<br>options:

<br>-u ,--url [::] check target url if it's vulnerable 
<br>-p,--pwn  [::] generate webshell and upload it
<br>-l,--list [::] hosts list

<br>[+]usage:

<br>./cve-2017-12617.py -u http://127.0.0.1
<br>./cve-2017-12617.py --url http://127.0.0.1
<br>./cve-2017-12617.py -u http://127.0.0.1 -p pwn
<br>./cve-2017-12617.py --url http://127.0.0.1 -pwn pwn
<br>./cve-2017-12617.py -l hotsts.txt
<br>./cve-2017-12617.py --list hosts.txt


<br><h2>Banner</br>
![alt text](https://github.com/cyberheartmi9/CVE-2017-12617/blob/master/screenshots/banner.PNG)

![alt text](https://github.com/cyberheartmi9/CVE-2017-12617/blob/master/screenshots/1.PNG)
<br><h3>Check target if it's vulneabel </br>
![alt text](https://github.com/cyberheartmi9/CVE-2017-12617/blob/master/screenshots/44.PNG)
<br><h3> Confirm file was  created </br>
![alt text](https://github.com/cyberheartmi9/CVE-2017-12617/blob/master/screenshots/2.PNG)
<br><h3> Create Webshell and get shell
![alt text](https://github.com/cyberheartmi9/CVE-2017-12617/blob/master/screenshots/3.PNG)
<br><h3> Scan hosts in txt file<br>
![alt text](https://github.com/cyberheartmi9/CVE-2017-12617/blob/master/screenshots/5.PNG)









<h1> <h1> [ @intx0x80 ]



File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →