Skip to content

Conversation

@victorhora
Copy link
Contributor

This fixes issue #2000.

The problem seems to be that the conditions to push ruleMessage below is not met when only deny action is used:

https://github.com/SpiderLabs/ModSecurity/blob/6d5198b1a60992416c9c8f1d77754e8e5edba996/src/rule.cc#L815-L822

Then when the for loop to append m_rulesMessages to the audit_log string stream is called, the content of this std::list seems to be empty:

https://github.com/SpiderLabs/ModSecurity/blob/6d5198b1a60992416c9c8f1d77754e8e5edba996/src/transaction.cc#L1486-L1489

@victorhora victorhora added 3.x Related to ModSecurity version 3.x pr available labels Mar 15, 2019
@victorhora victorhora added this to the v3.0.4 milestone Mar 15, 2019
@victorhora victorhora requested a review from zimmerle March 15, 2019 22:58
@defanator
Copy link
Contributor

@victorhora I can confirm that this one fixes an issue reported in #2000.

@zimmerle
Copy link
Contributor

merged at: d4dc3db

@zimmerle zimmerle closed this Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Related to ModSecurity version 3.x pr available

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants