Ich betreibe ein kleines CMS für einen Kunden, dieser hat nun ein Update eingespielt und seitdem schlägt mod_security beim Kontaktformular alarm. Leider auch wenn normale Daten eingegeben werden. Ich würde nun gern die rules.conf so anpassen, das die entsprechende Regel noch zieht, aber nicht mehr bei diesem Fehler, allerdings auch weiterhin bei dem Kontaktformular, wenn es geht. Hat da jemand eine Idee?
Auszug aus audit.log:
Code: Select all
==85018375==============================
Request: www.domain.de 85.176.xx.xx - - [10/Jan/2008:20:25:34 +0100] "POST /front_content.php?idcat=54 HTTP/1.1" 500 5
38 "http://www.domain.de/front_content.php?idcatart=77&lang=1&client=1" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11" - "-"
Handler: x-httpd-php
----------------------------------------
POST /front_content.php?idcat=54 HTTP/1.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Connection: keep-alive
Content-Length: 263
Content-Type: application/x-www-form-urlencoded
Cookie: style=norm_small; sid_1_1=cf92e5c30b255a1273f33ab44d564a40
Host: www.domain.de
Keep-Alive: 300
Referer: http://www.domain.de/front_content.php?idcatart=77&lang=1&client=1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
mod_security-action: 500
mod_security-message: Access denied with code 500. Pattern match "(insert[[:space:]]+into.+values|select.*from.+[a-z|A-Z|0
-9]|select.+from|bulk[[:space:]]+insert|union.+select|convert.+\(.*from)" at POST_PAYLOAD [id "300016"][rev "2"] [msg "Ge
neric SQL injection protection"] [severity "CRITICAL"]
263
recipient=Please+select&email_from_name=Nachname%2C+Vorname&company_from_mail=&zipcode_from_mail=55555&street_from_mail=Ham
burg&country=Germany&email_from_mail=mail%40domain.tld&telefone_from_mail=&telefax_from_mail=&betreff=&kommentar=Test&x=44&y=12
HTTP/1.1 500 Internal Server Error
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
--85018375--
MfG,
toberkel