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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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
Apache Text4Shell (CVE-2022-42889) Burp Bounty Profile
Readme
Apache Commons Text CVE-2022-42889
==================================
## Overview
Apache Text4Shell (CVE-2022-42889) The affected Apache Commons Text versions 1.5 through 1.9 and it has been patched in version 1.10.<br>
Apache Commons Text is a Java library described as "a library focused on algorithms working on strings". <br>

## Usage:
  1) Copy Text4Shell(CVE-2022-42889).bb in Burp BountyData\profiles
  2) Select Request to Scan

![Alt text](https://raw.githubusercontent.com/0xmaximus/Apache-Commons-Text-CVE-2022-42889/main/screen%20shot.jpg "Screen Shot")

## References
* https://sysdig.com/blog/cve-2022-42889-text4shell/
* https://nvd.nist.gov/vuln/detail/CVE-2022-42889/
File Snapshot

[4.0K] /data/pocs/fbcae7f7583f729d125cde5b70abf820ff0bbe70 ├── [ 686] README.md ├── [218K] screen shot.jpg └── [2.7K] Text4Shell (CVE-2022-42889).bb 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 →