
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