
POC for log4shll Vulnerablity (CVE-2021-44228)
Proof of Concept for Remote Code Execution via JNDI Injection vulnerability in Apache Log4j 2.14.1. Web Hacking Course - Week 11 Assignment.
| Role | Software | Version |
|---|---|---|
| Victim Server | Spring Boot + Log4j | 2.6.1 + 2.14.1 |
| Victim JDK | OpenJDK | 1.8.0_181 |
| LDAP Server | marshalsec | 0.0.3 |
| Attacker OS | Kali Linux | - |
log4shell-poc/
├── vulnerable-server/ # Vulnerable Spring Boot server
│ ├── pom.xml
│ └── src/main/java/com/example/vulnerable/
│ ├── App.java
│ └── MainController.java
├── exploit/
│ └── Exploit.java # Malicious class source
└── attacker/
└── commands.md # Attack commands reference
cd vulnerable-server
mvn clean package -DskipTests
/opt/jdk1.8.0_181/bin/java -jar target/log4shell-vuln-0.0.1-SNAPSHOT.jar
See attacker/commands.md for step-by-step attack commands.
logger.info() passes user input directly to Log4j without sanitization${...} expressions inside log messagestrustURLCodebase=true by default)This POC is for educational purposes only. Do NOT use against systems without explicit permission.