Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?i:(?:,.*?[)\da-f\"'`][\"'`](?:[\"'`].*?[\"'`]|\Z|[^\"'`]+))|(?:\Wselect.+\W*?from)|((?:select|create|rename|truncate|load|alter|delete|update|insert|desc)\s*?\(\s*?space\s*?\())
/
g

Description

Pattern from https://raw.githubusercontent.com/SpiderLabs/owasp-modsecurity-crs/v3.0/master/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf

Submitted by anonymous - 7 years ago