HEX
Server: nginx/1.28.0
System: Linux w3c-2 6.8.0-78-generic #78-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 12 11:34:18 UTC 2025 x86_64
User: inpa_co_1 (1082)
PHP: 8.3.29
Disabled: NONE
Upload Files
File: //etc/modsecurity.d/owasp/regex-assembly/942450.ra
##! Please refer to the documentation at
##! https://coreruleset.org/docs/development/regex_assembly/.

##! Rule 942450: SQL Bin / Hex Evasion Methods
##!
##! Detects SQL hex and binary encoding used to evade detection:
##!   - 0x hex prefix (e.g., 0xf00d)
##!   - x'...' hex string literal (MySQL/SQLite)
##!   - b'...' binary string literal (MySQL)

##!+ i

##! hex encoding: 0x followed by 3+ hex digits (word boundary anchored)
\b0x[a-f\d]{3,}

##! MySQL/SQLite hex string literal: x'...'
x'[a-f\d]{3,}'

##! MySQL binary string literal: b'...' (10+ binary digits)
b'[0-1]{10,}'