
PythonベースのCVE-2022-22965(Spring4Shell)の概念実証(PoC)で、Tomcatのwebappsディレクトリにマーカーファイルを書き込み、HTTPリクエストを介して悪用を検証します。
CVE-2022-22965 (Spring4Shell) のためのより安全な PoC
CVE_2022-22965_exploited.txt というファイルを作成しますusage: Safer_PoC_CVE-2022-22965.py [-h] --url URL [--dir DIR]
CVE-2022-22965 Spring-Core remote code execution POC
optional arguments:
-h, --help show this help message and exit
--url URL target url
--dir DIR directory to write the result (default is "webapps")
例: python3 Safer_PoC_CVE-2022-22965.py --url http://localhost:8080/handling-form-submission-complete/greeting --dir "webapps/handling-form-submission-complete"
ファイル名: CVE_2022_22965_exploited.txt
ファイル内容: Warning, CVE_2022_22965 was sucessfully exploited on this device. reference: https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement