View Single Post
  #1  
Old 01-02-2013, 06:53 PM
c0ldshadow c0ldshadow is offline
Member
 
Join Date: Aug 2011
Posts: 10
Question ModSecurity Audit Log issue - audit log not written to in chain rules

Hi, I have question about the audit log.

The following rule I have in one vhost. Upon accessing test.php, as expected, a full capture goes into the audit log

SecRule REQUEST_URI "/test\.php" auditlog,deny


However...

SecRule REQUEST_URI "/test\.php" chain
SecRule ARGS:username "blah" auditlog,deny

^ the above rule DOES block my request and it logs to error.log. But nothing gets logged to the auditlog. The Audit Log only fails to get written to in rules with chain in it.

Any idea how to make chain rule blocks go to the auditlog as well?

Some settings, server level:

Enable Request Filtering
Yes

Debug Log Level
9

Default Action
Not Set


Scan Request Body
Yes

Disable .htaccess Override
Not Set

Enable Security Audit Log
Yes


Security Audit Log
/removed/audit.log

Last edited by c0ldshadow; 01-02-2013 at 08:06 PM..
Reply With Quote