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

Goal: 1000 CNY · Raised: 1110 CNY

100%

CVE-2021-44228 PoC — Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints

Source
Associated Vulnerability
Title:Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints (CVE-2021-44228)
Description:Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.
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. 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 →