WAF bypass

Reaching MySQL keywords, functions, and catalog tables past signature filters using versioned comments, encoding, alternative objects, and charset tricks.

1분 분량2026년 10월 7일 업데이트florianamette기여자 1명
어시스턴트에게 묻기 (MCP)GitHub에서 편집

Web application firewalls and input filters block injection by matching signatures: keywords like UNION SELECT, function names, and the string information_schema. MySQL's dialect offers enough equivalents that most single-signature filters can be worked around, which is why keyword blocklists are a weak defense.

The main families are: comment tricks that split or conditionally run keywords, encodings that remove quotes and spaces from the payload, alternative objects that reach the same data under a different name, and charset tricks that neutralize escaping. They are combined as needed, since a filter usually blocks several patterns at once.

Pages#

Tools#

  • sqlmap: extensive tamper scripts for filter and WAF evasion.
  • Burp Repeater: craft and iterate bypass payloads manually.

References#

  • MySQL Reference Manual: comment syntax, character sets
  • OWASP Testing Guide: Testing for SQL Injection