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
A singular file to protect as many Minecraft servers and clients as possible from the Log4j exploit (CVE-2021-44228).
Readme
# MC-Log4J-Patcher  
The goal of this project is to provide Minecraft players, and server owners, peace of mind in regards to the recently discovered Log4J exploit (CVE-2021-44228).  
Currently this project looks for any Log4J format strings, not just `jndi`, and either replaces them or stops them from being logged entirely depending on your [configuration](#config).  

See [features](#features), [supported platforms](#supported-platforms), and more below.

I would much appreciate any help from others, whether it be by contributing or by suggesting features, platforms, etc. via an [issue](https://github.com/Koupah/MC-Log4j-Patcher/issues/new).

## Supported Platforms  
 - [Spigot/Bukkit](https://getbukkit.org/download/spigot) (Tested Spigot 1.8.9, 1.12.2)
 - [Bungeecord](https://github.com/SpigotMC/BungeeCord) (Tested Waterfall)


## Planned Platforms
 - Velocity
 - Sponge
 - Forge (I know it should be fixed, but people keep asking me to make a mod anyways)
 - Vanilla/All Clients via Java Agent

## Features

### Spigot
 - Chat & Command filter
 - Item Name filter
 - Player username filter (for offline/bungee servers) (Yes, usernames can be Log4J formats)
 - Mob name filter (Spawning & Renaming)

### Bungee
 - Chat & Command filter
 - Player username filter (Yes, usernames can be Log4J formats)

## Config
 - Customizable messages
 - Toggles for all listeners, individual for each platform

*Specifics need to be filled in*
File Snapshot

[4.0K] /data/pocs/be8c31f56f7f6c3d1d8b29b22274efe8361559a8 ├── [1.4K] README.md ├── [4.0K] resources │   ├── [ 136] bungee.yml │   └── [ 141] plugin.yml └── [4.0K] src └── [4.0K] club └── [4.0K] koupah └── [4.0K] log4j ├── [4.0K] bukkit │   ├── [2.9K] BukkitPatcher.java │   ├── [1.3K] ListenerPatchers.java │   └── [4.0K] listeners │   ├── [1.8K] ChatPatcher.java │   ├── [2.6K] ItemNamePatcher.java │   ├── [1.3K] MobNamePatcher.java │   └── [1.6K] PlayerNamePatcher.java ├── [4.0K] bungee │   ├── [2.5K] BungeePatcher.java │   ├── [1.3K] ListenerPatchers.java │   └── [4.0K] listeners │   ├── [ 338] ChatPatcher.java │   └── [1.7K] PlayerNamePatcher.java ├── [4.0K] global │   ├── [4.0K] configuration │   │   ├── [1.9K] ConfigEntry.java │   │   └── [6.1K] Config.java │   ├── [4.0K] log4j │   │   └── [2.0K] Log4JFilter.java │   ├── [4.0K] updates │   │   └── [3.8K] UpdateChecker.java │   └── [4.0K] utils │   ├── [4.5K] Formatter.java │   ├── [4.4K] JndiContextPatch.java │   ├── [1.4K] Loggable.java │   └── [3.3K] PUtil.java ├── [4.9K] Patcher.java └── [ 333] PatcherPlatform.java 14 directories, 23 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.