#1 (permalink)  
Alt 07.03.2006, 10:52
 
Registriert seit: 22.02.2005
Beiträge: 36
Standard

Ich habe das Mail 5000 Mal (in 10 Minuten ungef?hr) bekommen.

Attention site admin of Le portail du nain de jardin. Tubes peinture acrylique, On DATE_FORMAT_LONG at DATE_TIME_FORMAT_SHORT the xt:C System has detected that somebody tried to send information to your site that may have been intended as a hack. Do not panic, it may be harmless: maybe this detection was triggered by something you did! Anyway, it was detected and blocked. The suspicious activity was recognized in /var/alternc/html/k/k6/www/xt/inc/xtc_Security.inc.php on line 116, and is of the type xt:C Security Alert. Additional information given by the code which detected this: Intrusion detection. Below you will find a lot of information obtained about this attempt, that may help you to find what happened and maybe who did it.

Ist es schlim ?
Was kann ich tun ?
Danke.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 20.03.2006, 13:27
Erfahrener Benutzer
 
Registriert seit: 15.02.2005
Beiträge: 101
Standard

Wie interpretiert man das am besten? Hat da jemand eine Ahnung? Es tritt vermehrt in letzter Zeit bei unseren 3.0.3 Shops auf, jedoch bei 3.0.4 Shops haben wir die Probleme nicht.

MFG

kchris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 07.12.2006, 22:40
Erfahrener Benutzer
 
Registriert seit: 19.07.2006
Ort: Hamburg
Beiträge: 912
Frage Könnte es das sein?

Moin kchris,

hast Du Google Analytics im Shop laufen? Seitdem wir GA benutzen, haben wir nämlich das gleiche Problem - immer wieder "Intrusion Detection" im Cookie-Block der xtc_security.inc.php (so um Zeile 115 rum). Schau mal ob in den Mails bei "Information in the $_COOKIE array" so was ähnliches steht:
Zitat:
utmccn=(organic)|utmcsr=google|utmctr=irgendeinsuc hwort|utmcmd=organic
In einem PostNuke-Forum (PN benutzt die gleichen Security-Funktionen) hab' ich was interessantes dazu gefunden: http://support.pn-cms.de/module-CMS_...opic-19558.htm

Was da genau das Problem im Cookie verursacht (auf jeden Fall Google, nur was genau...), versuche ich noch rauszufinden. Es scheint aber zu helfen, Google Analytics erstmal aus dem Shop zu entfernen.

Cheers,
J

EDIT: Falls es wirklich *nur* Google ist, könnte folgende Änderung in der xtc_security.inc.php (so um Zeile 100 rum) hilfreich sein:
Code:
foreach ($_COOKIE as $secvalue) {
            if (!is_array($secvalue) ) {
ändern in
Code:
foreach ($_COOKIE as $secvalue) {
            if (!is_array($secvalue) && !strpos($secvalue, "utmccn=(organic)|utmcsr=google") ) {
Dann springt die Intrusion Detection nur noch an, wenn im Cookie *nicht* Google steht... Das ist zwar absolut dirty, ich probier's aber trotzdem grad aus. Generell sollte hier Google was ändern, nicht wir den Shop!!!

Geändert von John Steed (07.12.2006 um 23:18 Uhr)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 09.12.2006, 21:29
Erfahrener Benutzer
 
Registriert seit: 19.07.2006
Ort: Hamburg
Beiträge: 912
Ausrufezeichen Achtung, Sicherheitslücke!

Achtung, die von mit gestern vorgeschlagene Änderung bewirkt ein Sicherheitsleck, da sie die Intrusion Detection für alle Cookies mit den Inhalt google ausser Kraft setzt! Und Cookies lassen sich recht einfach fälschen...

Ich habe das ganze nochmal verbessert, so dass die Intrusion Detection wieder läuft, bei Google-Cookies lediglich keine Mail mehr verschickt wird (nochmals, die Intrusion Detection funktioniert trotzdem!):

Original-Code
Code:
//        Lets now sanitize the COOKIE vars
    if ( count($_COOKIE) > 0) {
        foreach ($_COOKIE as $secvalue) {
            if (!is_array($secvalue)) {
                if ((eregi("<[^>]*script.*\"?[^>]*>", $secvalue)) ||
                        (eregi(".*[[:space:]](or|and)[[:space:]].*(=|like).*", $secvalue)) ||
                        (eregi("<[^>]*object.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*iframe.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*applet.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*meta.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*style.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*form.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*window.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*alert.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*document.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*cookie.*\"?[^>]*>", $secvalue)) ||
                        (eregi("<[^>]*img.*\"?[^>]*>", $secvalue))
                        ) {

                        xtcMailHackAttempt(__FILE__,__LINE__,'xt:C Security Alert','Intrusion detection.');
                        xtc_redirect(FILENAME_DEFAULT);
                }
            }
        }
    }
ändern in
Code:
//        Lets now sanitize the COOKIE vars
    // added google mail filter - intrusion detection is still working
    if ( count($_COOKIE) > 0) {
        $ga = FALSE; // init google analytics flag
        foreach ($_COOKIE as $secvalue) {
            if (!is_array($secvalue)) {

                // check for google in cookie var
                if(strpos($secvalue, "utmccn=(organic)|utmcsr=google")){
                   $ga = TRUE; // set ga flag
                }
                // end check

                if ((eregi("<[^>]*script.*\"?[^>]*>", $secvalue)) ||
                    (eregi(".*[[:space:]](or|and)[[:space:]].*(=|like).*", $secvalue)) ||
                    (eregi("<[^>]*object.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*iframe.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*applet.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*meta.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*style.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*form.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*window.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*alert.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*document.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*cookie.*\"?[^>]*>", $secvalue)) ||
                    (eregi("<[^>]*img.*\"?[^>]*>", $secvalue))
                   ) {

                      if(!$ga){ // prevents mails being sent if cookie is google analytics
                         xtcMailHackAttempt(__FILE__,__LINE__,'xt:C Security Alert','COOKIE Intrusion detection.');
                      }
                      xtc_redirect(FILENAME_DEFAULT);
                }
            }
        }
    }
Das ist und bleibt aber dirty, da ich nicht einsehe, den Shop an Google anpassen zu müssen. Eher sollte sich Google bestehenden Webseiten anpassen...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 26.05.2008, 08:57
Erfahrener Benutzer
 
Registriert seit: 15.02.2005
Beiträge: 101
Standard

Na das Problem hatte ich jetzt bei einem Shop wieder, danke für deine Lösung. Eventuell gibt es das Problem mit dem neuen Google Analytics ja nicht mehr.

bye, kchris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
attempted, dete, hack, intrusion, site, type

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 09:21 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand