Hi, I've setup a new cpanel server woth mod security enabled. I see some hits below, are these actually being "blocked" or only reported on?
Usually I'd see ModSecurity: Access Denied in the log if it was blocked, however for the below I'm only seeing ModSecurity: Warning, would appreciate any help.
I haven't gone through all of your logs, but the way that the OWASP CRS
works by default is using the approach of "delayed blocking", meaning that
a number of rules can match and only cause warnings, but each rule that
match gets added to a score. After all the rules are evaluated the final
score is checked and if above a certain threshold you would get a block,
otherwise it would be just warnings...
Hi, I've setup a new cpanel server woth mod security enabled. I see some hits below, are these actually being "blocked" or only reported on?
Usually I'd see ModSecurity: Access Denied in the log if it was blocked, however for the below I'm only seeing ModSecurity: Warning, would appreciate any help.
Thanks
Last edit: Brad 2018-09-19
anyone
Hi,
Make sure that your SecRuleEngine
https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-%28v2.x%29#SecRuleEngine
directive
is set to "on". If it's "DetectionOnly" or "off" you will only get warnings.
I haven't gone through all of your logs, but the way that the OWASP CRS
works by default is using the approach of "delayed blocking", meaning that
a number of rules can match and only cause warnings, but each rule that
match gets added to a score. After all the rules are evaluated the final
score is checked and if above a certain threshold you would get a block,
otherwise it would be just warnings...
I suggest you to go over the INSTALL
https://github.com/SpiderLabs/owasp-modsecurity-crs/blob/v3.0/master/INSTALL
doc for OWASP CRS to understand how it works and how to tune it if you need.
Cheers
On Thu, Sep 20, 2018 at 6:45 PM Brad z714x4@users.sourceforge.net wrote:
--
Victor Ribeiro Hora
Thanks Victor for the reply, I've now changed the behaviour to "traditional" and seeing the exptected results.
Cheers