Skip to content

fix(942160): adding unit test for double comment#4315

Merged
EsadCetiner merged 2 commits into
coreruleset:mainfrom
touchweb-vincent:patch-3
Nov 4, 2025
Merged

fix(942160): adding unit test for double comment#4315
EsadCetiner merged 2 commits into
coreruleset:mainfrom
touchweb-vincent:patch-3

Conversation

@touchweb-vincent
Copy link
Copy Markdown
Contributor

Hello,

There is very likely a unit test on mod_security2 itself to ensure that the t:replaceComments transformation is resilient to bypass attempts, but I think it’s missing one specifically for this rule.

I would understand if you don’t find it useful.

Copy link
Copy Markdown
Member

@EsadCetiner EsadCetiner left a comment

Choose a reason for hiding this comment

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

Makes sense, doesn't hurt to add a extra test for this case.

Comment thread tests/regression/tests/REQUEST-942-APPLICATION-ATTACK-SQLI/942160.yaml Outdated
…160.yaml

Co-authored-by: Esad Cetiner <104706115+EsadCetiner@users.noreply.github.com>
@EsadCetiner EsadCetiner added this pull request to the merge queue Nov 4, 2025
Merged via the queue into coreruleset:main with commit 4f40f0e Nov 4, 2025
6 checks passed
@touchweb-vincent touchweb-vincent deleted the patch-3 branch November 4, 2025 10:40
@fzipi fzipi mentioned this pull request Dec 1, 2025
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.

3 participants