POC详情: 37aa1448cfd8f6f05c56c9655bdb57fffc059b09

来源
关联漏洞
标题: Apache Commons Text 代码注入漏洞 (CVE-2022-42889)
描述:Apache Commons Text是美国阿帕奇(Apache)基金会的一个专注于字符串算法的库。 Apache Commons Text 1.5至1.9版本存在安全漏洞,该漏洞源于默认的Lookup实例集包括可能导致任意代码执行或与远程服务器联系的插值器,可能容易受到远程代码执行或与远程服务器的无意接触的影响。
描述
RCE PoC for Apache Commons Text vuln
介绍
## Quickstart

```bash
sudo apt install golang
```

To run like Python:
```bash
go run main.go arg1 arg2
```

To build executable:
```bash
go build main.go
```

Usage:
```bash
non@woa:~/program$ go run main.go 
[-] Usage: ./program vulnerable/web?param= 'ls -la'
```

-----

## To Do:
- Reverse shell capabilities (https://gobyexample.com/spawning-processes)
- Better error handling, know there is a logic bug where if you change ?search to ?sea, program flow still reaches command success end line 
文件快照

[4.0K] /data/pocs/37aa1448cfd8f6f05c56c9655bdb57fffc059b09 ├── [ 50] go.mod ├── [1.2K] LICENSE ├── [ 723] main.go ├── [2.9K] possiblepoc.go └── [ 499] README.md 0 directories, 5 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。