-
-
Notifications
You must be signed in to change notification settings - Fork 402
Backport v3.2 from v3.3 #3347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport v3.2 from v3.3 #3347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the modifications, see the detailed comments above.
 | ||
 | ||
[](https://www.owasp.org/index.php/OWASP_Project_Inventory#tab=Flagship_Projects) | ||
 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we want to add the next version's URL into the README? Is there any reason?
# This would point to an attempt to inject a 2nd request into the request, thus bypassing | ||
# tests carried out on the primary request. | ||
# | ||
# [ References ] | ||
# http://projects.webappsec.org/HTTP-Request-Smuggling | ||
# | ||
SecRule ARGS_NAMES|ARGS|XML:/* "@rx [\n\r]+(?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)\s+[^\s]+(?:\s+http|[\r\n])" \ | ||
SecRule ARGS_NAMES|ARGS|REQUEST_BODY|XML:/* "@rx (?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)\s+[^\s]+(?:\s+http\/\d|[\r\n])" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this modification is not complete, a part of the new regex is missing after unlock)
: (?:\/|\w)
. The line in 3.3 is this:
SecRule ARGS_NAMES|ARGS|REQUEST_BODY|XML:/* "@rx (?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)\s+(?:\/|\w)[^\s]*(?:\s+http\/\d|[\r\n])" \
@@ -84,7 +84,7 @@ SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|ARGS_NAME | |||
setvar:'tx.anomaly_score_pl1=+%{tx.critical_anomaly_score}'" | |||
|
|||
|
|||
SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|ARGS_NAMES|ARGS|XML:/* "@rx (?:\bhttp\/(?:0\.9|1\.[01])|<(?:html|meta)\b)" \ | |||
SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|ARGS_NAMES|ARGS|XML:/* "@rx (?:\bhttp\/\d|<(?:html|meta)\b)" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is an extra \
character here before the /\d
. In 3.3 the operator's argument is this:
(?:\bhttp/\d|<(?:html|meta)\b)
(and not (?:\bhttp\/\d|<(?:html|meta)\b)
)
tag:'language-multi',\ | ||
tag:'platform-multi',\ | ||
tag:'attack-protocol',\ | ||
tag:'paranoia-level/1',\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not have paranoia-level/N
tags in 3.2, you should remove this tag.
tag:'OWASP_CRS',\ | ||
tag:'OWASP_CRS/WEB_ATTACK/HTTP_SPLITTING',\ | ||
ctl:auditLogParts=+E,\ | ||
ver:'OWASP_CRS/3.2.0',\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you should add tag OWASP_CRS/3.2.3
, not 3.2.0
.
@@ -121,7 +121,7 @@ SecRule ARGS "@rx ^(?i:file|ftps?|https?)://(.*)$" \ | |||
severity:'CRITICAL',\ | |||
setvar:'tx.rfi_parameter_%{MATCHED_VAR_NAME}=%{tx.1}',\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An extra .
(dot) is missing from here. The correct action is:
setvar:'tx.rfi_parameter_%{MATCHED_VAR_NAME}=.%{tx.1}',\
We have decided to close this PR and focus on the v4 release. |
i tried to focus on critical changes.
i skipped #1805 for example.