
Spring Cloud Gateway远程代码执行漏洞POC,基于命令执行的基础上,增加了反弹shell操作
Hazard Level: High
POC/EXP Status: Public
CNVD ID: CNNVD-2022-16402
Affected Versions:
Spring Cloud Gateway 3.1.0
Spring Cloud Gateway >=3.0.0, <=3.0.6
Spring Cloud Gateway <3.0.0
Spring Cloud Gateway has a remote code execution vulnerability. This vulnerability occurs in the Actuator endpoint of Spring Cloud Gateway applications, which is susceptible to code injection when enabled, exposed, and unsecured. An attacker can exploit this vulnerability by maliciously creating requests that allow arbitrary remote execution on the remote host.
For convenience, a script has been written to facilitate command execution and reverse shell.
python3 CVE-2022-22947.py http://localhost:9000


nc -lvvp 5000

Enter "shell" to switch to reverse shell operation
Enter the reverse shell command to obtain the shell
