Skip to content

Latest commit

 

History

History
2049 lines (1795 loc) · 128 KB

CHANGES.md

File metadata and controls

2049 lines (1795 loc) · 128 KB

OWASP CRS CHANGES

Report Bugs/Issues to GitHub Issues Tracker or the mailinglist

Nightly builds

New changelog entries are written to .changes-pending.md. They will be moved to the main changelog before a release.

Version 4.3.0 - 2024-05-24

🆕 New features and detections 🎉

  • feat: catch Java PostgreSQL errors (951240 PL1) by @azurit in #3686
  • feat: block The Mysterious Mozlila User Agent bot (913100 PL1) by @brentclark in #3646

🧰 Other Changes

  • fix: Oracle SQL database data leakage FP (951120 PL1) by @azurit in #3685
  • fix: typos in 920330 and 942280 tests by @TimDiam0nd in #3688
  • test: change pl-1 to pl1 to be inline with others by @TimDiam0nd in #3690
  • feat: use renovate to update docker-compose by @theseion in #3697
  • fix: FP for sched (932235 PL1, 932236 PL2, 932237 PL3, 932239 PL2, … by @theseion in #3701
  • fix: collections not being initialized without User-Agent header by @azurit in #3645
  • feat: refactoring of rule 941310 (PL1 941310) by @azurit in #3700
  • fix: resolving more FPs with Oracle error messages (951120 PL1) by @azurit in #3703
  • fix: removing double t:urlDecodeUni (920221 PL1, 920440 PL1, 932200 PL2, 932205 PL2, 932206 PL2) by @azurit in #3699
  • fix: false positives from PHP config directives and functions (933120 PL1, 933151 PL2) by @ssigwart in #3638
  • feat: prevent detection of web shells rules as malware by Windows Defender (955260 PL1) by @azurit in #3687
  • fix: fp with name axel by removing it from rce rule (932260 PL1) by @franbuehler in #3705

Version 4.2.0 - 2024-04-23

Changes with direct rule impact (sorted by lowest rule ID per change where available):

  • fix: increase length of Accept-Encoding header from 50 to 100 (920520 PL1) (Franziska Bühler) [#3661]
  • fix: add missing roundcube files (930120 PL1, 930121 PL2, 930130 PL1, 932180 PL1) (Esad Cetiner) [#3635]
  • fix: add visudo and cscli to unix-shell.data (932160 PL1, 932161 PL2) (Esad Cetiner) [#3663]
  • feat: block crowdsec cscli and visudo commands (932235 PL1, 932236 PL2, 932237 PL3, 932239 PL2, 932260 PL1) (Esad Cetiner) [#3649]
  • fix: add detection for php evasion attempt (933100 PL1) (Franziska Bühler) [#3667]

Changes without direct rule impact:

  • feat: disassemble php rule (933100 PL1) (Franziska Bühler) [#3662]
  • chore: remove references to nonexistant 942110 rule (Esad Cetiner) [#3648]

Version 4.1.0 - 2024-03-21

Changes with direct rule impact (sorted by lowest rule ID per change where available):

  • feat: add support for additional ansible and chef commands (932160 PL1, 932161 PL2, 932235 PL1, 932260 PL1, 932236 PL2, 932239 PL2, 932237 PL3) (Esad Cetiner) [#3601]
  • feat: move HTTP header rules to phase 1 (932161 PL2, 932205 PL2, 932206 PL2, 932237 PL3) (Esad Cetiner) [#3570]
  • fix: remove t:lowercase from rules that use '(?i)' modifier in their regex (942150 PL2, 942151 PL1, 942152 PL2) (Ervin Hegedus) [#3585]
  • fix: prevent FPs against names due to "cron" (932260 PL1, 932236 PL2, 932237 PL3, 932239 PL2) (@superlgn) [#3578]
  • fix: add missing tags and ver action (various rules) (Jozef Sudolský) [#3571]
  • fix: adding more missing tags and ver actions (Jozef Sudolský) [#3593]
  • fix: do not check URL fragments in referer headers as part of the existing rule to prevent FPs (932205 PL2) (Max Leske) [#3485]
  • fix: range expressions must not start with \v (various rules) (Max Leske) [#3615]

Changes without direct rule impact:

  • feat: add check for combinations of t:lowercase and (?i) to lint (Franziska Bühler) [#3584]
  • chore: add Esad Cetiner to list of developers (@EsadCetiner) [#3589]
  • chore(deps): update workflow actions (Max Leske) [#3613]
  • test: change HTTP method to uppercase for test 932260-28 (Matteo Pace) [#3580]

Version 4.0.0 - 2024-02-14

Important changes:

  • feat: introduce plugin architecture for extending CRS and minimizing attack surface. (Christian Folini, Max Leske, Jozef Sudolský, Andrew Howe) [#2038, #2448, #2404]
  • feat: migrate application exclusions and less-used functionality to plugins (Christian Folini, Max Leske, Jozef Sudolský, Andrew Howe)
  • feat: introduce early blocking option (Christian Folini) [#1955]
  • feat: introduce new rule file/category to detect use of common web shells in responses (955100-955340 PL1, 955350 PL2) (Jozef Sudolský, Andrea Menin) [#1962, #2039, #2116]
  • feat: rename 'Node.js' category to 'generic' (Felipe Zipitría) [#2340]
  • feat: make all formerly PCRE-only regular expressions compatible with RE2/Hyperscan regular expression engines (Max Leske, Felipe Zipitría, Allan Boll, Franziska Bühler) [#1868, #2356, #2425, #2426, #2371, #2372]
  • feat: add support for HTTP/3 (Jozef Sudolský) [#3218]
  • feat: add granular control over reporting levels in 9801xx rules (Simon Studer, Andrew Howe, Christian Folini) [#2482, #2488]
  • feat: add new rule to explicitly detect multiple Content-Type abuse (CVE-2023-38199) (920620 PL1) (Andrea Menin) [#3237]
  • feat: add enable_default_collections flag to not initialize collections by default (Matteo Pace) [#3141]
  • feat: extend definition of restricted headers to include Content-Encoding and Accept-Charset by default (920450 PL1, 920451 PL2) (Walter Hop) [#2780, #2782]
  • feat: drop HTTP/0.9 support to resolve FP (Federico G. Schwindt) [#1966]
  • fix: refactor and rename anomaly scoring variables and paranoia level definition (Simon Studer) [#2417]
  • tests: complete goal of 100% test coverage for rules (entire team, Juan-Pablo Tosso, NiceYouKnow)
  • feat: switch to using WordNet instead of spell for finding English words in spell.sh (Max Leske) [#3242]
  • feat: publish nightly packages regularly (Felipe Zipitría) [#2207]

Tool changes:

  • feat: extend spell.sh script with an opt-in manual list of common and partial words. (Matteo Pace) [#3273]
  • feat: rework spell.sh utility to help with detection of false positives English words (Andrea Menin) [#3029]
  • feat: improve usability of spell.sh utility (Max Leske) [#3238]
  • feat: extend rules-check.py script to better enforce rule format in project guidelines (Ervin Hegedus) [#3113]
  • feat: extend rules-check.py script to ensure that auditLogParts is only used in last chained rule (Ervin Hegedus) [#2609]
  • feat: extend rules-check.py script to ensure that rules use @rx operator explicitly (Ervin Hegedus) [#2541]
  • feat: extend rules-check.py script to strip comments when parsing crs-setup.conf.example (Ervin Hegedus) [#3161]
  • feat: add utility to change version numbers (Ervin Hegedus) [#2085]
  • feat: add utility script to find rules without tests (Ervin Hegedus) [#2279]
  • feat: add crs-rules-check tool that runs sanity checks against rules (Ervin Hegedus) [#2236]
  • feat: add utility to find longest data lengths (Ervin Hegedus) [#2277]
  • feat: improve rule-ctl script to modify rules (Max Leske) [#2193]
  • feat: improve unique ID matching and documentation in send-payload-pls.sh (Manuel Spartan) [#2288]
  • feat: unify regexp utils to automate error-prone actions and automatically update rules from regular expression sources (Max Leske) [#2149, #2223, #2423, #2495, #2489, #2473]
  • fix: adjust log directories needed for volume mounts to Git (Max Leske) [#2103]
  • fix: replace backend docker container for tests to fix JSON Unicode reflection (Max Leske) [#3464]
  • feat: add new test method: check for tags on rules against allowlist (Ervin Hegedus) [#3437]

Changes with direct rule impact (sorted by lowest rule ID per change where available):

  • feat: add placeholder files for new plugin architecture (Walter Hop) [#2515]
  • feat: check initialization and use for all TX variables (Ervin Hegedus) [#3043]
  • feat: extend rule to detect restricted method override headers (Mark Zeman / KramNamez) [#3056]
  • feat: extend rules to detect keyword time as prefix of *nix and Windows RCE rules (rules later replaced) (Franziska Bühler) [#2819]
  • feat: improve Unix shell evasion prefix (various rules) (Jitendra Patro, Max Leske) [#3518]
  • feat: improve performance by removing unnecessary lowercase transformations (various rules) (Jozef Sudolský) [#2106]
  • feat: add additional prefix commands to 'unix-shell-evasion-prefix' (various rules) (Jitendra Patro) [#3557
  • feat: consolidate 'unix-evasion-prefix*' files to ensure they don't diverge (various rules) (Franziska Bühler, Max Leske, Andrew Howe) [#3531]
  • feat: move regexp-assemble data files to root directory (Felipe Zipitría) [#3002]
  • feat: move rules to the earliest phase possible based on their inputs (various rules) (Ervin Hegedus) [#1941]
  • feat: remove superfluous 'urlDecodeUni' transformations (various rules) (Federico G. Schwindt) [#1845]
  • feat: rename 'tx.blocking_early' to 'tx.early_blocking' (various rules) (Christian Folini) [#2414]
  • feat: simplify regular expressions by replacing upper-case with lower-case matches if the expression is case-insensitive (various rules) (Felipe Zipitría) [#2485]
  • feat: remove SecCollectionTimeout from crs-setup.conf (Christian Folini) [#3559]
  • fix: do not log 'MATCHED_VAR' when the it contains the full response body (various rules) (Jozef Sudolský) [#1985]
  • fix: do not unnecessarily escape forward slashes in regular expressions (various rules) (Federico G. Schwindt) [#1842]
  • fix: reformat several initialization rules to follow project guidelines (Ervin Hegedus) [#3157]
  • fix: remove auditLogParts actions from all rules where present (Andrea Menin, Ervin Hegedus) [#3034, #3081]
  • fix: remove uncommon Content Types from default in crs-setup.conf.example (Andrea Menin) [#2768]
  • fix: update diverse rules to follow new naming convention with paranoia level TX variables (Christoph Hansen) [#2937]
  • fix: update various rules to consolidate use of backslashes to \x5c representation for better compatibility with known WAF engines (various rules) (Andrew Howe, Max Leske) [#2335, #2345, #2375, #2376, #2399, #2400, #2402, #2410, #2420, #2441, #2442, #2454, #2426]
  • fix: remove initialization rules for redundant IP reputation variables (901150, 901152) (Andrew Howe) [#2833]
  • fix: initialize all variables used properly (901169) (Ervin Hegedus) [#2802]
  • feat: improve sampling mode efficiency (901410, 901420, 901440) (Paul Beckett) [#2094]
  • fix: replace uses of 'ctl:ruleEngine=Off' with "ctl:ruleRemoveByTag=OWASP_CRS" to accomodate more than one ruleset (901450, 905100, 905110) (Jozef Sudolský) [#2156]
  • feat: remove old, commented-out IP reputation check rule (910110 PL1) (Paul Beckett) [#2148]
  • feat: detect 'burpcollaborator' scanner (913100 PL1) (Amir Hosein Aliakbarian) [#2152]
  • feat: detect 'httpx' scanner (913100 PL1) (Will Woodson) [#2045]
  • feat: detect 'LeakIX' scanner (913100 PL1) (Jozef Sudolský) [#1961]
  • feat: detect 'QQGameHall' malware (913100 PL1) (Walter Hop) [#2144]
  • feat: detect User-Agent of Tsunami Security Scanner (913100 PL1) (@hoexter) [#3480]
  • fix: avoid FP for YAM package manager (913100 PL1) (Jozef Sudolský) [#2022]
  • fix: move 'ecairn' from scanners to crawlers (913100 PL1) (Felipe Zipitría) [#2408]
  • feat: detect 'CensysInspect' and seoscanners.net crawlers (913102 PL2) (Andrew Howe) [#2155]
  • feat: detect 'ecairn' crawler (913102 PL2) (Jozef Sudolský) [#2024]
  • feat: detect 'Krzana' bot (913102 PL2) (Deepshikha Sinha) [#2432]
  • fix: remove rule to detect security scanner http headers (913110 PL1) (Christian Folini) [#3241]
  • feat: remove ineffective anti-scanner list scanners-urls.data and associated rule (913120 PL1) (Christian Folini) [#3235]
  • fix: correct the regular expression assembly (920120 PL1) (Max Leske) [#2333]
  • feat: increase rule score from warning to critial (920220 PL1) (Max Leske) [#3512]
  • fix: reduce FPs by handling the last path segment separately in new rule (920220 PL1, 920221 PL1) (Max Leske) [#3512]
  • fix: reduce FPs by matching on decoded variables (920220 PL1) (Max Leske) [#3512]
  • feat: prevent FPs by moving rule to higher PL (920240 PL2) (Max Leske) [#3506]
  • feat: valiadate 'SEC-CH-UA' and 'SEC-CH-UA-MOBILE' request headers (920274 PL4) (Chaim Sanders) [#1970]
  • fix: use the right kind of validation for 'Sec-CH-UA' and 'Sec-CH-UA-Mobile' request headers (920274 PL4, 920275 PL4) (somechris) [#2028]
  • fix: make validatioin of 'Sec-Fetch-User' header more strict (920275 PL4) (somechris) [#2020]
  • feat: move rule from PL2 to PL3 (920300 PL3) (Franziska Bühler) [#2013]
  • fix: amend rule to exclude CONNECT requests from requiring an Accept header (920300 PL3) (Andrew Howe) [#2297]
  • feat: add IPv6 to the 'Host header is a numeric IP address' check (920350 PL1) (itsTheFae, Ervin Hegedus, Jozef Sudolský) [#1929]
  • fix: avoid FP on '.axd' in restricted extensions, these are public (920440 PL1) (Jozef Sudolský) [#1925]
  • feat: rework restricted headers mechanism into two separate lists (920450 PL1, 920451 PL2) (Andrew Howe) [#3152]
  • fix: avoid FP in 'application/*+json' Content-Type (920470 PL1) (Mirko Dziadzka, Walter Hop) [#2455]
  • fix: avoid FP in CalDAV Content-Type (920470 PL1) (Vandan Rohatgi) [#2505]
  • fix: avoid FP in 'Content-Type' header with '#' character (920470 PL1) (Jozef Sudolský) [#1856]
  • fix: avoid FP on 'version' string in Content-Type header (920470 PL1) (Jozef Sudolský) [#1901]
  • fix: resolve false negative when matching against allowed charsets variable (920480 PL1) (katef, Federico G. Schwindt) [#1957]
  • fix: replace unnecessary capture groups in regular expressions with non-capturing groups (920510 PL3, 932200 PL2, 942510 PL2, 942511 PL3) (Federico G. Schwindt) [#1983]
  • feat: improve explanatory rule comments (920520 PL1) (Max Leske) [#2391]
  • feat: validate 'Accept-Encoding' header (920520 PL1, 920521 PL3) (Franziska Bühler) [#2357]
  • feat: new rule detect multiple occurrences of charset keyword in content type header (920530 PL1) (Jan Gora / terjanq) [#2571]
  • feat: new rule to detect Unicode character bypass check for non JSON requests (920540 PL1) (Franziska Bühler, 0SPwn) [#2512]
  • feat: new rule to detect # char in URIs (920610 PL1) (Karel Knibbe) [#2919]
  • fix: use correct anomaly scoring variables and paranoia level tags across several rules (921170 PL1, 921220 PL4, 932220 PL2, 932331 PL3, 933211 PL3, 934101 PL1, 942362 PL2, 951100) (Christoph Hansen) [#2931]
  • feat: new rules to detect HTTP parameter pollution bypasses (921210 PL3, 921220 PL4) (Christian Folini) [#2747]
  • fix: use correct anomaly scoring variables and paranoia level tags across several rules (921220 PL4, 932101 PL2, 932331 PL3, 933211 PL3, 942362 PL2) (Ervin Hegedus) [#2832]
  • feat: new rule to detect range header that is now forbidden on PL3 and up (921230 PL3) (Christian Folini) [#2760]
  • feat: new rule to detect mod_proxy attack (CVE-2021-40438) (921240 PL1) (Franziska Bühler) [#2818]
  • fix: add urlDecodeUni transformation rules with REQUEST_URI / REQUEST_BASENAME in phase 1 (921240 PL1, 920440 PL1, 920201 PL2, 920202 PL4) (Christian Folini) [#3411]
  • feat: new rules to detecting ModSecurity body processor confusion using the Content-Type HTTP header (921421 PL1, 921422 PL2) (Simon Studer, Ervin Hegedus) [#2763]
  • fix: handle false positives when detecting ModSecurity body processor confusion (921422 PL2) (Ervin Hegedus) [#2784]
  • feat: new rules detecting attacks on multipart headers (922100 PL1, 922110 PL1, 922120 PL1) (Felipe Zipitría) [#2769]
  • fix: prevent unintended match of character set substrings in multipart/form-data requests (922100 PL1) (Jozef Sudolský) [#3470]
  • feat: remove redundant t:lowercase for a little performance (922110 PL1) (Jozef Sudolský) [#3469]
  • fix: remove possessive quantifiers (922110 PL1) (Felipe Zipitría) [#2989]
  • fix: update comments (922110 PL1, 942440 PL2) (Jozef Sudolský) [#3468]
  • fix: add missing quotes at the end of action lists (930050) (Ervin Hegedus) [#2184]
  • feat: disassemble regular expression (930100 PL1) (Andrew Howe) [#2298]
  • fix: detect path traversal in uploaded file names (930100 PL1, 930110 PL1) (k4n5ha0, Franziska Bühler, Felipe Zipitría) [#2451]
  • fix: detect triple dot path traversal (930100 PL1, 930110 PL1) (Franziska Bühler) [#2309, #2310]
  • feat: extended rule to detect Tomcat specific path traversal attack (930110 PL1) (Christoph Hansen) [#2915]
  • fix: avoid FP for '..' without slashes (930110 PL1) (Tetrik, Walter Hop) [#2016]
  • feat: block access to AWS CLI files (930120 PL1, 930121 PL2) (Jozef Sudolský) [#2439]
  • feat: block access to extended list of sensitive files (930120 PL1, 930121 PL2, 930130 PL1) (Jozef Sudolský) [#1960]
  • feat: detect /proc and /sys access attempts (930120 PL1, 930130 PL1) (Andrew Howe) [#2154]
  • feat: extend rule to detect access attempts to /tmp/ (930120 PL1, 930121 PL2) (Max Leske) [#3131]
  • feat: extend rule to detect ECDSA type SSH identity files via list of sensitive *nix files (930120 PL1) (Pinaki Mondal / 0xInfection) [#2586]
  • fix: avoid detecting Google OAuth2 callback requests as malicious (930120 PL1, 930121 PL1) (Jozef Sudolský, Christian Folini) [#1958]
  • feat: extend rule to detect additional sensitive files on *nix systems (930121 PL2, 930130 PL1) (Gwendal Le Coguic / gwen001) [#2560]
  • feat: new rules to detect LFI and SQLi in user-agent and referer request headers (930121 PL2, 942152 PL2, 942321 PL2) (Franziska Bühler, Max Leske, Shivam Bathla) [#3102]
  • fix: extend rule to detect more LFI (930121 PL2) (Felipe Zipitría) [#2791]
  • feat: add BlockCypher.log to restricted-files.data (930130 PL1) (Jozef Sudolský) [#3501]
  • feat: add 'sslvpn_websession' to restricted-files.data (930130 PL1) (Jozef Sudolský) [#2338]
  • feat: add .vscode to restricted-files.data (930130 PL1) (Frederik Himpe) [#3471]
  • feat: extend data file to include additional restricted file names (restricted-files.data, 930130 PL1) (Jitendra Patro) [#3219]
  • feat: extend data file to include PrestaShop configuration file (restricted-files.data, 930130 PL1) (Jean-François Viguier) [#3192]
  • feat: extend rule to detect npm-shrinkwrap.json to restricted-files (930130 PL1) (Esa Jokinen / oh2fih) [#2627]
  • fix: block access to the Java-related WEB-INF directory (930130 PL1) (Jozef Sudolský) [#2092]
  • fix: remove duplicate keyword (930130 PL1) (Jozef Sudolský) [#3517]
  • feat: extend rules to detect additional protocols in RFI attacks (931130 PL2, 934120 PL2) (Karel Knibbe) [#2572]
  • feat: extend rule to detect url:file: schema in Java RFI attacks (931130 PL2) (Andrew Howe) [#2727]
  • fix: add local_file scheme from Python 2 (931130 PL2, 934120 PL2) (Felipe Zipitría) [#2809]
  • fix: close userinfo-based bypass (931130 PL2) (Andrea Menin) [#2479]
  • feat: new rule to detect path traversal attacks using URL encoded URL schemes in Java applications (931131 PL2) (Christoph Hansen) [#2902]
  • feat: extend rule to detect additional *nix shell commands (931160 PL1) (Gwendal Le Coguic / gwen001) [#2563]
  • feat: disassemble complex regexes for 932xxx rules that were subsequently replaced by other rules (Max Leske) [#2566]
  • feat: detect additional Unix RCE commands (932100 PL1, 932105 PL1) (Felipe Zipitría) [#2129]
  • feat: extend rule to detect additional entries to *nix command lists (932100 PL1, 932105 PL1) (Finn Westendorf / wfinn) [#2552]
  • feat: extend rule to detect additional *nix commands (932100 PL1) (Felipe Zipitría) [#2676]
  • feat: improve and extend cmdline processor to find more evasions (932100 PL1, 932105 PL1, 932230 PL1, 932150 PL1, 932175 PL1, 932220 PL2, 932240 PL1, 932106 PL3) (Felipe Zipitría) [#2907]
  • fix: avoid false positive with certain HTML character entities (932100 PL1) (Franziska Bühler) [#1954]
  • feat: move *nix command injection rule 932101, 932106 into the same range as the other *nix command injection rules (932231 PL2, 932232 PL3) (Felipe Zipitría, Max Leske) [#3092]
  • feat: extend rule to detect additional *nix commands (932105 PL1) (Felipe Zipitría) [#2677]
  • feat: extend rule to detect mshta in Windows shell commands (932110 PL1) (Somdev Sangwan / s0md3v) [#2588]
  • feat: new Windows commands rules based on lolbas-project replacing 932110, 932115 (932370 PL1, 932380 PL1) (Felipe Zipitría, Franziska Bühler, Max Leske) [#3059, 3170]
  • fix: avoid false positive on 'sort' (932115 PL1) (Franziska Bühler) [#2012]
  • feat: detect 'Invoke-WebRequest' command (932120 PL1) (Paul Beckett) [#2271]
  • feat: extend rule to detect additional PowerShell cmdlet on Windows (932120 PL1) (Pinaki Mondal / 0xInfection) [#2589]
  • feat: extend rule to detect PowerShell RCEs better via new automation (932120 PL1) (Felipe Zipitría) [#2669]
  • feat: new rule to detect Windows cmdlet aliases (932125 PL1) (Pinaki Mondal / 0xInfection) [#2589]
  • fix: extend rule to detect character class *nix expressions (932130 PL1) (Somdev Sangwan / s0md3v, Walter Hop) [#2594]
  • feat: new rules to detect Log4j / Log4Shell attacks (932131 PL2, 944150 PL1, 944151 PL2, 944152 PL4) (Christian Folini, Max Leske) [#2349]
  • fix: prevent false positives against brackets in User-Agent header (932131 PL2) (Max Leske) [#3486]
  • feat: extend rule to detect busybox, $SHELL, and ${SHELL} in *nix RCE attacks (932150 PL1) (Walter Hop) [#2728]
  • feat: extend rule to detect C99 and printf utilities (932150 PL1) (Karel Knibbe) [#2569]
  • feat: extend rule to detect ksh in *nix RCE attacks (932150 PL1) (Andrew Howe) [#2721]
  • feat: extend rule to detect RCE attacks using compression utilities (932150 PL1) (Andrew Howe) [#2712]
  • feat: extend rule to detect RCEs using Base64 evasions (932150 PL1) (Somdev Sangwan / s0md3v, Andrew Howe) [#2590]
  • feat: extend rule to detect RCEs using evasions quotes with python... commands (932150 PL1) (Somdev Sangwan / s0md3v, Andrew Howe) [#2590]
  • feat: new rule to detect generalised *nix RCE (932150 PL2) (Karel Knibbe) [#2583]
  • feat: replace *nix command injection rules 932150 PL1, 932151 PL1 with new rules for commands of less than 4 characters and commands of more than 4 characters in length respectively (932250 PL1, 932260 PL1) (Felipe Zipitría, Max Leske) [#3092]
  • fix: avoid FP on 'time' and 'ping' keywords (932150 PL1) (Walter Hop) [#2457]
  • feat: extend rule to detect RCE better via automation (932160 PL1) (Felipe Zipitría) [#2662]
  • fix: remove unnecessary prefixes from paths in unix-shell.data (932160 PL1) (Felipe Zipitría) [#2662]
  • feat: extend rule to detect expre in unix-shell list (932161 PL2) (Felipe Zipitría) [#2667]
  • feat: new rules to detect *nix commands in user-agent and referer request headers (932161 PL2, 932237 PL3) (Franziska Bühler, Max Leske, Shivam Bathla) [#3132]
  • feat: new rule detecting alias builtin (932175 PL1) (Felipe Zipitría) [#2796]
  • feat: use new automation to generate restricted-uploads.data from restricted-files.data (932180 PL1) (Max Leske) [#3282]
  • fix: use correct anomaly scoring variable (932180 PL1, 932200 PL2) (Jozef Sudolský) [#2324]
  • feat: detect RCE attempts with uninitialized shell vars (932200 PL2) (Andrea Menin) [#2151]
  • feat: extend rule to detect RCE in user-agent request header (932200 PL2) (Franziska Bühler, Shivam Bathla) [#3108]
  • feat: reduce FPs by removing User-Agent from individual target list (932200 PL2) (Max Leske) [#3489]
  • fix: generate correct log entries when using 'MATCHED_VAR_NAME' in conjunction with chain rules (932200 PL2, 933120 PL1, 933151 PL2) (Jozef Sudolský) [#2347]
  • fix: new rules to handle referer header and fix false positive (932205 PL2, 932206 PL2) (Max Leske) [#3300]
  • feat: extend rule to detect quote evasion (932210 PL2) (Max Leske) [#3120]
  • feat: extend rule to detect sh (932210 PL2) (Franziska Bühler) [#2816]
  • feat: extend rule to detect SQLi via automation of keyword list updates (932210 PL2) (Felipe Zipitría) [#2801]
  • feat: new rule to detect SQLite system command injection (932210 PL2) (flo405, Andrea Menin, Christian Folini) [#2032]
  • fix: add word boundaries for sh in RCE rules (932230 PL1, 932250 PL1) (Max Leske) [#3186]
  • fix: avoid FPs in RCE detections against words 'environment' and 'performance' (932230 PL1, 932235 PL1, 932260 PL1, 932236 PL2, 932237 PL3, 932239 PL2) (Esad Cetiner) [#3477]
  • fix: handle false positive against sh in *nix command injection attacks (932230 PL1, 932250 PL1, 932236 PL2) (Max Leske) [#3186]
  • feat: add unix commands pyversions and py3versions (932235 PL1, 932260 PL1, 932236 PL2, 932237 PL3, 932239 PL2) (Jitendra Patro) [#3465]
  • feat: replace *-with-params.ra files with suffix replacements (932235 PL1, 932236 PL2, 932239 PL2, 932237 PL3) (Max Leske) [#3331]
  • fix: prevent FP on keywords 'more' and 'time' in Unix RCE (932235 PL1) (Franziska Bühler) [#3488]
  • fix: reduce FPs at the start of strings by excluding 'as' and 'at' (932236 PL2) (Franziska Bühler, Max Leske, Andrew Howe) [#3531
  • fix: prevent FPs against names due to "axel" and "perl" (932235 PL1, 932260 PL1, 932236 PL2, 932239 PL2, 932237 PL3) (@superlgn) [#3492]
  • fix: add whitespace after keywords mail and task to solve false positives (932236 PL2) (Franziska Bühler) [#3274]
  • fix: align unix-shell-upto3* files (932236 PL2) (Max Leske) [#3128]
  • fix: handle false positives with word "settings" (932236 PL2, 932237 PL3, 932239 PL2) (Esad Cetiner) [#3394]
  • fix: prevent FP on keywords more and time in Unix RCE (932236 PL2) (Franziska Bühler) [#3487]
  • fix: solved false positives with creation of word boundaries for commonly used words used in *nix RCE rules (932236 PL2) (Max Leske) [#3187]
  • fix: use correct anomaly scoring variable (932236 PL2) (Ervin Hegedus) [#3112]
  • fix: improve rule by matching non-word-boundary of commands with options (932237 PL3) (Max Leske) [#3425]
  • feat: new rule to detect *nix commands in user-agent and referer request headers (932239 PL2) (Franziska Bühler, Shivam Bathla) [#3104, #3318]
  • fix: reduce FPs in generic quote evasion detection (932240 PL2) (Max Leske) [#3494]
  • fix: remove ARGS_NAME from target variables in (932240 PL2) (Andrea Menin) [#2960]
  • fix: use correct anomaly scoring variables and paranoia level tags across for rule (932240 PL2) (Ervin Hegedus) [#2963]
  • fix: false positives by requiring specific tokens to follow commands (932250 PL1) (Max Leske) [#3186]
  • fix: Added missing target name to logdata (932260 PL1, 932240 PL2) (Ervin Hegedus) [#3409]
  • fix: remove chained rule (932260 PL1) (Max Leske) [#3521]
  • feat: new rules to detect email protocol attacks (932300 PL2, 932310 PL2, 932320 PL2) (Felipe Zipitría) [#2322]
  • fix: remove additional range expression that cause parsing errors for RE2 (932311 PL3) (Felipe Zipitría) [#2484]
  • feat: new rules to detect detecting *nix shell history invocations (932330 PL1, 932331 PL3) (Karel Knibbe) [#2577]
  • fix: remove 'time' prefix from Windows RCE detection (932370 PL1, 932380 PL1) (Max Leske) [#3528]
  • feat: extend rule to detect additional file extensions via list of executable PHP files (933110) (Jan Gora / terjanq) [#2585]
  • feat: extend data file to add missing PHP config directives (php-config-directives.data, 933120 PL1) (Max Leske) [#3028]
  • feat: extend rule to detect additional sensitive PHP directives (933120 PL1) (Gwendal Le Coguic / gwen001) [#2561]
  • feat: extend rule to detect PHP config directives via automation of keyword list updates (933120 PL1) (Felipe Zipitría) [#2696]
  • feat: extend rule to detect sensitive PHP variables better (933130 PL1) (Felipe Zipitría) [#2668]
  • tests: clean test definitions and provide proper descriptions (933150 PL1, 933160 PL1) (Andrea Menin, Matteo Pace, Max Leske) [#3462]
  • feat: extend data file to include additional php function names (php-function-names-933151.data, 933151 PL2) (Jitendra Patro) [#3212]
  • feat: automate generation of PHP function dictionaries, revisited detection (933160 PL1, 933161 PL3, 933150 PL1, 933151 PL2) (Juan-Pablo Tosso, Christian Folini, Matteo Pace) [#3273]
  • feat: extend rule to detect document.domain XSS (933160 PL1, 941180 PL1) (Franziska Bühler, 0SPwn) [#2567]
  • feat: extend rule to detect evasions in PHP contexts with " (933160 PL1) (Somdev Sangwan / s0md3v) [#2596]
  • feat: rearrange keywords (933160 PL1, 941390 PL1) (Karel Knibbe) [#2905]
  • fix: handle false positive by fixing whitespace matching after PHP command (933160 PL1) (Max Leske) [#3432]
  • fix: solve ReDoS issue in rule (933161 PL3) (Andrea Menin) [#2302]
  • feat: extend rule to detect bzip2 wrapper in PHP injection attacks (933200 PL1) (Andrew Howe) [#2723]
  • feat: extend rule to detect ssh2.\* wrappers in PHP injection attacks (933200 PL1) (Andrew Howe) [#2731]
  • fix: avoid false positive when cookie contains slash (933210 PL1) (Ervin Hegedus) [#1996]
  • fix: close PHP whitespace bypass (933210 PL1) (Walter Hop) [#2033]
  • fix: prevent excessive backtracking (933210 PL1) (Andrea Menin) [#2214]
  • feat: new rule to detect PHP injection attacks without terminating semi-colon (933211 PL3) (Karel Knibbe) [#2581]
  • feat: extended rule to detect Node.js injection attacks using require and child_process (934100 PL1, 932101 PL2) (Andrea Menin) [#2893]
  • feat: extend rule to detect Node.js RCE better (934100 PL1) (rektor0) [#2578]
  • feat: improve transformation pipeline to detect Base64-encoded evasions (934100 PL1) (Andrew Howe) [#3203]
  • feat: new rule to detect Node.js RCE detection (934101 PL2) (rektor0) [#2578]
  • fix: improve js rule transformation pipelines (934101 PL1, 934130 PL1, 934169 PL1, 934131 PL2) (Andrew Howe) [#3312]
  • feat: extend data file to include additional indicators (ssrf.data, 934110 PL1) (Jitendra Patro) [#3213]
  • feat: extend rule to detect SSRF better (934110 PL1) (Felipe Zipitría) [#2660]
  • feat: new rules to detect common IP-based SSRF targets (934110 PL1, 934120 PL2) (Felipe Zipitría) [#2259]
  • feat: extend rule to detect additional schema and IP evasion techniques in SSRF (934120 PL2) (Felipe Zipitría, Max Leske) [#2599]
  • feat: extend rule to detect octal address of AWS metadata endpoints (934120 PL2) (Karel Knibbe) [#2555]
  • feat: extend rule to detect SSRF better by inspecting targets beyond just ARGS (934120 PL2) (Karel Knibbe) [#2555]
  • feat: new rules to detect JavaScript prototype pollution (934130 PL1, 934131 PL2) (Walter Hop) [#2411]
  • fix: remove base64 transformation due to limited effectiveness and to align behavior across ModSecurity v2.x and libModSecurity v3.x engines (934130 PL1) (Andrea Menin) [#3378]
  • fix: remove overly specific rule with limited benefits and lack of cross-engine compatibility (934131 PL2) (Andrea Menin) [#3378]
  • feat: new rules to detect detection of Perl and Ruby RCE signatures in a generic way (934140 PL2, 934150 PL1) (Karel Knibbe) [#2587]
  • feat: new rule to detect Node DoS attack via expressions resolving to true (934160 PL1) (Karel Knibbe) [#2917]
  • feat: new rule for PHP supporting data: scheme without using // before the content-type (934170 PL1) (Felipe Zipitría) [#3018]
  • feat: extend rules to detect path based XSS via new target REQUEST_FILENAME in 941xxx rules (Walter Hop) [#2894]
  • feat: run libinjection XSS detector on request filename in PL2 (941101 PL2) (Andrew Howe) [#2208]
  • feat: move rule from PL1 to PL2 (941120 PL2) (Christian Folini) [#2306]
  • fix: avoid false positive by adding character limit (941120 PL2) (Christian Folini) [#1872]
  • fix: avoid FP in Base64 content (941120 PL1) (Jozef Sudolský) [#2226]
  • fix: remove unnecessary character escape (941120 PL2) (Andrew Howe) [#2805]
  • fix: avoid FP in XMLNLS (941130 PL1) (Walter Hop) [#2192]
  • fix: solve ReDoS issue in rule (941140 PL1) (Andrea Menin) [#2050]
  • feat: detect 'dialog' tag in XSS no-script payloads (941160 PL1) (Jitendra Patro) [#3473]
  • feat: disassemble complex regex fully (941160 PL1) (Felipe Zipitría) [#2701]
  • fix: make regular expression more restrictive (941170 PL1) (Andrea Menin) [#2292]
  • fix: new rule at PL2 to move the detection of '-->' out of PL1 due to false positives (941181 PL2) (Paul Beckett) [#2082]
  • feat: disassemble complex regex (941210 PL1) (Felipe Zipitría) [#3262]
  • feat: extend rule to detect XSS evasions using carriage return (\r) and new line (\n) characters (941210 PL1) (oct0pus7) [#2576]
  • feat: disassemble complex regex (941220 PL1) (Felipe Zipitría) [#3263]
  • fix: correct numerical values used for HTML entity evasion detection (941220 PL1) (Jitendra Patro) [#3479]
  • fix: avoid false positive with Russian characters (941310 PL1) (Max Leske) [#2107]
  • feat: improve detection by adding missing javascript prompt and confirm methods (941390 PL1) (Jitendra Patro) [#3395]
  • feat: new rule to detect JavaScript methods (941390 PL1) (Franziska Bühler) [#2702]
  • feat: extend rule and moved rule from PL3 to PL2 (942101 PL2) (Matteo Pace) [#2922]
  • feat: extended rule to detect common SQL injection probing in path segments (942110 PL2) (Andrea Menin) [#2914]
  • feat: prevent FPs by removing rule (942110 PL2) (Max Leske) [#3505]
  • feat: add target REQUEST_FILENAME to rule to detect path-based SQLi attacks (942120 PL2) (Andrew Howe) [#3057]
  • feat: extend rule to detect use of collate in SQLite injection attacks (942120 PL2) (Jan Gora / terjanq) [#2584]
  • fix: extend rule to detect more SQLi (942120 PL2) (Karel Knibbe) [#2556]
  • fix: resolve issue with regular expression and improve SQLi detection by detecting 'not between' (942120 PL2) (NiceYouKnow, Max Leske, Franziska Bühler) [#2115]
  • fix: update SQL reserved words (942120 PL2) (Felipe Zipitría) [#2798]
  • feat: extend rule to detect glob in list of SQLi tautologies (942130 PL2) (Franziska Bühler) [#2729]
  • fix: remove unneeded TX variables (942130 PL2, 942131 PL2, 942521 PL3) (Andrea Menin) [#3293]
  • feat: detect more error-based SQL injections (942150 PL2, 951230 PL1) (Jozef Sudolský) [#2429]
  • feat: extend rule to detect more SQL function names (942150 PL2) (Karel Knibbe) [#2895]
  • feat: extend rules to detect more SQL error messages and functions (942151 PL1, 942152 PL1, 951220 PL1, 951230 PL1, 951240 PL1) (Jitendra Patros) [#3336]
  • feat: extend rule to detect additional SQL function signatures (942151 PL1) (Karel Knibbe) [#2570]
  • feat: extend rule to detect endswith, startswith, unistr, pg_client_encoding and various JSON SQL functions (942151 PL1) (Franziska Bühler) [#2874]
  • feat: extend rule to detect various JSON functions (942151 PL1) (Franziska Bühler) [#3041]
  • fix: avoid FP in SQL function names by splitting between PL1/PL2 (942151 PL1, 942150 PL2) (Jozef Sudolský) [#2480]
  • feat: extend rule to detect sql_compileoption_get in SQLite injection attacks (942152 PL1) (Andrew Howe) [#2718]
  • fix: extend blind SQLi detection (942160 PL1) (Franziska Bühler, Christian Folini) [#1956]
  • feat: new regex-assembly file for rule (942170 PL1) (Andrea Menin) [#2939]
  • feat: extend rule to detect SQL injection authentication bypasses (942180 PL2) (rekter0) [#2575]
  • feat: improve SQLi detection with spaces (942190 PL1, 942390 PL2) (Manuel Spartan, Max Leske) [#2436]
  • fix: avoid FP in SQLi by adding word boundary checks (942190 PL1) (Jozef Sudolský) [#2078]
  • fix: avoid FP in SQLi with keyword 'union' (942190 PL1) (Franziska Bühler) [#2058]
  • fix: prevent comment-based SQL evasion (942190 PL1) (Andrea Menin) [#1910]
  • fix: resolve bug in regular expression and add test case (942190 PL1) (NiceYouKnow, Max Leske, Franziska Bühler) [#2112]
  • feat: disassemble complex regex (942200 PL2) (Franziska Bühler, Max Leske) [#2932]
  • feat: extend rule to detect SQLi in user-agent and referer request headers (942200 PL2, 942370 PL2) (Franziska Bühler, Shivam Bathla) [#3106]
  • feat: improve regex-assembly file for rule (942210 PL2) (Andrew Howe) [#2945]
  • fix: detect the correct magic numbers that crash old PHP versions (942220 PL1) (Kyzentun, Walter Hop) [#2010]
  • fix: avoid false positive with 'case' (942230 PL1) (Franziska Bühler) [#2035]
  • fix: detect SQL false negative (942230 PL1) (Max Leske) [#2348]
  • feat: disassemble complex regex (942240 PL1) (Franziska Bühler, Max Leske) [#2938]
  • fix: avoid FP in 'having' SQLi (942251 PL3) (Felipe Zipitría) [#2248]
  • feat: new regex-assembly file for rule (942280 PL1) (Andrea Menin) [#2933]
  • feat: extend rule to detect additional MongoDB operators via NoSQL commands list (942290 PL1) (rekter0) [#2579]
  • feat: new regex-assembly file for rule (942290 PL1) (Andrea Menin) [#2942]
  • feat: improve regex-assembly format (942300 PL2) (Felipe Zipitría) [#3296]
  • fix: avoid false positive by adding word boundary checks (942300 PL2) (Franziska Bühler) [#2099]
  • fix: remove unnecessary part of regular expression (942310 PL2) (NiceYouKnow) [#2189]
  • feat: extend rule to detect ::int and ::bool SQL data conversions (942320 PL1) (Franziska Bühler) [#2872]
  • feat: extend rule to detect lo_get and ::text via PostgreSQL functions list (942320 PL2) (Franziska Bühler, Walter Hop, Shivam Bathla) [#2925]
  • feat: extend rule to detect lo_import and div via PostgreSQL functions list (942320 PL2) (Franziska Bühler, Shivam Bathla) [#2916]
  • feat: extend rule to detect more PostgreSQL data types (942320 PL2) (Franziska Bühler, Shivam Bathla) [#3019]
  • fix: add word boundaries to keywords to solve false positives (942330 PL2) (Franziska Bühler) [#3207]
  • feat: extend rule to detect SQL injection better (942340 PL2) (Karel Knibbe) [#2557]
  • fix: extend rule to detect more SQLi (942340 PL2) (Jan Gora / terjanq) [#2559]
  • feat: detect SQLi using the 'drop' keyword (942350 PL1, 942360 PL1, 942200 PL2, 942362 PL2) (Jozef Sudolský) [#2218]
  • fix: solve ReDoS issue in rule (942350 PL1) (Andrea Menin) [#2300]
  • feat: new regex-assembly file for rule (942370 PL2) (Christoph Hansen, Max Leske) [#2954]
  • feat: detect SQLi with 'if exists' (942380 PL2) (NiceYouKnow) [#2121]
  • feat: optimize regex (942400 PL2) (Jozef Sudolský) [#2323]
  • feat: disassemble complex chained regex (942440 PL2) (Felipe Zipitría) [#3295]
  • feat: optimize regex (942440 PL2) (Felipe Zipitría) [#2459]
  • fix: adapt rule to work in all ModSecurity versions (942440 PL2) (Andrew Howe) [#2201]
  • fix: avoid FP in JWT tokens (942440 PL2) (Andrea Menin) [#2460]
  • fix: reformat rules to follow project guidelines (942440 PL2, 949959, 949159, 959059, 959159) (Ervin Hegedus) [#3206]
  • fix: solve errors in regex pattern (942440 PL2) (Andrea Menin) [#3290]
  • fix: prevent FPs for click identifiers in query string by placing arg specific rule exclusions in rule set (942441, 942442) (Max Leske) [#3500]
  • feat: extend rules to detect current_user and overlay (942470 PL1, 942480 PL2) (Franziska Bühler) [#2875]
  • feat: extended rule to detect detect SQL injection attacks using headers (942480 PL2) (Paul Beckett) [#2911]
  • feat: extend rule to detect newlines in overlay (942480 PL2) (Franziska Bühler, Shivam Bathla) [#3040]
  • fix: detect MySQL optimizer hints (942500 PL1) (Max Leske) [#3431]
  • feat: new rules to detect SQL authentication bypasses (942520 PL2, 942521 PL2, 942522 PL2) (Jan Gora / terjanq) [#2603]
  • feat: extend rule to detect SQLi in user-agent and referer request headers (942521 PL2) (Franziska Bühler, Shivam Bathla) [#3107]
  • fix: replace 'MATCHED_VAR' in 'logdata' argument with stable variable (942521 PL2, 943110 PL1, 943120 PL1) (Ervin Hegedus) [#3543]
  • feat: new rule to detect '; in SQLi (942530 PL3) (Franziska Bühler) [#2808]
  • feat: new rule to detect authentication bypass via SQL injection that abuses semi-colons to end the SQL query (942540 PL1) (Karel Knibbe) [#2904]
  • fix: update scoring variable (942540 PL2) (Walter Hop) [#2970]
  • feat: new rule to detect MySQL scientific notation attacks (942560 PL1) (Jitendra Patro) [#3316]
  • fix: remove unnessecary 'lowercase' transformation from chain rule (944120 PL1) (Federico G. Schwindt) [#1852]
  • feat: extend rule to detect JAVA exploits better via java-classes.data file (944130 PL1) (Dennis Brown) [#3048]
  • feat: new rule to deny uploading .jsp and .jspx files (944140 PL1) (Walter Hop) [#2456]
  • feat: new rule to detect Spring4Shell (944260 PL2) (Christian Folini, Andrea Menin) [#2464]
  • fix: update administrative rule ids for consistent operation (950011, 950012, 950018) (Ervin Hegedus) [#3339]
  • feat: improve rule file 951xxx via the use of skipAfter instead of variable TX:sql_error_match (Jozef Sudolský) [#2754]
  • feat: extend data file to include additional SQL error messages (sql-errors.data, 951100 PL1) (Jitendra Patro) [#3214]
  • fix: avoid FP in MySQL data leakage rule (951230 PL1) (Jozef Sudolský) [#2490]
  • fix: avoid FP in PostgreSQL error messages (951240 PL1) (Jozef Sudolský, Franziska Bühler) [#1870, #2313]
  • fix: handle false positive in SQL error leakage detection (951240 PL1) (Jozef Sudolský) [#3169]
  • fix: avoid FP in Sybase error message (951260 PL1) (Jozef Sudolský) [#2307]
  • feat: extend rule to detect PHP errors better via new automation (953100 PL1) (Felipe Zipitría) [#2663]
  • feat: new rules to detect PHP error leakages with high false positive rates at paranoia level 2 instead of 1 (953100 PL1, 953101 PL2) (Andrea Menin) [#3119]
  • fix: solve false positive by shifting "Field cannot be empty" to PL2 (953100 PL1, 953101 PL2) (Esad Cetiner) [#3407]
  • fix: ignore case of PHP tag in response text (953210 PL1) (Felipe Zipitría) [#2664]
  • feat: extend rule to detect IIS errors via automation of pattern updates (954120 PL1) (Felipe Zipitría) [#2810]
  • fix: log response body to audit log only when full rule chain matches (954130 PL1) (Franziska Bühler) [#2202]
  • feat: added new webshells and tests (955100 PL1) (Jozef Sudolský) [#3405]
  • feat: extend data file to include additional web shells (web-shells-php.data, 955100 PL1) (Jitendra Patro) [#3215]
  • feat: extend data file to include additional web shells (web-shells-php.data, 955100 PL1) (Jozef Sudolský) [#2687]
  • fix: make regular expression more strict to reduce noise in logs (955120 PL1) (Jozef Sudolský) [#2315]
  • fix: use correct variable in chained condition for correlation rules (980120 PL0, 980150 PL0) (Simon Studer) [#1898]

Changes without direct rule impact:

  • chore: improve changelog-pr workflow (Max Leske) [#3416]
  • chore: generate changelog entries with leading space (Max Leske) [#3550]
  • chore: move regexp-assembly to separate directory (Felipe Zipitría) [#2327]
  • chore: parse changelog PR author names from contributors (Max Leske) [#3408]
  • docs: add a note to a commented rule about unsupported action in v3 (Ervin Hegedus) [#2098]
  • docs: add documentation on blocking of archive file extensions that are not blocked by default (Andrew Howe) [#2758]
  • docs: add example exclusion rule for monitoring agents (Andrea Menin) [#2037]
  • docs: add file sponsors.md (Christian Folini) [#2174]
  • docs: add link to run tests (Ervin Hegedus) [#3438]
  • docs: add link to slack invitation to README (Christian Folini) [#2122]
  • docs: add missing PL tags to all rules (Ervin Hegedus) [#1882]
  • docs: add note of lack of rule range support in ModSecv3 (Andrew Howe) [#3303]
  • docs: add to CONTRIBUTING.MD chain rule commenting guidance (Ervin Hegedus) [#3196]
  • docs: align actions in right order (Ervin Hegedus) [#2237]
  • docs: bring CONTRIBUTING.MD in line with documentation (Andrew Howe) [#2558]
  • docs: change documentation git module link to https (İlteriş Eroğlu) [#2461]
  • docs: change-version: fix typo (Deepshikha Sinha) [#2430]
  • docs: contributing.md: add more information for new developers (Andrew Howe) [#2487]
  • docs: crs-setup.conf: add note to allowed_request_content_type settings (Ervin Hegedus) [#2164]
  • docs: enhance installation process for Nginx / IIS (Jozef Sudolský) [#1988]
  • docs: explained to leave audit log settings alone in CONTRIBUTING.md (Christian Folini) [#3090]
  • docs: fix capec id for crawlers (Jozef Sudolský) [#2258]
  • docs: fix changed Trustwave URLs (Elia Pinto, henkworks, Felipe Zipitría) [#2213, #2364, #2204]
  • docs: fix docs for Apache (Jozef Sudolský) [#2238]
  • docs: fix donate URL (Felipe Zipitría) [#2132]
  • docs: fixed minor typo in comment in file rules/restricted-files.data (Homesteady) [#3305]
  • docs: fix NextCloud example comments (Joost de Keijzer) [#2282]
  • docs: fix ruleid typos in comments (Paul Beckett) [#2263]
  • docs: fix stricter sibling comment for SQL Injection () (Stephen Sigwart) [#1913]
  • docs: fix typo in initialization(Elia Pinto) [#2366]
  • docs: fix typo in sampling mode description (Christian Folini) [#2090]
  • docs: fix typos across the entire project as reported by codespell (Ervin Hegedus) [#2519]
  • docs: fix typos in README (Priyam Patel) [#2494]
  • docs: improve changelog organization (Christian Folini) [#3536]
  • docs: missing space after comment mark (Ervin Hegedus) [#2097]
  • docs: update OWASP Slack URL (Jozef Sudolský) [#2056]
  • docs: remove 'log' from rules and let SecDefaultAction decide what to do (Federico G. Schwindt) [#1876]
  • docs: replace terms Blacklist and Whitelist with Deny list and Allow list (Paul Beckett) [#2137]
  • docs: reword comment (900300 config) (Christian Folini) [#3417]
  • docs: reword contributing.md (Christian Folini) [#2077]
  • docs: sync CONTRIBUTING.MD with HTML version (Andrew Howe) [#3301]
  • docs: transferred CHANGES to CHANGES.md (Felipe Zipitría) [#2606]
  • docs: update and tidy CHANGES.md file for v4.0 release (Andrew Howe, Max Leske) [#3540]
  • docs: update CONTRIBUTORS.md for new release (Ervin Hegedus) [#3340]
  • docs: update description of rule 920350 (Christian Folini) [#1952]
  • docs: update documentation hyperlinks on rules (Dexter Chang) [#3232]
  • docs: update links and format of known bugs (Felipe Zipitría) [#2186]
  • docs: update OWASP vulnerability URLs (Walter Hop) [#2467]
  • docs: update policy to include signed releases (Felipe Zipitría) [#2465]
  • docs: update README for Nginx (vijayasija99) [#2158]
  • docs: update SPONSORS.md for new release (Christian Folini) [#3341]
  • docs: remove sponsor F5 / VMWare (Christian Folini) [#3555]
  • feat: add consistent rule references to initialization rule comments (Andrew Howe) [#2813]
  • feat: add editorconfig file to keep spacing in good shape (Felipe Zipitría) [#2407]
  • feat: add timezone variable to docker-compose (Felipe Zipitría) [#1995]
  • fix: indentations (Ervin Hegedus) [#1851]
  • fix: link for docs/OWASP-CRS-Documentation submodule (Ervin Hegedus) [#1885]
  • fix: multiple fixes when generating changelog PR (Max Leske) [#3418], [#3420], [#3422], [#3424] [#3429]
  • fix: nginx logging in docker-compose (Felipe Zipitría) [#2036]
  • fix: remove all whitespace at EOL (Felipe Zipitría) [#2405, #2406]
  • fix: remove full stop from end of log message (920181 PL1) (Federico G. Schwindt) [#2011]
  • fix: yamllint (Felipe Zipitría) [#2387]
  • tests: add a Chrome and Firefox version 100 UA (Mike Taylor) [#2325]
  • tests: add common and uniform http headers to tests (Felipe Zipitría) [#2362]
  • tests: additional tests for use in PHP wrappers in PHP injection attacks (rule 933200 PL1) (Andrew Howe) [#2723]
  • tests: add positive test 920100-16 for rule 920100 PL1 (Andrew Howe) [#2952]
  • tests: add positive test 920190-3 for rule 920190 PL1 (Andrew Howe) [#2956]
  • tests: add positive test 920250-4 for rule 920250 PL1 (Andrew Howe) [#2971]
  • tests: add positive test 920340-3 for rule 920340 PL1 (Andrew Howe) [#2972]
  • tests: add positive test 920470-18 for rule 920470 PL1 (Andrew Howe) [#3058]
  • tests: add positive test 921120-4 for rule 921120 PL1 (Andrew Howe) [#3083]
  • tests: add positive test 921150-2 for rule 921150 PL1 (Andrew Howe) [#3158]
  • tests: add positive test 932160-8 for rule 932160 PL1 (Christian Folini) [#2997]
  • tests: add test against FP when using urlDecode for 932140 (Max Leske) [#2191]
  • tests: add test for rule 941130 PL1 (Paul Beckett) [#2923]
  • tests: add test for rule 941140 PL1 (Franziska Bühler) [#2995]
  • tests: add test for rule 941170 PL1 (Franziska Bühler) [#2994]
  • tests: add test for rule 941200 PL1 (Franziska Bühler) [#2993]
  • tests: add test for rule 941240 PL1 (Franziska Bühler) [#2975]
  • tests: add test for rule 941310 PL1 (Franziska Bühler) [#2974]
  • tests: add test for rule 941400 PL1 (Franziska Bühler) [#2969]
  • tests: add test for rule 942170 PL1 (Franziska Bühler) [#2968]
  • tests: add test for rule 942270 PL1 (Franziska Bühler) [#2967]
  • tests: add test for rule 942350 PL1 (Franziska Bühler) [#2965]
  • tests: add test for rule 942500 PL1 (Franziska Bühler) [#2964]
  • tests: add test for rule 942520 PL2 (Franziska Bühler) [#2706]
  • tests: add test for rule 943100 PL1 (Franziska Bühler) [#2962]
  • tests: add test for sql_compileoption_used detection (rule 942151 PL1) (Andrew Howe) [#2714]
  • tests: add tests for 920120 (Max Leske) [#2369]
  • tests: add tests for 920121, 932150, 932160, 932120, 932130, 921151 (Paul Beckett) [#2264, #2275, #2276, #2272, #2273, #2270]
  • tests: add tests for 920275, 913101, 913102, 920410, 920171, 932190, 932110, 932105 (Ervin Hegedus) [#2021, #2253, #2257, #2294, #2295, #2285, #2286, #2287]
  • tests: add tests for 920341 (Juan-Pablo Tosso) [#2266]
  • tests: add tests for 921180 (Juan-Pablo Tosso, Christian Folini) [#2308]
  • tests: add tests for 932170, 932171, 932106, 932180, 942170, 942251, 942460 (Franziska Bühler) [#2252, #2254, #2255, #2280, #2283, #2284, #2269, #2268]
  • tests: add tests for 933111, 933190, 933200 (NiceYouKnow) [#2281]
  • tests: add tests for FP 921110 request smuggling (Franziska Bühler) [#2102]
  • tests: add tests for rules 942521 and 942522 PL2 (Franziska Bühler) [#2708]
  • tests: add test to prove we cover complex shell variables usage in rule 932230 (Felipe Zipitría) [#2966]
  • tests: clean up quoting (Max Leske) [#2370]
  • tests: deprecate ftw in favor of go-ftw (Felipe Zipitría) [#3076]
  • tests: detection of *nix RCE using multiple variable assignments (932200 PL2) (Christian Folini) [#2899]
  • tests: enable UTF8 encoding validation (Felipe Zipitría) [#2992]
  • tests: extend coverage for rule 932120 (Felipe Zipitría) [#2996]
  • tests: extend coverage for rule 932200 (Felipe Zipitría) [#2950]
  • tests: extend coverage for rule 932220 (Felipe Zipitría) [#3063]
  • tests: fix 933160-21 and 942500-1 due to invalid URI (Takaya Saeki) [#2168]
  • tests: fix duplicated tests for rule 934130 PL1 (Walter Hop) [#2918]
  • tests: fixed end boundary in 932180-2 (Ervin Hegedus) [#2377]
  • tests: fixed URLs tests for rule 932130 PL1 (Matteo Pace) [#2880]
  • tests: fixed URLs tests for rules 934130 PL1 and 934131 PL2 (Matteo Pace) [#3133]
  • tests: fix logging problem for Nginx (vijayasija99) [#2157]
  • tests: fix Python version for tests (Max Leske) [#2247]
  • tests: fix requirements version (nobletrout) [#2004]
  • tests: fix tests lacking charset (Felipe Zipitría) [#1932]
  • tests: fix tests on rule 932200 to detect FPs (Max Leske) [#3309]
  • tests: fix test titles (bxlxx.wu, Ervin Hegedus) [#2504, #2497]
  • tests: fix test using old syntax and add go-ftw check (Felipe Zipitría) [#2715]
  • tests: improve test setup, rewrite of log checker (Max Leske) [#2363]
  • tests: increase tests (920280-3, 920430-3, 920430-9) compatibility with other proxies (Matteo Pace) [#3134]
  • tests: normalized keys in test files (Ervin Hegedus) [#2493]
  • tests: rearranged tests for rule 920340 (Christian Folini) [#3089]
  • tests: rearranged tests for rule 920400 PL1 (Matteo Pace) [#2877]
  • tests: remove Accept-Charset from test files (Felipe Zipitría) [#2781]
  • tests: remove broken test 932100-3 (Felipe Zipitría) [#2165]
  • tests: use only valid YAML (Felipe Zipitría) [#2080]
  • tests: use same user-agent (Felipe Zipitría) [#2393]

Functionality that has been moved to plugins for this release:

  • feat: add Google OAuth 2 exclusion plugin (Jozef Sudolský) [#2388]
  • feat: add phpBB exclusion rules (now a plugin) (Jozef Sudolský) [#1893]
  • feat: add phpMyAdmin exclusion rules (now a plugin) (Jozef Sudolský) [#1951]
  • feat: move IP reputation rules to plugins (Simon Studer) [#2482]
  • feat: move exclusion profiles and DOS rules to plugins (Andrew Howe) [#2469]
  • feat: ownCloud: Fix rule 9003001 to match both DAV and WebDAV (now a plugin) (Abu Dawud) [#2130]
  • fix: nextcloud: fix FPs (now a plugin) (kam821, Jozef Sudolský, ntimo, Felipe Zipitría, pyllyukko) [#1840, #1843, #1847, #1946]
  • fix: phpBB: Fix FPs (now a plugin) (Jozef Sudolský) [#2057, #2180, #2299, #2343]
  • fix: phpMyAdmin: Fix FPs (now a plugin) (Jozef Sudolský) [#2172, #2249, #2321, #2351]
  • fix: replace ARGS by ARGS_GET in rules in phase:1 (various rule exclusion rules) (Ervin Hegedus) [#2063]
  • fix: wordPress: fix FPs (now a plugin) (Jozef Sudolský) [#1899, #1971, #2320]
  • fix: wordPress: fix FPs and improve performance (now a plugin) (Walter Hop) [#1997, #2311]
  • fix: wordPress: fix FPs in Site Health page (now a plugin) (Robert de Boer, Fregf, Walter Hop) [#1895, #1920]
  • fix: xenForo: fix FPs (now a plugin) (Walter Hop, ThanhPT) [#1844, #1865, #1894, #1998, #2421]

Version 3.3.5 - 2023-07-18

Important changes:

  • Backport fix for CVE-2023-38199 from CRS v4 via new rule 920620 (Andrea Menin, Felipe Zipitría)

Fixes:

  • Fix paranoia level-related scoring issue in rule 921422 (Walter Hop)
  • Move auditLogParts actions to the end of chained rules where used (Ervin Hegedus)

Chore:

  • Clean up redundant paranoia level tags (Ervin Hegedus)
  • Clean up YAML test files to support go-ftw testing framework (Felipe Zipitría)
  • Move testing framework from ftw to go-ftw (Felipe Zipitría)

Version 3.3.4 - 2022-09-20

Fixes and improvements:

  • Fix a regression in our former release, with the impact that some Paranoia Level 2 rules would activate even when running in Paranoia Level 1. (Simon Studer, Walter Hop)

Version 3.3.3 - 2022-09-19

Important changes:

  • This update requires ModSecurity version 2.9.6 or 3.0.8 (or an updated version with backports of the security fixes in these versions) or a compatible engine supporting these changes. If you do not upgrade ModSecurity, the file REQUEST-922-MULTIPART-ATTACK.conf will cause ModSecurity to fail to start. In that case, you can temporarily delete that file. However, you will be missing protection from these rules. Therefore, we recommend upgrading your ModSecurity or other engine instead.
  • By default, the request headers "Accept-Charset" and "Content-Encoding" are now blocked to prevent a WAF bypass. Especially the "Accept-Charset" header may be in use by clients. If you need to serve clients that send this header, uncomment and edit rule 900250 in crs-setup.conf.

Fixes and improvements:

  • Fix CVE-2022-39955 Multiple charsets defined in Content-Type header (Jan Gora)
  • Fix CVE-2022-39956 Content-Type or Content-Transfer-Encoding MIME header fields abuse (Jan Gora, Felipe Zipitria)
  • Fix CVE-2022-39957 Charset accept header field resulting in response rule set bypass (Karel Knibbe, Max Leske)
  • Fix CVE-2022-39958 Small range header leading to response rule set bypass (Hussein Daher, Christian Folini)
  • Fix MIME header abuse via charset field (Jan Gora, Felipe Zipitria)
  • Fix bypass using deflated request body (Karel Knibbe)
  • Fix request body partial rule set bypass via Content-Type "text/plain" (Pinaki Mondal, Andrea Menin)
  • Fix XML Body Parser abuse for non-XML request bodies (Jan Gora)
  • Fix body processor bypass by content-type outside the mime type declaration (Jan Gora, Simon Studer, Ervin Hegedus)

Version 3.3.2 - 2021-06-30

Fixes and improvements:

  • Fix CVE-2021-35368 WAF bypass using pathinfo (Christian Folini)

Version 3.3.0 - 2020-07-01

Important changes:

  • The format of crs-setup.conf variable "tx.allowed_request_content_type" has been changed to be more in line with the other variables. If you have overridden this variable, please see the example in crs-setup.conf for the new separator to use.

New functionality:

  • Block backup files ending with ~ in filename (Andrea Menin)
  • Detect ffuf vuln scanner (Will Woodson)
  • Detect Nuclei vuln scanner (azurit)
  • Detect SemrushBot crawler (Christian Folini)
  • Detect WFuzz vuln scanner (azurit)
  • New LDAP injection rule (Christian Folini)
  • New HTTP Splitting rule (Andrea Menin)
  • Add .swp to restricted extensions (Andrea Menin)
  • Allow CloudEvents content types (Bobby Earl)
  • Add CAPEC tags for attack classification (Fernando Outeda, Christian Folini)
  • Detect Unix RCE bypass techniques via uninitialized variables, string concatenations and globbing patterns (Andrea Menin)

Removed functionality:

  • Removed outdated rule tags WASCTC, OWASP_TOP_10, OWASP_AppSensor/RE1, and OWASP_CRS/FOO/BAR; note that tags 'OWASP_CRS' and 'attack-type' are kept. (Christian Folini)

Improved compatibility:

  • Changed variable to lowercase (modsec3 behavior fix) (Ervin Hegedus)

Fixes and improvements:

  • WordPress: Add support for upload image/media in Gutenberg Editor (agusmu)
  • Prevent bypass of rule 921110 (Amit Klein, Franziska Bühler)
  • Prevent bypass of rule 921130 (Amit Klein, Franziska Bühler)
  • fix CVE msg in rules 944120 944240 (Fernando Outeda)
  • Remove broken or no longer used files (Federico G. Schwindt)
  • Make content-type case insensitive (Franziska Bühler)
  • Move /util/docker folder from v3.3/dev branch to dedicated repo (Peter Bittner)
  • feat(lint): split actions in linting and regression (Felipe Zipitria)
  • Fix FP in 921120 (Franziska Bühler)
  • Add missing OWASP_CRS tags (Christian Folini)
  • Fix GHA badges (Federico G. Schwindt)
  • feat(badge): add apache license badge
  • fix typos found by fossies codespell (Tim Herren)
  • Decrease processing time of rules (Ervin Hegedus)
  • handle multiple directives in 920510 (Andrea Menin)
  • handle multiple directives in 920510 (Andrea Menin)
  • fix(ci): use log_contains instead (Felipe Zipitria)
  • Move test where it belongs (Federico G. Schwindt)
  • fix(ci): use docker in DetectionOnly (Felipe Zipitria)
  • fix(rule): remove dangling whitespace (Felipe Zipitria)
  • fix(ci): run actions on .github change (Felipe Zipitria)
  • fix(docs): update badges and links in readme (Felipe Zipitria)
  • README: update repo link (Walter Hop)
  • Update README: Copyright 2019 -> 2020 (Christian Folini)
  • fix(ci): run tests also on PRs (Felipe Zipitria)
  • fix(ci): change test name and fix default params (Felipe Zipitria)
  • Restore Travis Status (was in the wrong repo) (Christian Folini)
  • Remove outdated Travis status after migration (Christian Folini)
  • feat(ci): adds github actions testing (Felipe Zipitria)
  • fix(migration): post migration tasks (Felipe Zipitria)
  • feat(templates): add text to github templates about migration. To be reverted after migration is done. (Felipe Zipitria)
  • Added more explanations to comment of 920300 (Christian Folini)
  • Added 'ver' action with current version to all necessary rules (Ervin Hegedus)
  • Update nextcloud excl rules and shorten var (Franziska Bühler)
  • Change to preferred lowercase var (Franziska Bühler)
  • Set var to lowercase and change comment (Franziska Bühler)
  • Resolve issue with allowed_request_content_types (Franziska Bühler)
  • Allow REPORT requests without Content-Type header in Nextcloud (pyllyukko)
  • Suppress rule 200002 when editing contacts in Nextcloud (pyllyukko)
  • XenForo: update exclusions (Walter Hop)
  • WordPress: exclude additional URL fields in profile editor (Walter Hop)
  • add www to link (NullIsNot0)
  • Fix link for 941310 Old link does not work anymore. Change it to new one. (NullIsNot0)
  • Add Content-Type: multipart/related as allowed default (jeremyjpj0916)
  • Resolve issue 1722 and fix content-type whitelisting (Franziska Bühler)
  • make severities and scores consistent (Walter Hop)
  • add QQGameHall UA (#1731) (Andrea Menin)
  • another test (Allan Boll)
  • Add word boundaries around values in SQL tautologies (942130) (Allan Boll)
  • Move tests to their own file, while here also correct permissions for 920180. (Federico G. Schwindt)
  • Rule to check if both C-L and T-E are present (#1310) (Federico G. Schwindt)
  • Fixes for 2 tests in 921200 (Christian Folini)
  • XenForo: add exclusions, remove unnecessary chains (#1673) (Walter Hop)
  • Fix FPs for 942350 (#1706) (Franziska Bühler)
  • Fix typos found by codespell / Fossies project (#1702) (Simon Studer)
  • Ignore check of CT header in POST request if protocol is HTTP/2 (Ervin Hegedus)
  • Narrowing down the subpattern .*? in 941130 (Christian Folini)
  • Restricting a wide regex a bit (Christian Folini)
  • Drop escapes (Christian Folini)
  • Fix FP in 941130 and rearrange regex with new regex-assemble file (Christian Folini)
  • Ignore check of CT header in POST request if protocol is HTTP/2 (Ervin Hegedus)
  • Remove trailing dot in several msg actions (#1678) (Tim Herren)
  • Replace REQUEST_BODY with ARGS on 930100 and 930110 (#1659) (Andrea Menin)
  • Temporary travis workaround to buy time and fix it for good (#1684) (Andrea Menin)
  • Add regression tests (Franziska Bühler)
  • Fix FP with create with 942360 (Franziska Bühler)
  • Avoid embedded anchors in CRS rule 942330 (Allan Boll)
  • Update 942450 for less false positives, more tests (#1662) (Will Woodson)
  • Ensure single ranges are also checked (#1661) (Federico G. Schwindt)
  • WordPress: also exclude posts/pages endpoint in subdirectories (Walter Hop)
  • For bugs, also ask for the environment (#1657) (Federico G. Schwindt)
  • XenForo: fix incorrect escape (Walter Hop)
  • XenForo: additional exclusions (Walter Hop)
  • Pattern cleanup across several rules (#1643). Drop unneeded non-capture groups; No need to escape "-" outside character classes And only if it is not at the end. (Federico G. Schwindt)
  • Improve rule 941350: Previously, this rule will also match on the equivalent to "<..<". Rewrite it so it is only triggered by the equivalent to "<..>", simplifying the pattern quite a bit as a bonus. While here add a link describing the bypass for future reference.
  • Fix test Was using the equivalent to "<...<" instead of "<...>". (Federico G. Schwindt)
  • Move the help and support link to contacts (#1647) While here rename to ensure they are presented in the right order and minor cosmetics. (Federico G. Schwindt)
  • Move remaining regression test data file to new folder, cleanup README (#1646) (Peter Bittner)
  • Also ask for the paranoia level (Federico G. Schwindt)
  • Make it a tiny bit more colorful (Federico G. Schwindt)
  • Spacing (Federico G. Schwindt)
  • Fix emoji (Federico G. Schwindt)
  • Switch to multiple templates for github issues (#1644) (Federico G. Schwindt)
  • Fix paranoia-level log description (Andrea Menin)
  • change IRC to Slack (Walter Hop)
  • fix spacing (Walter Hop)
  • Moving tests and documentation folders (#1627) (Soufiane Benali)
  • add triggered rule (#1636) (Andrea Menin)
  • Drop the translate header from the restricted list Fixes #1410. (Federico G. Schwindt)
  • Mark stale issues (Federico G. Schwindt)
  • Added support for <? in Rule 933100 (meetug)
  • Added test cases (NullIsNot0)
  • Update REQUEST-920-PROTOCOL-ENFORCEMENT.conf (NullIsNot0)
  • Update re for Rule ID: 920480 Update regular expression (NullIsNot0)
  • Create SECURITY.md (Chaim Sanders)
  • Rule: 920480. Make rx recognize charset with quotes. Make rule ID: 920480 recognize not only Content-Type: charset=utf-8 but also charset put in single or double quotes: Content-Type: charset="utf-8" Content-Type: charset='utf-8' (NullIsNot0)
  • Make rule 933100 RE2 compatible (meetug)
  • Fix typo in config file inclusion (Felipe Zipitria)
  • Correct rule 941310 to use single-byte variants and fix FPs (#1596). Fix test to use the single byte characters Add a test that uses utf-8 as well. Change pattern to use the single-byte variants Patterns in ModSecurity are not treated as UTF strings. Fixes #1595. Add negative tests and update descriptions Improve pattern Change it to avoid FPs for \xbc\xbc and \xbe\xbe (i.e. << and >>). Use negated classes for better performance. (Federico G. Schwindt)
  • Add test for issue #1580 (#1612) (Federico G. Schwindt)
  • removes t:lowercase (Andrea Menin)
  • Move integration tests to their own job (#1608) Also cleanup branches' list. (Federico G. Schwindt)
  • Add PL1 tag. (Anna Winkler)
  • Change version number for full version name (Felipe Zipitria)
  • Better document legacy conversion procedure Add text with instructions for a simple conversion utility. (Felipe Zipitria)
  • Correct example text regarding GeoIP. Add maxmind tool for downloading files (Felipe Zipitria)
  • Ignore configuration files generated by the JetBrains editors (Anna Winkler)
  • Update name of branch to use for feature branches. Minor syntax updates. (Anna Winkler)
  • Minor optimisation (Emile-Hugo SPIR)
  • Also fix the as herefrom pattern (Emile-Hugo SPIR)
  • More conservative fix (Emile-Hugo SPIR)
  • Update the source file (Emile-Hugo SPIR)
  • Fix a FP (, aside from) (Emile-Hugo SPIR)
  • regression fix for #1581 (emphazer)
  • Change order to check ip first in both rules (Felipe Zipitria)
  • Change chain order (Felipe Zipitria)
  • Fix spacing in text (Felipe Zipitria)
  • Add link to mailing list archives (Felipe Zipitria)
  • Adding new test for 941150 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941340 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941280 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941170 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941250 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941220 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941330 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941300 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941230 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941260 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941290 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 941270 based on XSS cheatsheet by portswigger (Christian Folini)
  • Adding new test for 942180 based on XSS cheatsheet by portswigger (Christian Folini)
  • Update mailing list links to google group (Felipe Zipitria)
  • Fix typo and add 2 new entries to 941160 (Franziska Bühler)
  • Switch to dates in YYYY-MM-DD format IOW iso 8601. While here add newlines and drop empty categories. (Federico G. Schwindt)
  • Update badges, add v3.3 and remove v3.0 (#1557) (Federico G. Schwindt)
  • Rearrange characters and add positive and negative test cases. Moved the dash to the end of the character set to avoid escaping it. Added test with all the new characters and a test for multiple whitespaces. Allowed a previously blocked charset. (Tim Herren)
  • 920470: include chars from rfc 2046 RFC 2046 allows additional chars for the boundary. \d removed as it is covered by \w in the regex. Removed unnecessary escapes. (Tim Herren)
  • Fix bypass in 931130 Don't rely on beginsWith as it might allow attackers to create subdomains matching the prefix. Add tests to cover this and other cases. The latter fixes #1404. (Federico G. Schwindt)
  • fix rule regex due to remove t:removeComments (Andrea Menin)
  • 920470: include chars from rfc 2046 RFC 2046 allows additional chars for the boundary. \d removed as it is covered by \w in the regex. Removed unnecessary escapes. (Tim Herren)
  • update Dockerfiles and Travis to use v3.3/dev (Walter Hop)

Version 3.2.0 - 2019-09-24

New functionality:

  • Add AngularJS client side template injection 941380 PL2 (Franziska Bühler)
  • Add docker-compose.yaml and example rule exclusion files for docker-compose (Franziska Bühler)
  • Add extended access.log format to Docker (Franziska Bühler)
  • Add libinjection check on last path segment (Max Leske, Christian Folini)
  • Add PUBLIC identifier for XML entities (#1490) (Rufus125)
  • Add .rdb to default restricted_extensions (Walter Hop)
  • Add .swp to default restricted_extensions (Andrea Menin)
  • Add rule 933200 PHP Wrappers (Andrea Menin)
  • Add send-payload-pls.sh script to test payload against multiple paranoia levels (Christian Folini, Manuel Spartan)
  • Add support for shell evasions with $IFS (Walter Hop, Chaim Sanders)
  • Add unix-shell commands (Christoph Hansen, Chaim Sanders)
  • Also inspect the path for the script tag (Federico G. Schwindt)
  • Detect 80legs, sysscan, Gobuster scanners (Brent Clark)
  • Detect CGI source code leakages (Christoph Hansen, Walter Hop)
  • Detect 'crawler' user-agent (Federico G. Schwindt)
  • Detect Jorgee, Zgrab scanners (Walter Hop)
  • Detect MySQL in-line comments (Franziska Bühler)
  • Detect Wappalyzer scanner (Christian Folini, Chaim Sanders)
  • Java RCE: Add struts namespaces (Walter Hop)
  • Java RCE: Detect more java classes (Manuel Leos)
  • Javascript: Add 941370 preventing a bypass for 941180 (Andrea Menin)
  • Make CRS variables configurable in Docker image (Franziska Bühler)
  • New PL3 rule 920490 to protect against content-type charset bypassing (Christian Folini)
  • Node.js unserialization + javascript RCE snippets (Walter Hop)
  • Request smuggling: Also cover pre http/1.0 requests (Federico G. Schwindt)
  • Restricted files: Added many dotfiles (Dan Ehrlich)
  • SQLi bypass detection: ticks and backticks (Franziska Bühler)
  • XenForo rule exclusion profile (Walter Hop)

Removed functionality:

  • Remove unused protected_uploads setting from setup (Walter Hop)
  • Remove deprecated tx.msg and tx.%{rule.id}-... (Federico G. Schwindt)
  • Remove deprecated upgrade script (Walter Hop)

Improved compatibility:

  • Add OWASP_CRS tags for ModSec 3 changes and replace ruleRemoveTargetByTag arguments (Ervin Hegedus)
  • Replace @contain % with @rx 25; ModSec 3 fails to parse % by itself (or escaped). (Federico G. Schwindt)
  • RE2 compatibility for 941130, 920220, 920240, 920230, 920460, 942200, 942370 (Allan Boll)
  • Hyperscan compatibility and simplification for 942450 (Allan Boll)

Fixes and improvements:

  • 932140: fix ReDoS in FOR expression (Walter Hop)
  • 933200: Simplify pattern (Federico G. Schwindt, Andrea Menin)
  • 941380: fix anomaly score variable (Franziska Bühler)
  • 942510, 942511: fix anomaly score variable (Walter Hop)
  • Add content-type application/csp-report (Andrea Menin)
  • Add content-type application/xss-auditor-report (Andrea Menin)
  • Add CRS 3.2 Badge build support. (Chaim Sanders)
  • Add CVE numbers for Apache Struts vulnerabilities to comments in rules (Franziska Bühler)
  • Add CVE-2018-11776 to comments of 933160 and 933161 (Franziska Bühler)
  • Add CVE-2018-2380 to comments of rules (Franziska Bühler)
  • Add default env vars for anomaly scores in Docker (Franziska Bühler)
  • Add missing OWASP_CRS tags to 921xxx rules (Walter Hop)
  • Add REQUEST_FILENAME to rule id 944130 and add exploits to comment (Franziska Bühler)
  • Add spaces in front of closing square brackets (Franziska Bühler)
  • Add travis changes (#1316) (Chaim Sanders)
  • Allow dot characters in Content-Type multipart boundary (Walter Hop)
  • Also handle dot variant of X_Filename. PHP will transform dots to underscore in variable names since dot is invalid. (Federico G. Schwindt)
  • As per the ref manual, it is compressWhitespace (Federico G. Schwindt)
  • Avoid php leak false positive with WOFF files (Manuel Spartan)
  • Bring back CRS 2.x renumbering utility (Walter Hop)
  • Clean up travis and reorg (Federico G. Schwindt)
  • Code cosmetics: reorder the actions of rules (Ervin Hegedus)
  • Content-Type is case insensitive (Federico G. Schwindt)
  • Disassembled 941160 (Franziska Bühler)
  • Drop separate regexp files. They are not really needed and save us from updating multiple places. (Federico G. Schwindt)
  • Drop t:lowercase from 941350 (Federico G. Schwindt)
  • Drop unneeded capture groups and tidy up (Federico G. Schwindt)
  • Drop unneeded capture groups and tidy up regexps (Federico G. Schwindt)
  • Drop unneeded unicode from 941110. Add tests to cover a few more variants as well as a negative test (Federico G. Schwindt)
  • Fix 920440 "URL file extension is restricted by policy" regex (Andrea Menin)
  • Fix 920460 test (Federico G. Schwindt)
  • Fix 942101 and 942460 by adding to sqli_score variable (Christian Folini)
  • Fix checking the existence of 'HTTP' trailing request verb and request path in the payload for HTTP request smuggling; decreases false-positives on free-form text. (Yu Yagihashi)
  • Fix commit default for non 2.9 branch (Chaim Sanders)
  • Fix CRS2->CRS3 mapping table (973344 -> 941100) (Chaim Sanders)
  • Fix date (Chaim Sanders)
  • Fix Docker image SSL support (Franziska Bühler)
  • Fix duplicate .env (jschleus, Chaim Sanders)
  • Fix executing paranoia level counters (Christian Folini)
  • Fix indentation and python version in crs2-renumbering script (Chaim Sanders)
  • Fix input / headers misordering (Christian Folini)
  • Fix path traversal attack pattern at id:930110 (Ervin Hegedus)
  • Fix regexp in Docker image (Franziska Bühler)
  • Fix regexp with incorrect dot '.' escape in rule 943120 (XeroChen)
  • Fix request header Sec-Fetch-User false positive (na1ex)
  • Fix runaway regexp in 942260. Add variant regexp assemble script to handle possessive qualifiers. Use possessive qualifiers to tight this up and solve ReDoS problem. (Federico G. Schwindt)
  • Fix small typo in variable (Felipe Zipitria)
  • Fix spelling error in variable name (supplient)
  • Fix transform name pointed out by secrules_parsing (Federico G. Schwindt)
  • Fix Travis Merge not being able to find HEAD (Chaim Sanders)
  • Fix vulnerable regexp in rule 942490 (CVE-2019-11387) (Christoph Hansen)
  • Fix wrong regex, assembly result, in 942370 (Franziska Bühler)
  • INSTALL: advise to use release zips, remove upgrade.py, update Nginx (Walter Hop)
  • Java: change tag from COMMAND_INJECTION to JAVA_INJECTION (Manuel Spartan)
  • Jwall auditconsole outbound anomaly scoring requirements (Christoph Hansen)
  • Mark patterns not supported by RE2 (Federico G. Schwindt)
  • Move duplicated 900270 to 900280 Fixes #1236. (Federico G. Schwindt)
  • Move PROXYLOCATION var (Franziska Bühler)
  • PHP: move get_defined_functions() and friends into PL1 (Walter Hop)
  • Pin the ftw version to 1.1.7 for now (Federico G. Schwindt)
  • Prevent bypass 933180 PHP Variable Function (Andrea Menin)
  • Reduce comments, introduction of triggered exploits (Franziska Bühler)
  • Remove all trailing spaces from ftw yaml test files (Ervin Hegedus)
  • Remove auditlog No other rules specify it. Add missing quotes and drop rev (Federico G. Schwindt)
  • Remove capture, remove tx.0, add transformation functions, fix regex, add presentation link (Andrea Menin)
  • Remove old and unwanted setvar constructs (Federico G. Schwindt)
  • Remove superfluous comments (Walter Hop)
  • Remove superfluous pmf (Federico G. Schwindt)
  • Remove t:lowercase from 920490 (Christian Folini)
  • Remove WARNING from php-errors.data (Andrea Menin)
  • Reorder actions (Federico G. Schwindt)
  • Replacing all @pmf with @pmFromFile (Christian Treutler)
  • Restricted-files.data: add AWS config (Walter Hop)
  • SQLI: removed unnecessary + (Christoph Hansen)
  • Switch Docker image to owasp/modsecurity:2.9-apache-ubuntu (Federico G. Schwindt)
  • unix-shell.data: fix typo in 'more' (Walter Hop)
  • Update .travis.yml Update to support v3.1 (Chaim Sanders)
  • Update dockerfile to always use 3.2/dev (Federico G. Schwindt)
  • Update OWASP CRS Docker image to support the new upstream and 2.9.3 (Peter Bittner, Chaim Sanders)
  • Update RESPONSE-950-DATA-LEAKAGES.conf (Christoph Hansen)
  • Update RESPONSE-959-BLOCKING-EVALUATION.conf (Christoph Hansen)
  • Wordpress: add support for Gutenberg editor (siric_, Walter Hop)
  • Wordpress: allow searching for any term in admin posts/pages overview (Walter Hop)
  • WordPress: exclude Gutenberg via rest_route (Walter Hop)
  • WordPress: exclude some more profile.php fields from RFI rule (Walter Hop)
  • WordPress: exclude SQL comment rule from _wp_http_referer (Walter Hop)
  • XML Soap Encoding fix 920240 (Christoph Hansen)

Unit tests:

  • 932140: add regression tests (Walter Hop)
  • 933180: fix tests which were doing nothing (Walter Hop)
  • 941370: add some more tests, fix whitespace (Walter Hop)
  • Add more tests for 941130 (Christian Folini)
  • Add regression test for 941101 (Avery Wong)
  • Add regression tests for 942150, 942100, 942260 (Christian Folini)
  • Add regression tests to 941160 (Franziska Bühler)
  • Add some regression tests (Ervin Hegedus)
  • Add testing support for libmodsecurity running on Apache and Nginx (Chaim Sanders)
  • Add tests for 941360 that fights JSFuck and Hieroglyphy (Christian Folini)
  • Add tests for rule 921110 (Yu Yagihashi)
  • Added regression tests for rules 942320, 942360, 942361, 942210, 942380, 942410, 942470, 942120, 942240, 942160, 942190, 942140, 942490, 942120 (Christoph Hansen)
  • Drop tests for removed rules (Federico G. Schwindt)
  • Fix failing regression tests (Ervin Hegedus)
  • Fix failing tests (Manuel Spartan, Chaim Sanders)
  • Fix readme typos in example rule (Walter Hop)
  • Fix test 941110-2 (Federico G. Schwindt)
  • Fix YAML 1.2 compliance with "true" (Federico G. Schwindt)
  • RCE: Add tests for the for command (Federico G. Schwindt)
  • Update regression tests for rules 931110, 931120, 931130 (Simon Studer)

Documentation:

  • Add details to README for Dockerhub (Franziska Bühler)
  • Add intro/comment to CVE comments (Franziska Bühler)
  • CONTRIBUTING: add note about separate PRs (Walter Hop)
  • Erased gitter chat. Added CII badge (Felipe Zipitria)
  • Replaced descriptions (Christian Folini)
  • Summarized authors on single line in tests for 941160 (Christian Folini)
  • Update broken link in regexp-assemble blog URLs (Walter Hop)
  • Update CONTRIBUTING.md To base changes on v3.2/dev. (Felipe Zipitría)
  • Update CONTRIBUTORS order (Andrea Menin)
  • Update README.md (Rufus125)
  • Updating crs site location (Chaim Sanders)

Version 3.1.1 - 2019-06-26

  • Fix CVE-2019-11387 ReDoS against CRS on ModSecurity 3 at PL 2 (Christoph Hansen, Federico G. Schwindt)
  • Content-Type made case insensitive in 920240, 920400 (Federico G. Schwindt)
  • Allow % encoding in 920240 (Christoph Hansen)
  • Fix bug in 920440 (Andrea Menin)
  • Fix bug in 920470 (Walter Hop)
  • Reduce false positives in 921110 (Yu Yagihashi, Federico G. Schwindt)
  • Fix bug in 943120 (XeroChen)

Version 3.1.0 - 2018-08-07

  • Add Detectify scanner (Andrea Menin)
  • Renaming matched_var/s (Victor Hora)
  • Remove lines with bare '#' comment char (Walter Hop)
  • Drop the XML variable from rule 932190 (Federico G. Schwindt)
  • Update outdated URLs (Walter Hop)
  • remove unused rule 901180 (Walter Hop)
  • Drop exit from unix and windows RCE (Federico G. Schwindt)
  • Fix anomaly_score counters (Federico G. Schwindt)
  • Remove mostly redundant 944220 in favor of 944240 (Christian Folini)
  • Add self[ and document[ to rule 941180 (Andrea Menin)
  • Provide proxy support within CRS docker image (Scott O'Neil)
  • Prevent bypass in rule 930120 PL3 (Andrea Menin)
  • Fix small typo in variable (Felipe Zipitría)
  • Fix bug #1166 in Docker image (Franziska Bühler)
  • Remove revision status from rules (Federico G. Schwindt)
  • Add template for issues (Federico G. Schwindt)
  • Correct failing travis tests in merge situations (Federico G. Schwindt)
  • Remove unused global variable in IIS rules (Chaim Sanders)
  • Refactor to use phase number instead of name (Federico G. Schwindt)
  • Add uploaded file name check; refresh LFI / filename checks (Walter Hop)
  • Introduce critical sibling of 920340 in PL2 (Walter Hop)
  • Fix bypass caused by multiple spaces in RCE rules (Walter Hop)
  • Remove unneeded regex capture groups (Federico G. Schwindt)
  • Add built-in exceptions for CPanel (Christoph Hansen)
  • Add additional file restrictions for ws_ftp, DS_Store... (Jose Nazario)
  • Fix missing strings in 942410 (Franziska Bühler)
  • Add 2 missing PDO errors (Christoph Hansen)
  • Fix issues with FPs in regression tests (Chaim Sanders)
  • Add Nextcloud client exclusion support (Christoph Hansen)
  • Fix spelling mistakes in REQUEST-942- (Padraig Doran, Chaim Sanders)
  • Explicitly ignore the user defined rules (Aaron Haaf, Chaim Sanders)
  • Add regression tests for 942490 (Christoph Hansen, Chaim Sanders)
  • Add Owncloud client exclusion support (Christoph Hansen, Christian Folini)
  • Adding 'F-Secure Radar' vulnerability scanner UA (Christian Folini, Chaim Sanders)
  • Update DockerFile to use Ubuntu as base (Chaim Sanders)
  • False positives 942360: move alter and union (Franziska Bühler, Chaim Sanders)
  • Add support for Java style attacks (Manuel Spartan, Walter Hop)
  • Fix various regression tests issues caused by webserver handling (azhao155, Chaim Sanders)
  • Update TravisCI to build on a per PR basis (Chaim Sanders)
  • Optimized rule 921160 and regex (Allan Boll, Chaim Sanders)
  • Update the consistency across various files (Federico G. Schwindt)
  • Add missing transform, 944120 sibling 944240 (Manuel Spartan)
  • Fix false positive for 'like' in 942120 (Walter Hop)
  • Add regression tests for Java Rules (Manuel Spartan)
  • Fixup and small reorg of dokuwiki rule exclusion package (Christian Folini)
  • Make TravisCI tests fail if Apache can't load rules (Felipe Zipitría)
  • Add exclusion rules for Dokuwiki (Matt Bagley, Christian Folini)
  • Initial exclusions for NextCloud installs (Matt Bagley, Christian Folini)
  • Added struts-pwn UA to list (Manuel Spartan)
  • Uses MULTIPART_MISSING_SEMICOLON instead of MULTIPART_SEMICOLON_MISSING (Felipe Zimmerle)
  • Add file upload checks (Manuel Spartan)
  • Check if Transfer-Encoding is missing (Federico G. Schwindt, Christian Folini)
  • Remove duplicated variables (Federico G. Schwindt)
  • Reduce FP by splitting classic SQL injection rule 942370 (Christoph Hansen)
  • Fix typo in REQUEST-920-PROTOCOL-ENFORCEMENT (ihacku, Franziska Bühler)
  • Add configurable timestamp format to FTW integration (Christian Folini)
  • Add badges to README (Felipe Zipitría)
  • Add clarifying comments to 910110 (Christian Folini)
  • Making rule 933131 case-insensitive (Manuel Spartan)
  • Merge and reorder rules as part of cleanup (Federico G. Schwindt)
  • Update copyright date and syntax (Jose Nazario, Felipe Zipitría)
  • Updated SecMarker and SkipAfter names to use meet guidelines (Felipe Zipitría)
  • Tidy up single quotes and other guidelines updates (Felipe Zipitría)
  • Syntax fix for setvar crs_exclusions_wordpress (Manuel Spartan)
  • Updated various contributors to developers (Christian Folini)
  • Revise SQL rules by disassembling them into their core protections (Franziska Bühler)
  • Add an example payload to 920220 (coolt)
  • Add a missing regex to rule 942310 (Franziska Bühler)
  • Detect GET or HEAD with Transfer-Encoding header (Federico G. Schwindt)
  • Fix broken links in references (Pásztor Gábor)
  • Add contributing guidelines (Felipe Zipitría)
  • Fix processing bypasses in rule 931130 (Felipe Zipitría, Christian Folini)
  • Correct small omissions in unix-shell.data (Walter Hop)
  • Add IIS specific detection to LFI-os-files.data (Manuel Spartan)
  • Update examples to match the current cleanup (Federico G. Schwindt)
  • Corrected the ordering of actions to meet guidelines (Felipe Zipitría)
  • Remove unused capture groups (Federico G. Schwindt)
  • Use explicit rx operator (Federico G. Schwindt)
  • Update the RCE regular expressions(Walter Hop, Federico G. Schwindt)
  • Removing maturity & accuracy from rules (Felipe Zipitría)
  • Increasing range header (Christoph Hansen)
  • Fixed upgrade.py script argument options (Glyn Mooney)
  • Updating to reflect OWASP flagship status (Chaim Sanders)
  • Adding Docker support for CRS (Chaim Sanders)
  • Initial Travis deployment (Zack Allen, Walter Hop)
  • Initial commit of regression tests (Chaim Sanders, Walter Hop)
  • Remove test for 921170 because it won't ever fire (Chaim Sanders, Walter Hop)
  • Update minor incorrectness in asp.net regex (Chaim Sanders, Walter Hop)
  • Add notification for builds against #modsecurity on freenode (Zack Allen, Walter Hop)
  • Add all past code contributors and convert to markdown (Walter Hop)
  • Block uploads of files with .phps extension (Walter Hop)
  • Improve message for script upload with superfluous extension (Walter Hop)
  • Remove trailing whitespace in various regexs (Walter Hop)
  • Add command popd to direct unix rce list in rule 932150 (Franziska Bühler)
  • Remove unnecessary END_XSS_CHECKS marker (Christian Folini)
  • Ignore Whitespaces in Rule 942110 (Christoph Hansen)
  • Update missing RCE Commands (Umar Farook)
  • Update lfi-os-files.data (Umar Farook)
  • Removed deprecated t:removeComments from 942100 (Christian Folini)
  • Add word boundary to rule 942410 (Franziska Bühler)

Version 3.0.2 - 2017-05-12

  • Remove debug rule that popped up in 3.0.1 (Christian Folini)

Version 3.0.1 - 2017-05-09

  • SECURITY: Removed insecure handling of X-Forwarded-For header; reported by Christoph Hansen (Walter Hop)
  • Fixed documentation errors in RESPONSE-999-... (Chaim Sanders)
  • Reduced FPs on 942190 by adding a word boundary to regex (Franziska Bühler)
  • Reduced FPs on 932150 by removing keyword reset (Franziska Bühler)
  • Tidied exceptions in 930100 (Roberto Paprocki)
  • Reduced FPs for 920120 by splitting into stricter sibling (Franziska Bühler)
  • Simplified some Drupal rule exclusions (Damien McKenna, Christian Folini)
  • Extended KNOWN_BUGS with remarks on JSON support on Debian (Franziska Bühler)
  • Updated README to add gitter support (Chaim Sanders)
  • Clarified DoS documentation for static extensions (Roberto Paprocki)
  • Added application/octet-stream to allowed content types (Christian Folini)
  • Typo in 942220 alert message (Chaim Sanders, @bossloper)
  • Moved referrer check of 941100 into new PL2 rule (Franziska Bühler)
  • Closed multiple @pmf evasions via lowercase transformation (Roberto Paprocki)
  • Clarified libinjection bundling in INSTALL file (@cjdp)
  • Reduced FPs via Wordpress Rule Exclusions (Walter Hop)
  • Support for RFC 3902 (Content Type application/soap+xml; Christoph Hansen) Make sure you update ModSecurity recommended rule 200000 as well.
  • Bugfix in 942410 regex (Christian Folini)
  • Reduced FPs for 942360 (Walter Hop)
  • Reduced FPs for 941120 by restricting event handler names (Franziska Bühler)
  • Extended 931000 with scheme "file" to fix false negative (Federico Schwindt)
  • Extended 905100 and 905110 for HTTP/2.0 (includes bugfix, Christoph Hansen)
  • Moved 941150 from PL1 to PL2; includes Bugfix for rule (Christian Folini)
  • Updated documentation for 920260 (Chaim Sanders)
  • Bugfix in upgrade.py (Victor Hora)
  • Fixed FP in RCE rule 932140 (Walter Hop)
  • Fixed comment for arg limit check rule 920370 (Christian Folini)
  • Created CONTRIBUTORS file
  • Added Christoph Hansen (emphazer) to CONTRIBUTORS file
  • Added Franziska Bühler (Franziska Bühler) to CONTRIBUTORS file
  • Fixed bug with DoS rule 912160 (@loudly-soft, Christian Folini)

Version 3.0.0 - 2016-11-10

Huge changeset running in separate branch from September 2013 to September 2016. This is a cursory summary of the most important changes:

  • Huge reduction of false positives (Ryan Barnett, Felipe Zimmerle, Chaim Sanders, Walter Hop, Christian Folini)
  • Anomaly scoring is the new default, renamed thresholds from tx.(in|out)bound_anomaly_score_level to tx.(in|out)bound_anomaly_score_threshold
  • Introduction of libinjection for SQLi detection
  • Introduction of libinjection for XSS detection
  • Big improvement on detection of Remote Command Execution (Walter Hop)
  • Big improvement on PHP function name detection (Walter Hop)
  • Paranoia Mode (Christian Folini, Noël Zindel, Franziska Bühler, Manuel Leos, Walter Hop)
  • Shifted dozens of rules into higher paranoia levels
  • Introduced a lot of stricter sibling rules in higher levels
  • Generic mechanism to support application specific rule exclusions (Chaim Sanders)
  • Initial Wordpress rule exclusions (Walter Hop)
  • Initial Drupal rule exclusions (Christian Folini, @emphazer)
  • Renumbering of rules. See folder id_renumbering for a csv map (Chaim Sanders)
  • Consolidation of rules, namely XSS and SQLi (Spider Labs/Trustwave team)
  • Sampling mode / Easing in (Christian Folini)
  • Cleanup of reputation checks / persistent blocking (Christian Folini / Walter Hop)
  • Tags much more systematic (Walter Hop)
  • IP reputation checks / persistent blocking of certain clients (Spider Labs/Trustwave team)
  • Phase actions use request/response/logging now instead of numerical phases (Spider Labs/Trustwave team)
  • Added NoScript XSS Filters (Spider Labs/Trustwave team)
  • Updated "severity" action to use words (CRITICAL, WARNING, etc...) vs. numbers (5, 4, etc..)
  • Various regex fixes after research by Vladimir Ivanov (Chaim Sanders)
  • Overhaul of the regression mode into debug mode (Walter Hop, Ryan Barnett)
  • Introduction of util/upgrade.py (Walter Hop)
  • Removal of GeoIP database. Download via util/upgrade.py now.
  • Introduction of Initialization rules with default values (Walter Hop, Christian Folini)
  • Sorting out terminology with whitelisting and rule exclusions (Christian Folini)
  • Overhaul of testing (Chaim Sanders)
  • Protection from HTTP Parameter Pollution (Franziska Bühler)
  • Simplification of setup config file, renamed file to crs-setup.conf.example
  • Improved session fixation detection logic (Christian Peron, credits to Eric Hodel for the discovery)
  • Updated list of malicious webscanners
  • Splitting scanner user agents data files (github user @ygrek)
  • Countless bugfixes in severities, anomaly scores, tags, etc. across the board
  • Cleanup of formerly experimental DDoS rules, fix documentation (Ryan Barnett, Christian Folini)
  • Improves http blacklist checks (Walter Hop)
  • Extended XSS detection (as suggested by Mazin Ahmed)
  • Added support for Travis CI
  • Added support for HTTP/2 in recent Apache 2.4 (Walter Hop)
  • Added many, many bots and scanners (among others suggested by github user @toby78, @jamuse, Matt Koch)
  • Fixed mime types suitable for XML processor (Chaim Sanders)
  • Include script in util/join-multiline-rules to work around Apache 2.4 < 2.4.11 bug with long lines (Walter Hop)
  • New detection for request smuggling attacks (Achim Hofmann, Christian Folini)
  • Fixes with project honeypot setup (Ryan Barnett)
  • Separated DB / SQL messages by DB software (Ryan Barnett)
  • CPanel integration (Chaim Sanders)
  • Introduction of var for static resources (Chaim Sanders)
  • Many improvements to rules in 2014/5 (Ryan Barnett)

Version 2.2.9 - 2013-09-30

Improvements:

  • Updated the /util directory structure

Bug Fixes:

Version 2.2.8 - 2013-06-30

Improvements:

Bug Fixes:

Version 2.2.7 - 2012-12-19

Improvements:

Bug Fixes:

Version 2.2.6 - 2012-09-14

Improvements:

  • Started rule formatting update for better readability
  • Added maturity and accuracy action data to each rule
  • Updated rule revision (rev) action
  • Added rule version (ver) action
  • Added more regression tests (util/regression_tests/)
  • Modified Rule ID 960342 to block large file attachments in phase:1
  • Removed all PARANOID rule checks
  • Added new Session Fixation rules

Bug Fixes:

Version 2.2.5 - 2012-06-14

Security Fixes:

Improvements:

  • Renamed main config file to modsecurity_crs_10_setup.conf
  • Updated the rule IDs to start from CRS reserved range: 900000
  • Updated rule formatting for readability
  • Updated the CSRF rules to use UNIQUE_ID as the token source
  • Added the zap2modsec.pl script to the /util directory which converts OWASP ZAP Scanner XML data into ModSecurity Virtual Patches
  • Updated the Directory Traversal Signatures to include more obfuscated data
  • Added Arachni Scanner Integration Lua script/rules files

Bug Fixes:

  • Added forceRequestBodyVariable action to rule ID 960904

Version 2.2.4 - 2012-03-14

Improvements:

  • Added Location and Set-Cookie checks to Response Splitting rule ID 950910
  • Added a README file to the activated_rules directory
  • Consolidate a number of SQL Injection rules into optimized regexs
  • Removed multiMatch and replaceComments from SQL Injection rules
  • Updated the SQLi regexs for greediness
  • Updated the SQLi setvar anomaly score values to use macro expansion
  • Removed PARANOID mode rules

Bug Fixes:

  • Fixed missing comma before severity action in rules 958291, 958230 and 958231
  • Fixed duplicate rule IDs

Version 2.2.3 - 2011-12-19

Improvements:

Bug Fixes:

  • Fixed Content-Type evasion issue by adding ctl:forceRequestBodyVariable action to rule ID 960010. (Identified by Andrew Wilson of Trustwave SpiderLabs).
  • Updated the regex and added tags for RFI rules.

Version 2.2.2 - 2011-09-28

Improvements:

  • Updated the AppSensor Profiling (to use Lua scripts) for Request Exceptions Detection Points
  • Added new Range header detection checks to prevent Apache DoS
  • Added new Security Scanner User-Agent strings
  • Added example script to the /util directory to convert Arachni DAST scanner XML data into ModSecurity virtual patching rules.
  • Updated the SQLi Character Anomaly Detection Rules
  • Added Host header info to the RESOURCE collection key for AppSensor profiling rules

Bug Fixes:

  • Fixed action list for XSS rules (replaced pass,nolog,auditlog with block)
  • Fixed Request Limit rules by removing & from variables
  • Fixed Session Hijacking IP/UA hash captures
  • Updated the SQLi regex for rule ID 981242

Version 2.2.1 - 2011-07-20

Improvements:

  • Extensive SQL Injection signature updates as a result of the SQLi Challenge http://www.modsecurity.org/demo/challenge.html
  • Updated the SQL Error message detection in response bodies
  • Updated SQL Injection signatures to include more DB functions
  • Updated the WEAK SQL Injection signatures
  • Added tag AppSensor/RE8 to rule ID 960018

Bug Fixes:

  • Fixed Bad Robot logic for rule ID 990012 to further qualify User-Agent matches https://www.modsecurity.org/tracker/browse/CORERULES-70
  • Fixed Session Hijacking rules to properly capture IP address network hashes.
  • Added the multiMatch action to the SQLi rules
  • Fixed a false negative logic flaw within the advanced_filter_converter.lua script
  • Fixed missing : in id action in DoS ruleset.
  • Updated rule ID 971150 signature to remove ;

Version 2.2.0 - 2011-05-26

Improvements:

Bug Fixes:

  • Assigned IDs to all active SecRules/SecActions
  • Removed rule inversion (!) from rule ID 960902
  • Fixed false negative issue in Response Splitting Rule
  • Fixed false negative issue with @validateByteRange check
  • Updated the TARGETS listing for rule ID 950908
  • Updated TX data for REQBODY processing
  • Changed the pass action to block in the RFI rules in the 40 generic file
  • Updated RFI regex to catch IP address usage in hostname https://www.modsecurity.org/tracker/browse/CORERULES-68
  • Changed REQUEST_URI_RAW variable to REQUEST_LINE in SLR rules to allow matches on request methods.
  • Updated the RFI rules in the 40 generic attacks conf file to remove explicit logging actions. They will now inherit the settings from the SecDefaultAction

Version 2.1.2 - 2011-02-17

Improvements:

  • Added experimental real-time application profiling ruleset.
  • Added experimental Lua script for profiling the # of page scripts, iframes, etc.. which will help to identify successful XSS attacks and planting of malware links.
  • Added new CSRF detection rule which will trigger if a subsequent request comes too quickly (need to use the Ignore Static Content rules).

Bug Fixes:

  • Added missing " in the skipAfter SecAction in the CC Detection rule set

Version 2.1.1 - 2010-12-30

Bug Fixes:

  • Updated the 10 config conf file to add in pass action to User-Agent rule
  • Updated the CSRF ruleset to conditionally do content injection - if the csrf token was created by the session hijacking conf file
  • Updated the session hijacking conf file to only enforce rules if a SessionID Cookie was submitted
  • Fixed macro expansion setvar bug in the restricted file extension rule
  • Moved the comment spam data file into the optional_rules directory

Version 2.1.0 - 2010-12-29

Improvements:

  • Added Experimental Lua Converter script to normalize payloads. Based on PHPIDS Converter code and it used with the advanced filters conf file.
  • Changed the name of PHPIDS converted rules to Advanced Filters
  • Added Ignore Static Content (Performance enhancement) rule set
  • Added XML Enabler (Web Services) rule set which will parse XML data
  • Added Authorized Vulnerability Scanning (AVS) Whitelist rule set
  • Added Denial of Service (DoS) Protection rule set
  • Added Slow HTTP DoS (Connection Consumption) Protection rule set
  • Added Brute Force Attack Protection rule set
  • Added Session Hijacking Detection rule set
  • Added Username Tracking rule set
  • Added Authentication Tracking rule set
  • Added Anti-Virus Scanning of File Attachments rule set
  • Added AV Scanning program to /util directory
  • Added Credit Card Usage Tracking/Leakage Prevention rule set
  • Added experimental CC Track/PAN Leakage Prevention rule set
  • Added an experimental_rules directory to hold new BETA rules
  • Moved the local exceptions conf file back into base_rules directory however it has a ".example" extension to prevent overwriting customized versions when upgrading
  • Separated out HTTP Parameter Pollution and Restricted Character Anomaly Detection rules to the experimental_rules directory
  • Adding the REQUEST_HEADERS:User-Agent macro data to the initcol in 10 config file, which will help to make collections a bit more unique

Version 2.0.10 - 2010-11-29

Improvements:

  • Commented out the Anomaly Scoring Blocking Mode TX variable since, by default, the CRS is running in traditional mode.

Bug Fixes:

Version 2.0.9 - 2010-11-17

Improvements:

  • Changed the name of the main config file to modsecurity_crs_10_config.conf.example so that it will not overwrite existing config settings. Users should rename this file to activate it.
  • Traditional detection mode is now the current default
  • Users can now more easily toggle between traditional/standard mode vs. anomaly scoring mode by editing the modsecurity_crs_10_config.conf file
  • Updated the disruptive actions in most rules to use "block" action instead of "pass". This is to allow for the toggling between traditional vs. anomaly scoring modes.
  • Removed logging actions from most rules so that it can be controlled from the SecDefaultAction setting in the modsecurity_crs_10_config.conf file
  • Updated the anomaly scores in the modsecurity_crs_10_config.conf file to more closely match what is used in the PHPIDS rules. These still have the same factor of severity even though the numbers themselves are smaller.
  • Updated the 49 and 59 blocking rules to include the matched logdata
  • Updated the TAG data to further classify attack/vuln categories.
  • Updated the SQL Injection filters to detect more boolean logic attacks
  • Moved some files to optional_rules directory (phpids, Emerging Threats rules)

Bug Fixes:

Version 2.0.8 - 2010-08-27

Improvements:

  • Updated the PHPIDS filters
  • Updated the SQL Injection filters to detect boolean attacks (1<2, foo == bar, etc..)
  • Updated the SQL Injection filters to account for different quotes
  • Added UTF-8 encoding validation support to the modsecurity_crs_10_config.conf file
  • Added Rule ID 950109 to detect multiple URL encodings
  • Added two experimental rules to detect anomalous use of special characters

Bug Fixes:

Version 2.0.7 - 2010-06-04

Improvements:

  • Added CSRF Protection Ruleset which will use Content Injection to add javascript to specific outbound data and then validate the csrf token on subsequent requests.
  • Added new Application Defect Ruleset which will identify/fix missing HTTPOnly cookie flags
  • Added Experimental XSS/Missing Output Escaping Ruleset which looks for user supplied data being echoed back to user unchanged.
  • Added rules-updater.pl script and configuration file to allow users to automatically download CRS rules from the CRS rules repository.
  • Added new SQLi keyword for ciel() and reverse() functions.
  • Updated the PHPIDS filters

Bug Fixes:

Version 2.0.6 - 2010-02-26

Bug Fixes:

Version 2.0.5 - 2010-02-01

Improvements:

  • Removed previous 10 config files as they may conflict with local customized Mod configs.
  • Added a new 10 config file that allows the user to globally set TX variables to turn on/off PARANOID_MODE inspection, set anomaly score levels and http policies. Must have ModSecurity 2.5.12 to use the macro expansion in numeric operators.
  • Added Rule Logic and Reference links to rules descriptions.
  • Added Rule IDs to all rules.
  • Added tag data mapping to new OWASP Top 10 and AppSensor Projects, WASC Threat Classification
  • Removed Apache limit directives from the 23 file
  • Added macro expansion to 23 file checks.
  • Added @pmFromFile check to 35 bad robots file
  • Added malicious UA strings to 35 bad robots check
  • Created an experimental rules file
  • Updated HTTP Parameter Pollution (HPP) rule logic to concat data into a TX variable for inspection
  • Removed TX inspections for generic attacks and reverted to standard ARGS inspection https://www.modsecurity.org/tracker/browse/MODSEC-120
  • Updated the variable list for standard inspections (ARGS|ARGS_NAMES|XML:/*) and moved the other variables to the PARANOID list (REQUEST_URI|REQUEST_BODY|REQUEST_HEADERS|TX:HPP_DATA)
  • Moved converted ET Snort rules to the /optional_rules directory
  • Created a new Header Tagging ruleset (optional_rules) that will add matched rule data to the request headers.
  • Updated Inbound blocking conf file to use macro expansion from the 10 config file settings
  • Added separate anomaly scores for inbound, outbound and total to be evaluated for blocking.
  • Updated the regex logic in the (1=1) rule to factor in quotes and other logical operators.
  • Updated the SPAMMER RBL check rules logic to only check once per IP/Day.
  • Added new outbound malware link detection rules.
  • Added PHP "call_user_func" to blacklist Identified by SOGETI ESEC R&D

Bug Fixes:

Version 2.0.4 - 2009-11-30

Improvements:

  • Updated converted PHPIDS signatures (https://svn.php-ids.org/svn/trunk/lib/IDS/default_filter.xml)
  • Updated PHPIDS rules logic to first search for payloads in ARGS and then if there is no match found then search more generically in request_body|request_uri_raw
  • Updated PHPIDS rules logic to only set TX variables and to not log. This allows for more clean exceptions in the 48 file which can then expire/delete false positive TX matches and adjust the anomaly scores. These rules will then inspect for any TX variables in phase:5 and create appropriate alerts for any variable matches that exist.

Bug Fixes:

  • Added Anomaly Score check to the 60 correlation file to recheck the anomaly score at the end of phase:4 which would allow for blocking based on information leakage issues.

Version 2.0.3 - 2009-11-05

Improvements:

Bug Fixes:

Version 2.0.2 - 2009-09-11

Improvements:

Bug Fixes:

Version 2.0.1 - 2009-08-07

Improvements:

Bug Fixes:

Version 2.0.0 - 2009-07-29

New Rules & Features:

  • Fine Grained Policy The rules have been split to having one signature per rule instead of having all signatures combined into one optimized regular expression. This should allow you to modify/disable events based on specific patterns instead of having to deal with the whole rule.
  • Converted Snort Rules Emerging Threat web attack rules have been converted. http://www.emergingthreats.net/
  • Anomaly Scoring Mode Option The rules have been updated to include anomaly scoring variables which allow you to evaluate the score at the end of phase:2 and phase:5 and decide on what logging and disruptive actions to take based on the score.
  • Correlated Events There are rules in phase:5 that will provide some correlation between inbound events and outbound events and will provide a result of successful attack or attempted attack.
  • Updated Severity Ratings The severity ratings in the rules have been updated to the following:
    • 0: Emergency - is generated from correlation where there is an inbound attack and an outbound leakage.
    • 1: Alert - is generated from correlation where there is an inbound attack and an outbound application level error.
    • 2: Critical - is the highest severity level possible without correlation. It is normally generated by the web attack rules (40 level files).
    • 3: Error - is generated mostly from outbound leakabe rules (50 level files).
    • 4: Warning - is generated by malicious client rules (35 level files).
    • 5: Notice - is generated by the Protocol policy and anomaly files.
    • 6: Info - is generated by the search engine clients (55 marketing file).
  • Updated Comment SPAM Protections Updated rules to include RBL lookups and client fingerprinting concepts from Bad Behavior (www.bad-behavior.ioerror.us)
  • Creation of Global Collection Automatically create a Global collection in the 10 config file. Other rules can then access it.
  • Use of Block Action Updated the rules to use the "block" action. This allows the Admin to globally set the desired block action once with SecDefaultAction in the 10 config file rather than having to edit the disruptive actions in all of the rules or for the need to have multiple versions of the rules (blocking vs. non-blocking).
  • "Possible HTTP Parameter Pollution Attack: Multiple Parameters with the same Name." http://tacticalwebappsec.blogspot.com/2009/05/http-parameter-pollution.html
  • Added new generic RFI detection rules. http://tacticalwebappsec.blogspot.com/2009/06/generic-remote-file-inclusion-attack.html
  • "Possibly malicious iframe tag in output" (Rules 981001,981002) Planting invisible iframes in a site can be used by attackers to point users from the victim site to their malicious site. This is actually as if the user was visiting the attacker's site himself, causing the user's browser to process the content in the attacker's site.

New Events:

  • Rule 960019 - Expect Header Not Allowed.
  • Rule 960020 - Pragma Header Requires Cache-Control Header
  • Rule 958290 - Invalid Character in Request - Browsers should not send the (#) character as it is reserved for use as a fragment identifier within the html page.
  • Rule 958291 - Range: field exists and begins with 0.
  • Rule 958292 - Invalid Request Header Found.
  • Rule 958293 - Lowercase Via Request Header Found.
  • Rule 958294 - Common SPAM Proxies found in Via Request Header.
  • Rule 958295 - Multiple/Conflicting Connection Header Data Found.
  • Rule 958296 - Request Indicates a SPAM client accessed the Site.
  • Rule 958297 - Common SPAM/Email Harvester crawler.
  • Rule 958298 - Common SPAM/Email Harvester crawler

Bug Fixes:

  • Rule 950107 - Split the rule into 2 separate rules to factor in the Content-Type when inspecting the REQUEST_BODY variable.
  • Rule 960017 - Bug fix for when having port in the host header.
  • Rule 960014 - Bug fix to correlate the SERVER_NAME variable.
  • Rule 950801 - Increased the logic so that the rule will only run if the web site uses UTF-8 Encoding.
  • Rules 999210,999211 - Bug fix to move ctl actions to last rule, add OPTIONS and allow the IPv6 loopback address
  • Rule 950117 - Updated the RFI logic to factor in both a trailing "?" in the ARG and to identify offsite hosts by comparing the ARG URI to the Host header. Due to this rule now being stronger, moved it from optional tight security rule to 40 generic attacks file.

Other Fixes:

  • Added more HTTP Protocol violations to 20 file.
  • Set the SecDefaultAction in the 10 config file to log/pass (This was the default setting, however this sets it explicitly.
  • Added SecResponseBodyLimitAction ProcessPartial to the 10 config file. This was added so that when running the SecRuleEngine in DetectionOnly mode, it will not deny response bodies that go over the size restrictions.
  • Changed SecServerSignature to "Apache/1.3.28"
  • Fixed the use of SkipAfter and SecMarkers to make it consistent. Now have BEGIN and END SecMarkers for rule groups to more accurately allow moving to proper locations.
  • Fixed the @pm/@pmFromFile pre-qualifier logic to allow for operator inversion. This removes the need for some SecAction/SkipAfter rules.
  • Updated rule formatting to easily show rule containers (SecMarkers, pre-qualifier rules and chained rules).

Version 1.6.1 - 2008-04-22

  • Fixed a bug where phases and transformations where not specified explicitly in rules. The issue affected a significant number of rules, and we strongly recommend to upgrade.

Version 1.6.0 - 2008-02-19

New Rulesets & Features:

  • 42 - Tight Security This ruleset contains currently 2 rules which are considered highly prone to FPs. They take care of Path Traversal attacks, and RFI attacks. This ruleset is included in the optional_rulesets dir
  • 42 - Comment Spam Comment Spam is used by the spammers to increase their rating in search engines by posting links to their site in other sites that allow posting of comments and messages. The rules in this ruleset will work against that. (Requires ModSecurity 2.5)
  • Tags A single type of attack is often detected by multiple rules. The new alert classification tags solve this issue by providing an alternative alert type indication and can serve for filtering and analysis of audit logs. The classification tags are hierarchical with slashes separating levels. Usually there are two levels with the top level describing the alert group and the lower level denoting the alert type itself, for example: WEB_ATTACK/SQL_INJECTION.

False Positives Fixes:

  • Rule 960903 - Moved to phase 4 instead of 5 to avoid FPs
  • Rule 950107 - Will look for invalid url decoding in variables that are not automatically url decoded

Additional rules logic:

  • Using the new "logdata" action for logging the matched signature in rules
  • When logging an event once, init the collection only if the alert needs to log
  • Using the new operator @pm as a qualifier before large rules to enhance performance (Requires ModSecurity 2.5)
  • SQL injection - A smarter regexp is used to detect 1=1,2=2,etc.. and not only 1=1. (Thanks to Marc Stern for the idea)
  • New XSS signatures - iframe & flash XSS

Version 1.5.1 - 2007-12-06

False Positives Fixes:

  • Protocol Anomalies (file 21) - exception for Apache SSL pinger (Request: GET /)

New Events:

  • 960019 - Detect HTTP/0.9 Requests HTTP/0.9 request are not common these days. This rule will log by default, and block in the blocking version of file 21

Other Fixes:

  • File 40, Rules 950004,950005 - Repaired the correction for the double url decoding problem
  • File 55 contained empty regular expressions. Fixed.

Version 1.5 - 2007-11-23

New Rulesets:

  • 23 - Request Limits "Judging by appearances". This rulesets contains rules blocking based on the size of the request, for example, a request with too many arguments will be denied.

Default policy changes:

  • XML protection off by default
  • BLOCKING dir renamed to optional_rules
  • Ruleset 55 (marketing) is now optional (added to the optional_rules dir)
  • Ruleset 21 - The exception for apache internal monitor will not log anymore

New Events:

  • 960912 - Invalid request body Malformed content will not be parsed by modsecurity, but still there might be applications that will parse it, ignoring the errors.
  • 960913 - Invalid Request Will trigger a security event when request was rejected by apache with code 400, without going through ModSecurity rules.

Additional rules logic:

  • 950001 - New signature: delete from
  • 950007 - New signature: waitfor delay

False Positives Fixes:

  • 950006 - Will not be looking for /cc pattern in User-Agent header
  • 950002 - "Internet Explorer" signature removed
  • Double decoding bug used to cause FPs. Some of the parameters are already url-decoded by apache. This caused FPs when the rule performed another url-decoding transformation. The rules have been split so that parameters already decoded by apache will not be decoded by the rules anymore.
  • 960911 - Expression is much more permissive now
  • 950801 - Commented out entirely. NOTE: If your system uses UTF8 encoding, then you should uncomment this rule (in file 20)

version 1.4.3 - 2007-07-21

New Events:

  • 950012 - HTTP Request Smuggling For more info on this attack: http://www.cgisecurity.com/lib/HTTP-Request-Smuggling.pdf
  • 960912 - Invalid request body Malformed content will not be parsed by modsecurity, but still there might be applications that will parse it, ignoring the errors.
  • 960913 - Invalid Request Will trigger a security event when request was rejected by apache with code 400, without going through ModSecurity rules.

False Positives Fixes:

  • 950107 - Will allow a % sign in the middle of a string as well
  • 960911 - A more accurate expression based on the rfc: http://www.ietf.org/rfc/rfc2396.txt
  • 950015 - Will not look for http/ pattern in the request headers

Additional rules logic:

  • Since Apache applies scope directives only after ModSecurity phase 1 this directives cannot be used to exclude phase 1 rules. Therefore we moved all inspection rules to phase 2.

version 1.4 build 2 - 2007-05-17

New Feature:

  • Search for signatures in XML content XML Content will be parsed and inspected for signatures

New Events:

  • 950116 - Unicode Full/Half Width Abuse Attack Attempt Full-width unicode can by used to bypass content inspection. Such encoding will be forbidden http://www.kb.cert.org/vuls/id/739224
  • 960911 - Invalid HTTP request line Enforce request line to be valid, i.e.:
  • 960904 - Request Missing Content-Type (when there is content) When a request contains content, the content-type must be specified. If not, the content will not be inspected
  • 970018 - IIS installed in default location (any drive) Log once if IIS in installed in the /Inetpub directory (on any drive, not only C)
  • 950019 - Email Injection Web forms used for sending mail (such as "tell a friend") are often manipulated by spammers for sending anonymous emails

Regular expressions fixes:

  • Further optimization of some regular expressions (using the non-greediness operator) The non-greediness operator, <?>, prevents excessive backtracking

FP fixes:

  • Rule 950107 - Will allow a parameter to end in a % sign from now on

version 1.4 - 2007-05-02

New Events:

  • 970021 - WebLogic information disclosure Matching of "<title>JSP compile error</title>" in the response body, will trigger this rule, with severity 4 (Warning)
  • 950015,950910,950911 - HTTP Response Splitting Looking for HTTP Response Splitting patterns as described in Amit Klein's excellent white paper: http://www.packetstormsecurity.org/papers/general/whitepaper_httpresponse.pdf ModSecurity does not support compressed content at the moment. Thus, the following rules have been added:
  • 960902 - Content-Encoding in request not supported Any incoming compressed request will be denied
  • 960903 - Content-Encoding in response not supported An outgoing compressed response will be logged to alert, but ONLY ONCE.

False Positives Fixes:

  • Removed <.exe>,<.shtml> from restricted extensions
  • Will not be looking for SQL Injection signatures <root@>, in the Via request header
  • Excluded Referer header from SQL injection, XSS and command injection rules
  • Excluded X-OS-Prefs header from command injection rule
  • Will be looking for command injection signatures in REQUEST_COOKIES|REQUEST_COOKIES_NAMES instead of REQUEST_HEADERS:Cookie.
  • Allowing charset specification in the <application/x-www-form-urlencoded> Content-Type

Additional rules logic:

  • Corrected match of OPTIONS method in event 960015
  • Changed location for event 960014 (proxy access) to REQUEST_URI_RAW
  • Moved all rules apart from method inspection from phase 1 to phase 2 - This will enable viewing content if such a rule triggers as well as setting exceptions using Apache scope tags.
  • Added match for double quote in addition to single quote for signature (SQL Injection)
  • Added 1=1 signature (SQL Injection)

version 1.3.2 build 4 2007-01-17

Fixed apache 2.4 dummy requests exclusion Added persistent PDF UXSS detection rule

Version 1.3.2 build 3 2007-01-10

Fixed regular expression in rule 960010 (file #30) to allow multipart form data content

Version 1.3.2 - 2006-12-27

New events:

  • 960037 Directory is restricted by policy
  • 960038 HTTP header is restricted by policy

Regular expressions fixes:

  • Regular expressions with @ at end of beginning (for example "@import)
  • Regular expressions with un-escaped "."
  • Command Injections now always require certain characters both before and after the command. Important since many are common English words (finger, mail)
  • The command injection wget is not searched in the UA header as it has different meaning there.
  • LDAP Fixed to reduce FPs:
    • More accurate regular expressions
    • high bit characters not accepted between signature tokens.
  • Do not detect <?xml as a PHP tag in both PHP injection and PHP source leakage
  • Removed Java from automation UA
  • When validating encoding, added regexp based chained rule that accepts both %xx and %uxxxxx encoding bypassing a limitation of "@validateUrlEncoding"

Additional rules logic:

  • Checks for empty headers in addition to missing ones (Host, Accept and User-Agent)
  • OPTIONS method does not require an accept header.
  • Apache keep alive request exception.
  • PROPFIND and OPTIONS can be used without content-encoding (like HEAD and GET)
  • Validate byte range checks by default only that no NULL char exists.
  • Added CSS to allowed extensions in strict rule sets.
  • Changed default action in file #50 to pass instead of deny.
  • Moved IP host header from protocol violations to protocol anomalies.

Modified descriptions:

  • 950107: URL Encoding Abuse Attack Attempt
  • 950801: UTF8 Encoding Abuse Attack Attempt
  • Added matched pattern in many events using capture and %{TX.0}
  • Added ctl:auditLogParts=+E for outbound events and attacks to collect response.

Version 1.2 - 2006-11-19

Changes:

  • Move all events to the range of events allocated to Thinking Stone, now Breach by prefixing all event IDs with "9".
  • Reverse severities to follow the Syslog format used by ModSecurity, now 1 is the highest and 5 the lowest.

Bug fixes:

  • Removed quotes from list of mime types inspected on exit (directive SecResponseBodyMimeType)
  • Corrected "cd .." signature. Now the periods are escaped.
  • Too many FPs with events 950903 & 950905. Commented them out until fixed.

Version 1.1 - 2006-10-18

Initial version