
إثبات مفهوم (PoC) مبني على بايثون لثغرة CVE-2022-22965 (Spring4Shell)، يقوم بكتابة ملف علامة إلى دليل webapps الخاص بـ Tomcat والتحقق من نجاح الاستغلال عبر طلب HTTP.
إثبات مفهوم أكثر أمانًا لـ CVE-2022-22965 (Spring4Shell)
CVE_2022-22965_exploited.txt في دليل tomcat 'webapps/ROOT'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