Posts: 675
Threads: 107
Joined: Apr 2010
Reputation:
0
Going to setup a test domain this weekend and going to try to finally implent IDS on my server. Although I find modsecurity quite confusing still. With the asl rules my whole site becomes access denied and with just the base rules activated I get errors when changing some settings in the joomla backend. I'll have a look at it later.
Posts: 955
Threads: 36
Joined: Sep 2008
Reputation:
0
"Options -Indexes" is supposed to be an apache default setting for quite some time now.
I remember the days when +Indexes was commonplace, then -Indexes and "403=welcome.html" kicked in (which caused me no end of headache when trying to debug Apache configs, I tell you).
In terms of pen-testing, nessus can scan and report vulns.
To see what's happening in real-time, "tail -f /var/log/httpd/mod_security.log" or so to watch reports scrolling up the page.
Posts: 675
Threads: 107
Joined: Apr 2010
Reputation:
0
in my case it would be audit_log. Seems to be working :)
tail -f /var/log/httpd/audit_log
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoj7UQg8AAC-zIsAAAAAA] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-2LQoAAAAD] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-0JiQAAAAB] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-3MHkAAAAE] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-4M@wAAAAF] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-1KZ4AAAAC] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-5N18AAAAG] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.9.54] [domain feedmebits.nl] [200] [/20111129/20111129-1305/20111129-130555-TtTKoz7UQg8AAC-6OsoAAAAH] [file "/etc/httpd/modsecurity.d/asl/modsec/00_asl_zz_strict.conf"] [line "37"] [id "330792"] [msg "Multipart parser detected a possible unmatched boundary. This may be an impedence mismatch attack, a broken application or a broken connection. This is not a false positive. Check your application or client for errors."] [severity "CRITICAL"] Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required.
[modsecurity] [client 145.117.4.128] [domain feedmebits.nl] [500] [/20111129/20111129-1310/20111129-131010-TtTLoj7UQg8AAC-0JiUAAAAB] (null)
[modsecurity] [client 80.190.226.155] [domain feedmebits.nl] [400] [/20111129/20111129-1543/20111129-154345-TtTvoT7UQg8AAC-zIsQAAAAA] (null)
Posts: 955
Threads: 36
Joined: Sep 2008
Reputation:
0
When I've been debugging mod_sec, I find that a tail of that logfile when a site breaks on me shows what's tripping it (rule name, ID, etc).
Note that - in terms of vulnerabilities - disclosure of information is not insecure in itself. How that information is used to enumerate and select an exploit is.
Concealing the fact you're using a version of PHP does not make that version secure, it just means a cracker will take longer to choose an appropriate attack vector.