New Techniques in SQLi Obfuscation
summary
Analysis of tens of thousands of real SQLi payloads exposes many unused SQL features and WAF blind spots. An open‑source libinjection C library parses tokens instead of regex and finds large portions of parsers never invoked. Practical bypasses include using backslash‑N versus backslash‑n for NULL/newline, nested C‑style comments in Postgres, dollar‑quoted strings and unusual numeric/hex/binary literals, Postgres operators like INTERSECT, and IN‑list handling that often avoids parameter binding.
AI-written summary · about
chapters (24)
- 0:00Intro
- 0:48whoami
- 1:47SQL Specification
- 3:17Regexp Based WAF
- 3:50libinjection
- 5:15Analysis
- 6:05Lots of Dark Corners
- 6:37MySQL NULL Alias
- 8:26Floating Point
- 9:32Exceptions
- 10:07Oracle Special Literals
- 10:42Hexadecimal Literals
- 11:06Binary Literals
- 11:25Money Literals
- 12:08MySQL # Comment
- 13:15PGSQL Comments
- 13:57C-Style String Merging
- 14:29Standard Unicode
- 14:47MySQL Ad-Hoc Charset
- 15:22PGSQL Unicode
- 16:04Oracle Q String
- 17:17Expressions!
- 18:28Side Note: "IN" lists
- 19:53What's Next?
