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

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2022-42889 PoC — Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults

Source
Associated Vulnerability
Title:Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults (CVE-2022-42889)
Description:Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.
Description
text4shell(CVE-2022-42889) BurpSuite Scanner
Readme
# text4shellburpscanner

本项目基于[log4j2burpscanner](https://github.com/f0ng/log4j2burpscanner) 修改而来,删除了主动扫描功能,后续有需要再加上

CVE2022-42889

靶场链接如下:

https://github.com/karthikuj/cve-2022-42889-text4shell-docker.git

也可以关注主页公众号(only security),回复`text4shell`获取编译好的靶场下载地址

靶场搭建:

cd 进目录,执行

```bash
docker run -p 85:8080 text4shell
```

<img width="489" alt="image" src="https://user-images.githubusercontent.com/48286013/206665093-15f059f0-bfb0-48f7-bf0b-ead70134b2bd.png">

访问`http://ip地址/text4shell/attack?search=111`即可

<img width="489" alt="image" src="https://user-images.githubusercontent.com/48286013/206665258-232e4338-a6c4-43da-8d7c-b6b6a48f17af.png">

在插件页面即可看到漏洞存在

<img width="481" alt="image" src="https://user-images.githubusercontent.com/48286013/206665144-56d07d07-fd9c-4868-81e5-fc353f685a08.png">

<img width="489" alt="image" src="https://user-images.githubusercontent.com/48286013/206665169-bc211b1a-e150-4ccf-b5ba-d5e834bf99d9.png">


File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
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 →