waf-bypass-techniques
WAF bypass methodology and generic evasion techniques. Use when a web application firewall blocks injection payloads (SQLi, XSS, RCE) and you need to craft bypasses using encoding, protocol-level tricks, or WAF-specific weaknesses.
Security Assessment
Detected risks:
About waf-bypass-techniques
WAF Bypass Techniques is an evasion playbook for situations where a web application firewall blocks injection payloads such as SQLi, XSS, or RCE and a tester needs to craft bypasses. It emphasizes methods that base models often miss, moving beyond basic encoding into protocol-level tricks and WAF behavioral quirks. The methodology begins with identifying the WAF using tools like wafw00f and an nmap detection script, plus manual inspection of headers such as cf-ray, x-sucuri-id, and x-akamai, and behavioral fingerprinting that compares benign and obvious-attack responses and reads the block page.
The generic bypass categories are extensive. Encoding options include URL and double URL encoding, Unicode, HTML entities, hex and octal, overlong UTF-8, mixed case, and null bytes. Beyond encoding it covers chunked transfer encoding to split a pattern across chunks, HTTP/2 binary-format bypasses where inspection only happens after downgrade, HTTP parameter pollution that exploits differing duplicate-parameter handling across PHP, ASP.NET, Flask, and Express, IP source spoofing through headers like X-Forwarded-For and True-Client-IP, path normalization tricks, Content-Type manipulation that shifts to JSON or multipart where inspection is weaker, multipart boundary abuse, newline and whitespace injection, and keyword splitting with alternative syntax. Protocol-level techniques add request line abuse with absolute URIs, CRLF header injection, and connection-state bypass on keep-alive connections, all organized under a bypass decision tree.
Product-specific bypasses for Cloudflare, AWS WAF, ModSecurity CRS, Akamai, Imperva, F5 BIG-IP, and Sucuri are kept in a separate product-matrix reference to load on demand. The skill also cross-links to injection skills for the payloads to deliver after a bypass, to request smuggling for routing requests around the WAF entirely, and to a Ghost Bits technique specific to Java backends that uses char-to-byte narrowing to produce many Unicode bypass variants. Use it once a payload is confirmed blocked and evasion is required.
FAQ
What is the first step before attempting a bypass?
Identify the WAF using tools like wafw00f, an nmap detection script, header inspection, and behavioral fingerprinting of the block page.
What encoding bypasses does it list?
URL and double URL encoding, Unicode, HTML entities, hex, octal, overlong UTF-8, mixed case, and null bytes.
How does HTTP parameter pollution help evade a WAF?
Servers handle duplicate parameters differently, so the WAF may inspect a benign value while the application uses the malicious one.
Are product-specific bypasses included?
Yes, but they are kept in a separate WAF_PRODUCT_MATRIX reference to load on demand, covering Cloudflare, AWS WAF, ModSecurity CRS, Akamai, Imperva, F5 BIG-IP, and Sucuri.
What is the Ghost Bits technique for?
It is a Java-backend-only method that uses char-to-byte narrowing to generate many Unicode bypass variants when other encoding tricks are blocked.
Install waf-bypass-techniques
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
yaklang/hack-skills