Skip to content
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

Backslashes 941170 #2345

Merged
merged 5 commits into from
Jan 27, 2022
Merged

Backslashes 941170 #2345

merged 5 commits into from
Jan 27, 2022

Conversation

RedXanadu
Copy link
Member

This PR moves rule 941170 to use \x5c backslash representation and adds two tests for it.

As a bonus, the two existing tests for rule 941170 get Accept headers added (so that they no longer trigger rule 920300, "Request Missing an Accept Header").

@RedXanadu RedXanadu mentioned this pull request Jan 2, 2022
22 tasks
Rule 941170's transformation pipeline was escaping the test payloads, so
that when, for example, "javascript: \t" was being sent the "\t" was
being interpreted as a literal tab character, which is not what we want
here. The test needs to be for literal "\" and "t" characters. Adding
additional backslashes works around the rule's transformations.
@franbuehler
Copy link
Contributor

Meeting decision January: @emphazer will review this PR.

@fzipi
Copy link
Member

fzipi commented Jan 22, 2022

@emphazer Can you take a look at this one?

@emphazer
Copy link
Contributor

@fzipi sure i will do it this week

@emphazer
Copy link
Contributor

i tested it with 10gb data and the matches are exactly the same.
this PR is ready to be merged!

@fzipi
Copy link
Member

fzipi commented Jan 27, 2022

Awesome! Merging!

@fzipi fzipi merged commit 7009ced into coreruleset:v3.4/dev Jan 27, 2022
@RedXanadu RedXanadu deleted the backslashes_941170 branch February 4, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants