Skip to content

Conversation

@j0k2r
Copy link

@j0k2r j0k2r commented Jun 4, 2019

No description provided.

CHANGES Outdated
-------------------------------------

- Adds support to multiple ranges in ctl:ruleRemoveTargetById
[Issue #2110 - @theMiddleBlue, @zimmerle]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@j0k2r why you did put my name on it and where is yours? :)

Copy link
Author

@j0k2r j0k2r Jun 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry I don't know the ModSecurity CHANGES rules, I took the the issue "participants"

@dune73
Copy link
Contributor

dune73 commented Jun 7, 2019

Is this PR covering the use of multiple comma-separated IDs too? (-> ctl:ruleRemoveTargetById=1000,1999)

If it does, then adding a test case for that use would be helpful.

@j0k2r
Copy link
Author

j0k2r commented Jun 7, 2019

No, it only parse the Id range

@j0k2r
Copy link
Author

j0k2r commented Jun 7, 2019

@dune73, After doing some tests, it seems that neither ctl:ruleRemoveById nor ctl:ruleRemoveTargetById supports setting multiple IDs.

I'm not a Lexer expert but apparently with the https://github.com/SpiderLabs/ModSecurity/blob/cbd15ec1382f7e2c3e19a93ea9ca3e8b4ced44f6/src/parser/seclang-scanner.ll#L447 ruleRemoveBy does not support (,)

Don't know if I'm right.

@dune73
Copy link
Contributor

dune73 commented Jun 7, 2019

Thank you for checking. Much appreciated. So many subtle shortcomings with v3...

@zimmerle
Copy link
Contributor

zimmerle commented Nov 3, 2020

Thank you @j0k2r. Added this as part of #2430. Merged on 3.1-experimental

@zimmerle zimmerle closed this Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Related to ModSecurity version 3.x enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants