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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-44228 PoC — Apache Log4j 代码问题漏洞

Source
Associated Vulnerability
Title:Apache Log4j 代码问题漏洞 (CVE-2021-44228)
Description:Apache Log4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。 Apache Log4J 存在代码问题漏洞,攻击者可设计一个数据请求发送给使用 Apache Log4j工具的服务器,当该请求被打印成日志时就会触发远程代码执行。
Description
Test case to check if the Log4Shell/CVE-2021-44228 hotfix will raise any unexpected exceptions
Readme
Log4Shell Hotfix Side Effect Test Case
======================================

I wanted to know if any `ClassNotFoundException` or similar unexpected
exception is raised when one applies the CVE-2021-44228 aka Log4Shell
hotfix as recommended [here](https://logging.apache.org/log4j/2.x/security.html#Fixed_in_Log4j_2.16.0).

Result: It looks like no exception is bubbling up.

To test this execute the following commands:
```
./gradlew clean installDist
env JAVA_OPTS=-Xmx64M ./build/install/log4shell-hotfix-side-effect/bin/log4shell-hotfix-side-effect
```

It will log a bunch of messages and timings and there should be no exceptions.

If the log4j jar file is not patched properly there should be a measurable
delay between the messages (or you might even get an RCE, YMMV).
File Snapshot

[4.0K] /data/pocs/9fda486651458c6bc6550a83e962c242f04f8d42 ├── [ 821] build.gradle ├── [4.0K] gradle │   └── [4.0K] wrapper │   ├── [ 54K] gradle-wrapper.jar │   └── [ 202] gradle-wrapper.properties ├── [5.2K] gradlew ├── [2.2K] gradlew.bat ├── [ 779] README.md └── [4.0K] src └── [4.0K] main └── [4.0K] java └── [4.0K] de └── [4.0K] silpion └── [4.0K] log4shell └── [4.0K] hotfix └── [4.0K] side └── [4.0K] effect ├── [1.8K] Log.java └── [3.4K] Main.java 11 directories, 8 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.