Skip to content

Modsecurity V3.0.4 + Nginx: Phase 3/4 Not Blocking  #2361

Closed
@s-ribeiro

Description

@s-ribeiro

Hi,

We are having an issue in Phase 3/4 rules which are detected but not blocked.
I found this issue similar with https://github.com/SpiderLabs/ModSecurity/issues/1568, however in my case I'm able to block in phase 1 and phase 2. I used a workaround to redirect to a static page hosted internally.

Tested both with action as redirect, deny, drop, but the result was the same.
SecDefaultAction "phase:4,log,auditlog,redirect:/403.html"
SecDefaultAction "phase:4,log,auditlog,deny,status:403"

As can be seen in the attached logs, multiple disruptive rules with action deny/drop/block are detected in the same transaction.
Example: 953120, 980140

logs.txt

Have anyone faced this issue and any idea how to fix it?

Thanks in advance,

Metadata

Metadata

Assignees

Labels

3.xRelated to ModSecurity version 3.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions