.. / CVE-2022-22963

Exploit for Spring Cloud - Remote Code Execution (CVE-2022-22963)

Description:

Spring Cloud Function versions 3.1.6, 3.2.2 and older unsupported versions are susceptible to remote code execution vulnerabilities. When using routing functionality it is possible for a user to provide a specially crafted SpEL as a routing-expression that may result in remote code execution and access to local resources.

Proof of Concept

PoC exploit

Nuclei Template

View the template here CVE-2022-22963.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2022/CVE-2022-22963.yaml
Copy

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box Inject Go to Practice

References:

https://github.com/cckuailong/spring-cloud-function-SpEL-RCE
https://github.com/spring-cloud/spring-cloud-function/commit/0e89ee27b2e76138c16bcba6f4bca906c4f3744f
https://nvd.nist.gov/vuln/detail/CVE-2022-22963
https://nsfocusglobal.com/spring-cloud-function-spel-expression-injection-vulnerability-alert/
https://tanzu.vmware.com/security/cve-2022-22963
https://github.com/vulhub/vulhub/tree/scf-spel/spring/spring-cloud-function-spel-injection