Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under mod_ruid2 ot mod_mpm_itk SecAuditLog is only being logged to when request is to an IP (or localhost) #79

Open
drmuey opened this issue Mar 16, 2021 · 0 comments

Comments

@drmuey
Copy link

drmuey commented Mar 16, 2021

Versions

  • Apache v2.4.46
  • mod sec v3.0.4
  • Apache connector v0.0.9beta1
  • either
    • mod_ruid2 v0.9.8 ➜ vhost config has RUidGid dantest dantest in this case
    • mod_mpm_itk v2.4.7.4 ➜ vhost config has AssignUserID dantest dantest in this case

Reproduce:

Under mod_ruid2 or mod_mpm_itk:

Given this modsecurity_rules 'SecAuditLog /etc/apache2/logs/modsec_audit.log':

  • curl 127.0.0.1/something-that-trips-a-rule ➜ ✅ is in /etc/apache2/logs/modsec_audit.log
  • curl ip.addr.on.server/something-that-trips-a-rule ➜ ✅ is in /etc/apache2/logs/modsec_audit.log
  • curl localhost/something-that-trips-a-rule ➜ ✅ is in /etc/apache2/logs/modsec_audit.log
  • curl domain.on.server.example.com/something-that-trips-a-rule ➜ 🚨 is NOT in /etc/apache2/logs/modsec_audit.log

w/out either mod_ruid2 or mod_mpm_itk that domain based request is logged to /etc/apache2/logs/modsec_audit.log

According to the docs both concurrent (mod_ruid2 and mod_mpm_itk turn that on IIRC) and serial logging (w/out mod_ruid2 or mod_mpm_itk) should result in something being put inSecAuditLog:

This file will be used to store the audit log entries if serial audit logging format is used. If concurrent audit logging format is used this file will be used as an index, and contain a record of all audit log files created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant