fix(933150): reduce substring false positive matches#4340
Conversation
|
📊 Quantitative test results for language: |
fzipi
left a comment
There was a problem hiding this comment.
Maybe also updating https://github.com/EsadCetiner/coreruleset/blob/f5d2eeb0dd761ada71fd5ea1703647f13c6bdfbb/rules/REQUEST-933-APPLICATION-ATTACK-PHP.conf#L284 and https://github.com/EsadCetiner/coreruleset/blob/f5d2eeb0dd761ada71fd5ea1703647f13c6bdfbb/rules/REQUEST-933-APPLICATION-ATTACK-PHP.conf#L290 with the updated count?
|
@fzipi Thanks, updated |
fzipi
left a comment
There was a problem hiding this comment.
Can you add tests for only one opening parenthesis and another one with an encoded form %28?
Sorry to ask @EsadCetiner , but did you got time to add additional tests for this? So we can move on. |
Didn't I add the test you wanted here? cc5eb0d |
|
Sorry, didn't saw any answer and assumed you didn't. Will check now. |
fzipi
left a comment
There was a problem hiding this comment.
Approved. If you want to update the text to my comment, better.
Co-authored-by: Felipe Zipitría <3012076+fzipi@users.noreply.github.com>
Proposed changes
This PR reduces substring false positive matches with rule 933150 by moving the affected entries to 933160 which has some additional checks to avoid false positives.
I've also added a chained rule to 933150 which is meant to approximate the extra checks done by 933160 to further reduce false positives.
closes #4335
PR Checklist
commentfield to write the expected behaviorFurther comments
For the reviewer
ctl:requestBodyAccess=Offwere used in the rule