Skip to content

Fixed validateByteRange parsing method #2017

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

Conversation

airween
Copy link
Member

@airween airween commented Feb 3, 2019

There is a bug in @validateByRange operator parsing: if the argument is something like this: "32,34,38,42-59,61,65-90,95,97-122" (see https://github.com/SpiderLabs/owasp-modsecurity-crs/blob/ab24a20faf28156f0495b0c07f2ff37860a3defe/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf#L1476-L1493 rule), then the 3rd block will evaluated as "38,42-59", not "38" and "42-59".

Also the test file for regression test had been added.

@victorhora victorhora added the 3.x Related to ModSecurity version 3.x label Feb 8, 2019
@victorhora victorhora added this to the v3.0.4 milestone Feb 8, 2019
zimmerle added a commit that referenced this pull request Feb 12, 2019
@zimmerle zimmerle self-requested a review February 12, 2019 12:14
@zimmerle
Copy link
Contributor

Merged! Thanks!

@zimmerle zimmerle closed this Feb 12, 2019
@airween airween deleted the v3/op_valid_byte_range_fix branch March 11, 2019 21:23
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants