Temporarily accept invalid MULTIPART_SEMICOLON_MISSING operator#1701
Temporarily accept invalid MULTIPART_SEMICOLON_MISSING operator#1701victorhora wants to merge 1 commit intoowasp-modsecurity:v3/masterfrom victorhora:v3/dev/add-op-SEMICOLON_MISSING
Conversation
|
@victorhora @zimmerle wow. Are you guys going to merge this one before next libmodsecurity release? On a related note (not sure if you have seen this in slack) - currently libmodsecurity fails to load default crs-setup.conf with the following error: This error started to appear after this changeset: 64ce412 Appreciate any ideas on how to fix this one as well. |
|
hey @defanator, merging this one is my idea to avoid those issues happening too often. I'm not sure if @zimmerle likes this idea too much as it's a dumb/fake variable that gets pointed to the right one in the end... but I don't see an alternative as of now as it might not be backported on CRS 3.0.x About the issue with the unsupported directive, I've suggested a change at v3/dev/fix-seccol_timeout_err_crs branch. It will make the error go away until the feature is addressed. |
|
Well. I would fix it on OWASP CRS. ModSec v3 points to the error, while v2 silent fails. IMHO the fact that no one is noticing is not a reason to not fix. Ultimately it is a missing check. Anyhow, this pull request seems to bring a benefit to the less experienced user which is always good. It was indeed a good idea. Merged. Thank you @victorhora. Yes @defanator, this will be part of our next release. |
MULTIPART_SEMICOLON_MISSING is now accepted by the parser and referred to MultipartMissingSemicolon. Ex:
SecRule MULTIPART_SEMICOLON_MISSING "!@eq 0" "id:'200011',phase:2,msg:'MULTIPART_SEMICOLON_MISSING'"results in:Matched "Operator `Eq' with parameter `0' against variable `MULTIPART_MISSING_SEMICOLON' (Value: `1' ) [id "200011"] [rev ""] [msg "MULTIPART_SEMICOLON_MISSING"]Suggested temporary addition to the parser related with SpiderLabs/owasp-modsecurity-crs#995, SpiderLabs/owasp-modsecurity-crs#1023 and to avoid issues like SpiderLabs/owasp-modsecurity-crs#1032 and SpiderLabs/owasp-modsecurity-crs#1021.