encoding-bypass-anti-pattern
Installation
SKILL.md
Encoding Bypass Anti-Pattern
Severity: High
Summary
Encoding bypass evades security checks via alternate encodings. Occurs when validation happens before decoding/normalization. Encoded payload appears safe but becomes malicious after processing. Bypasses WAFs, input filters, enables XSS and SQL injection.
The Anti-Pattern
Flawed order of operations: Validate then Decode/Normalize. Security checks run on encoded data, application later uses decoded version, re-introducing the vulnerability.
BAD Code Example
# VULNERABLE: Validation happens before Unicode normalization.
import unicodedata