Security
@rxpatterns are compiled with DOTALL, closing a newline evasion. The engine wrapped every@rxpattern as~...~u, so.did not match a line break, while ModSecurity v2, libmodsecurity v3 and Coraza all compile@rxwith DOTALL and the CRS patterns are written for it. A single%0ainside a payload split any.*-style span and evaded the rule:?id=1 and sleep(%0a5)passed the defaultPresets::blocklist()while?id=1 and sleep(5)was blocked (942160). Re-running the shipped rule payloads with a newline inserted at every offset, 44 rules lost their match where a space at the same offset kept it; after the fix 41 of them match and the remaining 3 (932310, 933160, 942400) are patterns that deliberately require a literal space or treat the line break as a comment terminator. Patterns are now compiled with thesumodifiers (RegexEvaluator::PATTERN_MODIFIERS).$semantics are unchanged: it still matches before one trailing newline (PCRE default, as in libmodsecurity v3 and Coraza; ModSecurity v2'sPCRE_DOLLAR_ENDONLYis not adopted because every shipped rule is a positive match and it would let a trailing%0aevade end-anchored rules such as 931120 and 942220), and^/$stay non-multiline. Name patterns in target selectors (ARGS:/.../,!ARGS_NAMES:/.../,excludeTarget('ARGS:/^utm_/')) gain thesmodifier as well, as in ModSecurity. The compiled-data cache artifact stores bare@rxarguments, never delimited patterns, so existing artifacts pick up the new modifiers without a rebuild; no schema bump is needed. Effective immediately against the bundled rules.
Released together with the other Phirewall packages, see the release in flowd/phirewall-src. This repository is a read-only mirror.