Ringkasan

WAF fingerprinting adalah proses mengidentifikasi jenis dan vendor WAF yang melindungi target. Informasi ini penting untuk memilih teknik bypass yang tepat. Fingerprint bisa didapat dari response headers, cookies, block page content, response codes, dan side-channel timing. Referensi ini mencakup 100+ WAF signatures dari Awesome-WAF + wafw00f plugin database (173 WAF).

Cross-link: waf-evasion-techniques-encyclopediawaf-reverse-proxy-deepdivectf-tool-arsenal-universalsql-comment-injection-waf-bypass


Daftar Isi


1. Metodologi Fingerprinting

3-Step Detection

# Step 1: Normal request — catat response baseline
curl -I http://target.com
 
# Step 2: Provoke WAF — kirim payload mencurigakan
curl -I -d "<script>alert(1)</script>" http://target.com
 
# Step 3: Bandingkan response — cari perbedaan headers/body/status

Indikator WAF

IndikatorContohWAF
Custom headercf-ray, server: cloudflareCloudflare
Custom cookie__cfuid, visid_incap, incap_sesCloudflare, Imperva
Block code406, 493, 999NAXSI, 360, WebKnight
Block page text”ModSecurity Action”ModSecurity
Server headerYunjiasu-nginx, BigIPBaidu, F5

2. Detection via Headers

Server Header

Server ValueWAF
cloudflareCloudflare
YunjiasuBaidu Yunjiasu CDN
BigIP / F5F5 BIG-IP ASM
Mod_SecurityModSecurity
NASX / naxsiNAXSI
Sucuri / CloudproxySucuri
ZScalerZScaler
NSFocusNSFocus

Response Headers

HeaderWAF
cf-ray: ...Cloudflare
X-Sucuri-ID: ...Sucuri
X-iinfo: ...Imperva Incapsula
X-WA-Info: ...F5 BIG-IP
X-Powered-By-360WZB: ...360 WAF
X-dotDefender-deniedDotDefender
X-SL-CompStateRadware AppWall
X-BinarySec-ViaBinarySec
X-DIS-Request-IDDoSArrest

3. Detection via Block Page

Unique Block Page Signatures

Cloudflare:
  "Attention Required! | Cloudflare"
  "DDoS protection by Cloudflare"
 
Imperva Incapsula:
  "Powered By Incapsula"
  "_Incapsula_Resource"
 
ModSecurity:
  "This error was generated by Mod_Security"
  "mod_security rules triggered"
 
Sucuri:
  "Access Denied - Sucuri Website Firewall"
  "cloudproxy@sucuri.net"
 
AWS WAF / CloudFront:
  "Generated by cloudfront (CloudFront)"
  "Request ID: ..."
 
Barracuda:
  "You have been blocked"
  "barra_counter_session"
 
F5 BIG-IP:
  "The requested URL was rejected"
  "Please consult with your administrator"

4. Detection via Response Codes

Response CodeWAF
403 ForbiddenGeneric (most WAFs)
406 Not AcceptableOpenResty Lua WAF, NAXSI
493360 WAF
999 No HackingWebKnight
405 Method Not AllowedTencent Cloud WAF, Anquanbao
503 Service UnavailableSecuPress, generic blocking
444 Connection CloseNginx + custom WAF

5. Detection via Cookies

__cfuid=...         → Cloudflare
incap_ses_*=...     → Imperva Incapsula
visid_incap_*=...   → Imperva Incapsula
barra_counter=...   → Barracuda
TS*_*=...           → Citrix NetScaler
AL-SESS=...         → Airlock
ns_af=...           → Citrix NetScaler AppFirewall
PLBSID=...          → Profense
rbzid=...           → Reblaze

6. Side-Channel Timing

# Timing attack untuk fingerprint
# Cek perbedaan latency antara request normal vs malicious
# WAF cenderung nambah latency 5-50ms untuk malicious requests
 
time curl -s -o /dev/null http://target.com
# Normal: 50ms
 
time curl -s -o /dev/null -d "' OR 1=1 --" http://target.com
# Blocked by WAF: 80ms (WAF processing)

7. Tool: wafw00f

# Install
git clone --depth 1 https://github.com/EnableSecurity/wafw00f.git
cd wafw00f && python setup.py install
 
# Usage
wafw00f http://target.com
# Output: Cloudflare, AWS, ModSecurity, etc.
 
# Scan multiple
wafw00f http://target1.com http://target2.com -a

Lokasi: /mnt/data_d/Projects/Reference/wafw00f/ (173 plugin deteksi)


8. Referensi Cepat 50+ WAF

Nama WAFHeaderCookieBlock CodeBlock Page Signature
Cloudflarecf-ray, server: cloudflare__cfuid403”Attention Required!”
ImpervaX-iinfoincap_ses, visid_incap403”Powered By Incapsula”
ModSecurityserver: Mod_Security403”ModSecurity Action”
F5 BIG-IPX-WA-Info403”request was rejected”
AWS WAFx-amz-rid403”Generated by cloudfront”
SucuriX-Sucuri-ID403”Access Denied - Sucuri”
Barracudabarra_counter403”You have been blocked”
NAXSIserver: naxsi406”Blocked By NAXSI”
360 WAFX-Powered-By-360WZBWZWS-Ray493”wangshan.360.cn”
WebKnightserver: WebKnight999”WebKnight Application Firewall”

Sumber: Awesome-WAF fingerprint section + wafw00f plugins (173 WAF)

Cross-link vault: