
CVE-2021-44228 demo webapp
Yet another CVE-2021-44228 POC
Affected Log4j versions: from 2.0-beta9 up to 2.14.1
Used Java: OpenJDK 11
Maven required to build apps in this repo (alternatively, download prepared jar files from release):
Directories description:
Build projects with:
mvn clean install
Run jars with:
java -jar <jar>
Files to run (these files will be generated in: <repo_name>/<project_name>/target):
Alternatively build and run docker image - Docker section below Screenshots
Currently, the vulnerability can be exploited via:
Java version:

Exploit preparation + Compilation + Serving class file:

Payload (to be delivered to log4j) preparation + Sending the payload:

JNDI Reference:

Exploitation result (Windows):

Exploitation result (GNU/Linux):

You can also build docker image with Dockerfile located in main repo directory. Instructions:
docker build . -t log4j_vuln
docker run -p 8080:8080 -p 8081:8081 log4j_vuln
To find CONTAINER_ID:
docker ps
To see exploitation result (inside container):
docker exec -it <CONTAINER_ID> bash
ls -la /tmp
Kill docker container with:
docker container kill <CONTAINER_ID>
Code presented in this repository is intended to be used FOR EDUCATIONAL PURPOSES ONLY.
I do not aid, or endorse any malicious usage of data from this repository.
Additionally, code in this repository is shared on an 'AS IS' BASIS - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.