10000 Backslashes 941330 by RedXanadu · Pull Request #2375 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Backslashes 941330 #2375

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

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Conversation

RedXanadu
Copy link
Member
@RedXanadu RedXanadu commented Feb 5, 2022

This PR removes the \\\\ backslash representation from the regular expression in rule 941330.

This rule will now also work correctly in Nginx, which it didn't before (due to the \\\\ issue with Nginx), and the tests for this rule work correctly against the Nginx CRS container.

Note: The backslash pattern is already covered by test 941330-1, hence a new test is not required in this instance.

This is part of ongoing issue #2332.

Suggestion to Review/Test

If someone could double-check the amendments to the regex, and maybe test that the modified rule catches the payloads expected?

8000
@RedXanadu RedXanadu mentioned this pull request Feb 5, 2022
22 tasks
@RedXanadu RedXanadu changed the title Amend regex to use \x5c pattern for backslash Backslashes 941330 Feb 6, 2022
@theseion theseion requested review from theseion and airween February 7, 2022 19:50
@fzipi
Copy link
Member
fzipi commented Feb 14, 2022

Reviewed. Looks good to me.

@fzipi fzipi merged commit 3dcce86 into coreruleset:v3.4/dev Feb 14, 2022
@RedXanadu RedXanadu deleted the amend_941330_regex branch February 15, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0