Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 703bb1e

Browse files
authored
Merge pull request #4 from SpiderLabs/v3.2/dev
Bringing fork up to date
2 parents 4baf344 + ba0e1ce commit 703bb1e

File tree

159 files changed

+17322
-10478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+17322
-10478
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--- For help and support please go to Stack Exchange: -->
2+
<!--- https://security.stackexchange.com/questions/tagged/owasp-crs -->
3+
4+
<!--- Provide a general summary of the issue in the Title above -->
5+
6+
## Type of Issue
7+
<!-- Incorrect blocking (false positive), incorrect bypass (false negative), -->
8+
<!-- bug fix, feature suggestion -->
9+
10+
## Description
11+
<!-- In case of a false positive, please provide a copy of the audit -->
12+
<!-- log entry. You can usually find this at /var/log/modsec_audit.log. -->
13+
<!-- In case of a false negative, please provide the payload you -->
14+
<!-- are sending. For complex payloads with headers, please include -->
15+
<!-- a curl command. -->
16+
<!-- Include any relevant CVEs or research links. -->
17+
18+
## Your Environment
19+
<!--- Include as many relevant details about the environment you -->
20+
<!--- experienced the bug in: -->
21+
* CRS version (e.g. v3.0.2):
22+
* ModSecurity version (e.g. 2.9.2):
23+
* Web Server and version (e.g. apache 2.4.27):
24+
* Operating System and version:
25+
26+
## Confirmation
27+
28+
[ ] I have removed any personal data (email addresses, IP addresses,
29+
passwords, domain names) from any logs posted.

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22
path = documentation/OWASP-CRS-Documentation
33
url = https://github.com/SpiderLabs/OWASP-CRS-Documentation
44
branch = master
5-
[submodule "util/regression-tests/OWASP-CRS-regressions"]
6-
path = util/regression-tests/OWASP-CRS-regressions
7-
url = https://github.com/SpiderLabs/OWASP-CRS-regressions
8-
branch = master

CHANGES

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,122 @@
55
or the CRS mailinglist at
66
* https://lists.owasp.org/mailman/listinfo/owasp-modsecurity-core-rule-set
77

8-
== Version 3.1.0 - 6/5/2017 ==
8+
== Version 3.1.1 - 2019-06-26 ==
9+
* Fix CVE-2019-11387 ReDoS against CRS on ModSecurity 3 at PL 2 (Christoph Hansen, Federico G. Schwindt)
10+
* Content-Type made case insensitive in 920240, 920400 (Federico G. Schwindt)
11+
* Allow % encoding in 920240 (Christoph Hansen)
12+
* Fix bug in 920440 (Andrea Menin)
13+
* Fix bug in 920470 (Walter Hop)
14+
* Reduce false positives in 921110 (Yu Yagihashi, Federico G. Schwindt)
15+
* Fix bug in 943120 (XeroChen)
16+
17+
== Version 3.1.0 - 8/7/2018 ==
18+
* Add Detectify scanner (theMiddle)
19+
* Renaming matched_var/s (Victor Hora)
20+
* Remove lines with bare '#' comment char (Walter Hop)
21+
* Drop the XML variable from rule 932190 (Federico G. Schwindt)
22+
* Update outdated URLs (Walter Hop)
23+
* remove unused rule 901180 (Walter Hop)
24+
* Drop exit from unix and windows RCE (Federico G. Schwindt)
25+
* Fix anomaly_score counters (Federico G. Schwindt)
26+
* Remove mostly redundant 944220 in favor of 944240 (Christian Folini)
27+
* Add self[ and document[ to rule 941180 (theMiddle)
28+
* Provide proxy support within CRS docker image (Scott O'Neil)
29+
* Prevent bypass in rule 930120 PL3 (theMiddle)
30+
* Fix small typo in variable (Felipe Zipitría)
31+
* Fix bug #1166 in Docker image (Franziska Bühler)
32+
* Remove revision status from rules (Federico G. Schwindt)
33+
* Add template for issues (Federico G. Schwindt)
34+
* Correct failing travis tests in merge situations (Federico G. Schwindt)
35+
* Remove unused global variable in IIS rules (Chaim Sanders)
36+
* Refactor to use phase number instead of name (Federico G. Schwindt)
37+
* Add uploaded file name check; refresh LFI / filename checks (Walter Hop)
38+
* Introduce critical sibling of 920340 in PL2 (Walter Hop)
39+
* Fix bypass caused by multiple spaces in RCE rules (Walter Hop)
40+
* Remove unneded regex capture groups (Federico G. Schwindt)
41+
* Add built-in exceptions for CPanel (Christoph Hansen)
42+
* Add additional file restrictios for ws_ftp, DS_Store... (Jose Nazario)
43+
* Fix missing strings in 942410 (Franziska Bühler)
44+
* Add 2 missing PDO errors (Christoph Hansen)
45+
* Fix issues with FPs in regression tests (Chaim Sanders)
46+
* Add Nextcloud client exclusion support (Christoph Hansen)
47+
* Fix spelling mistakes in REQUEST-942- (Padraig Doran, Chaim Sanders)
48+
* Explicitly ignore the user defined rules (Aaron Haaf, Chaim Sanders)
49+
* Add regression tests for 942490 (Christoph Hansen, Chaim Sanders)
50+
* Add Owncloud client exclusion support (Christoph Hansen, Christian Folini)
51+
* Adding 'F-Secure Radar' vulnerability scanner UA (Christian Folini, Chaim Sanders)
52+
* Update DockerFile to use Ubuntu as base (Chaim Sanders)
53+
* False positives 942360: move alter and union (Franziska Bühler, Chaim Sanders)
54+
* Add support for Java style attacks (Manuel Spartan, Walter Hop)
55+
* Fix various regression tests issues caused by webserver handling (azhao155, Chaim Sanders)
56+
* Update TravisCI to build on a per PR basis (Chaim Sanders)
57+
* Optimized rule 921160 and regex (Allan Boll, Chaim Sanders)
58+
* Update the consistency across various files (Federico G. Schwindt)
59+
* Add missing transform, 944120 sibling 944240 (Manuel Spartan)
60+
* Fix false positive for 'like' in 942120 (Walter Hop)
61+
* Add regression tests for Java Rules (Manuel Spartan)
62+
* Fixup and small reorg of dokuwiki rule exclusion package (Christian Folini)
63+
* Make TravisCI tests fail if Apache can't load rules (Felipe Zipitría)
64+
* Add exclusion rules for Dokuwiki (Matt Bagley, Christian Folini)
65+
* Inital exclusions for NextCloud installs (Matt Bagley, Christian Folini)
66+
* Added struts-pwn UA to list (Manuel Spartan)
67+
* Uses MULTIPART_MISSING_SEMICOLON instead of MULTIPART_SEMICOLON_MISSING (Felipe Zimmerle)
68+
* Add file upload checks (Manuel Spartan)
69+
* Check if Transfer-Encoding is missing (Federico G. Schwindt, Christian Folini)
70+
* Remove duplicated variables (Federico G. Schwindt)
71+
* Reduce FP by splitting classic SQL injection rule 942370 (Christoph Hansen)
72+
* Fix typo in REQUEST-920-PROTOCOL-ENFORCEMENT (ihacku, Franziska Bühler)
73+
* Add configurable timestamp format to FTW integration (Christian Folini)
74+
* Add badges to README (Felipe Zipitría)
75+
* Add clarifying comments to 910110 (Christian Folini)
76+
* Making rule 933131 case-insensitive (Manuel Spartan)
77+
* Merge and reorder rules as part of cleanup (Federico G. Schwindt)
78+
* Update copyright date and syntax (Jose Nazario, Felipe Zipitría)
79+
* Updated SecMarker and SkipAfter names to use meet guidelines (Felipe Zipitría)
80+
* Tidy up single quotes and other guidelines updates (Felipe Zipitría)
81+
* Syntax fix for setvar crs_exclusions_wordpress (Manuel Spartan)
82+
* Updated various contributors to developers (Christian Folini)
83+
* Revise SQL rules by disassembling them into their core protections (Franziska Bühler)
84+
* Add an exmaple payload to 920220 (coolt)
85+
* Add a missing regex to rule 942310 (Franziska Bühler)
86+
* Detect GET or HEAD with Transfer-Encoding header (Federico G. Schwindt)
87+
* Fix broken links in references (Pásztor Gábor)
88+
* Add contributing guidelines (Felipe Zipitría)
89+
* Fix processing bypasses in rule 931130 (Felipe Zipitría, Christian Folini)
90+
* Correct small omissions in unix-shell.data (Walter Hop)
91+
* Add IIS specific detection to LFI-os-files.data (Manuel Spartan)
92+
* Update examples to match the current cleanup (Federico G. Schwindt)
93+
* Corrected the ordering of actions to meet guidelines (Felipe Zipitría)
94+
* Remove unused capture groups (Federico G. Schwindt)
95+
* Use explicit rx operator (Federico G. Schwindt)
96+
* Update the RCE regular expressions(Walter Hop, Federico G. Schwindt)
97+
* Removing maturity & accuracy from rules (Felipe Zipitría)
98+
* Increasing range header (Christoph Hansen)
99+
* Fixed upgrade.py script argument options (Glyn Mooney)
100+
* Updating to reflect OWASP flagship status (Chaim Sanders)
101+
* Adding Docker support for CRS (Chaim Sanders)
102+
* Initial Travis deployment (Zack Allen, Walter Hop)
103+
* Inital commit of regression tests (Chaim Sanders, Walter Hop)
104+
* Remove test for 921170 because it won't ever fire (Chaim Sanders, Walter Hop)
105+
* Update minor incorrectness in asp.net regex (Chaim Sanders, Walter Hop)
106+
* Add notification for builds against #modsecurity on freenode (Zack Allen, Walter Hop)
107+
* Add all past code contributors and convert to markdown (Walter Hop)
108+
* Block uploads of files with .phps extension (Walter Hop)
109+
* Improve message for script upload with superfluous extension (Walter Hop)
110+
* Remove trailing whitespace in various regexs (Walter Hop)
111+
* Add command popd to direct unix rce list in rule 932150 (Franziska Bühler)
112+
* Remove unnecessary END_XSS_CHECKS marker (Christian Folini)
113+
* Ignore Whitespaces in Rule 942110 (Christoph Hansen)
114+
* Update missing RCE Commands (Umar Farook)
115+
* Update lfi-os-files.data (Umar Farook)
116+
* Removed deprecated t:removeComments from 942100 (Christian Folini)
117+
* Add word boundary to rule 942410 (Franziska Bühler)
9118

10119
== Version 3.0.2 - 5/12/2017 ==
11120

12121
* Remove debug rule that popped up in 3.0.1 (Christian Folini)
13122

123+
14124
== Version 3.0.1 - 5/9/2017 ==
15125

16126
* SECURITY: Removed insecure handling of X-Forwarded-For header;
@@ -48,7 +158,6 @@
48158
* Fixed bug with DoS rule 912160 (@loudly-soft, Christian Folini)
49159

50160

51-
52161
== Version 3.0.0 - 11/10/2016 ==
53162

54163
Huge changeset running in separate branch from September 2013 to September 2016.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ please adhere to the following contributing guidelines.
1414

1515
## Making Changes
1616

17-
* Please base your changes on branch ```v3.1/dev```
17+
* Please base your changes on branch ```v3.2/dev```
1818
* Create a topic branch for your feature or bug fix.
19+
* Please fix only one problem at a time; this will help to quickly test and merge your change. If you intend to fix multiple unrelated problems, please use a separate branch for each problem.
1920
* Make commits of logical units.
2021
* Make sure your commits adhere to the rules guidelines below.
2122
* Make sure your commit messages are in the [proper format](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html): The first line of the message should have 50 characters or less, separated by a blank line from the (optional) body. The body should be wrapped at 70 characters and paragraphs separated by blank lines. Bulleted lists are also fine.
@@ -63,7 +64,6 @@ please adhere to the following contributing guidelines.
6364
sanitiseMatchedBytes
6465
ctl
6566
setenv
66-
rev
6767
ver
6868
severity
6969
setvar

CONTRIBUTORS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [Franziska Bühler](https://github.com/franbuehler)
1313
- [Christoph Hansen](https://github.com/emphazer)
1414
- [Victor Hora](https://github.com/victorhora)
15+
- [Andrea Menin](https://github.com/theMiddleBlue)
1516
- [Federico G. Schwindt](https://github.com/fgsch)
1617
- [Manuel Spartan](https://github.com/spartantri)
1718
- [Felipe Zimmerle](https://github.com/zimmerle)
@@ -20,25 +21,35 @@
2021
## Contributors:
2122

2223
- [Zack Allen](https://github.com/zmallen)
24+
- [azhao155](https://github.com/azhao155)
25+
- [Matt Bagley](https://github.com/bagley)
2326
- [Ryan Barnett](https://github.com/rcbarnett)
27+
- [Allan Boll](https://github.com/allanbomsft)
2428
- [Jeremy Brown](https://github.com/jwbrown77)
2529
- [Jonathan Claudius](https://github.com/claudijd)
30+
- [coolt](https://github.com/coolt)
2631
- [Ashish Dixit](https://github.com/tundal45)
32+
- [Padraig Doran](https://github.com/padraigdoran)
33+
- [Umar Farook](https://github.com/umarfarook882)
2734
- [FrozenSolid](https://github.com/frozenSolid)
35+
- [Pásztor Gábor](https://github.com/gpasztor87)
2836
- [Aaron Haaf](https://github.com/Everspace)
2937
- [Michael Haas](https://github.com/MichaelHaas)
3038
- [jamuse](https://github.com/jamuse)
3139
- [Krzysztof Kotowicz](https://github.com/koto)
3240
- [Evgeny Marmalstein](https://github.com/shimshon70)
3341
- [Christian Mehlmauer](https://github.com/FireFart)
3442
- [Glyn Mooney](https://github.com/skidoosh)
43+
- [Jose Nazario](https://github.com/paralax)
44+
- [Scott O'Neil](https://github.com/cPanelScott)
3545
- [Robert Paprocki](https://github.com/p0pr0ck5)
3646
- [Christian Peron](https://github.com/csjperon)
3747
- [Elia Pinto](https://github.com/yersinia)
3848
- [Brian Rectanus](https://github.com/b1v1r)
3949
- Ofer Shezaf
4050
- Breno Silva
4151
- [Marc Stern](https://github.com/marcstern)
52+
- [theMiddle](https://github.com/theMiddleBlue)
4253
- [Ben Williams](https://github.com/benwilliams)
4354
- [Greg Wroblewski](https://github.com/gwroblew)
4455
- [ygrek](https://github.com/ygrek)

IDNUMBERING

Lines changed: 0 additions & 4 deletions
This file was deleted.

INSTALL

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ Installing From a Package Manager
2525
maintained by independent packagers who package CRS in their own time.
2626
Historically, many of these packages have been out of date. As such,
2727
it is recommended that you install, where possible, from our GitHub
28-
repository. The following packages are known to exist:
28+
repository. The following CRS 3.x packages are known to exist:
2929

30-
*There are currently no known packages of CRS 3.x.*
30+
modsecurity-crs - Debian
31+
mod_security_crs - Fedora
32+
modsecurity-crs - Gentoo
3133

32-
Packages of CRS 2.0 are incompatible with CRS 3.x.
34+
Packages of CRS 2.x are incompatible with CRS 3.x.
3335

3436
Installing From Git
3537
===================

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2006 the OWASP Core Rule Set contributors
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
[![Join the chat at https://gitter.im/owasp-crs/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/owasp-crs/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)![Travis build v3.1/dev](https://badges.herokuapp.com/travis/SpiderLabs/owasp-modsecurity-crs?branch=v3.1/dev&label=CRS%20v3.1/dev)![Travis build v3.0/dev](https://badges.herokuapp.com/travis/SpiderLabs/owasp-modsecurity-crs?branch=v3.0/dev&label=CRS%20v3.0/dev)![Travis build v3.0/master](https://badges.herokuapp.com/travis/SpiderLabs/owasp-modsecurity-crs?branch=v3.0/master&label=CRS%20v3.0/master)
1+
![Travis build v3.2/dev](https://badges.herokuapp.com/travis/SpiderLabs/owasp-modsecurity-crs?branch=v3.2/dev&label=CRS%20v3.2/dev)![Travis build v3.1/dev](https://badges.herokuapp.com/travis/SpiderLabs/owasp-modsecurity-crs?branch=v3.1/dev&label=CRS%20v3.1/dev)![Travis build v3.0/dev](https://badges.herokuapp.com/travis/SpiderLabs/owasp-modsecurity-crs?branch=v3.0/dev&label=CRS%20v3.0/dev)
22
[![OWASP Flagship](https://img.shields.io/badge/owasp-flagship%20project-38a047.svg)](https://www.owasp.org/index.php/OWASP_Project_Inventory#tab=Flagship_Projects)
3+
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1390/badge)](https://bestpractices.coreinfrastructure.org/projects/1390)
34

45
# OWASP ModSecurity Core Rule Set (CRS)
56

id_renumbering/IDNUMBERING

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)