当前位置:首页 >> 网络通讯 >> 网络安全 >> 内容

74CMS(骑士人才系统)几个注入(可进后台)

时间:2013/4/19 12:09:00 作者:平凡之路 来源:xuhantao.com 浏览:

整套程序过滤的还是比较全面的 不过所有版本都是GBK编码是他的硬伤 但是基本上字符串入库的时候作者都使用了iconv来把提交过来的数据编码转换成utf8

所以利用宽字符注入就没办法了 但是过滤完善仅限3.2版本之前 最新的3.2版本plus目录多了几个文件 不知道是不是换了程序员了... 先上两个白痴注入吧~


注射1:

\plus\ajax_officebuilding.php (16行)

if($act == 'alphabet')
{
        $alphabet=trim($_GET['x']); //笑嘻嘻  肯定是换程序员了 不解释
        if (!empty($alphabet))
        {
$result = $db->query("select * from ".table('category')." where c_alias='QS_officebuilding' AND c_index='{$alphabet}' "); //笑嘻嘻
        while($row = $db->fetch_array($result))
        {
                if ($listtype=="li")
                {
                $htm.="<li  title=\"{$row['c_name']}\" id=\"{$row['c_id']}\">{$row['c_name']}</li>";
                }
                else
                {
                $htm.="<li><a href=\"?officebuildingid={$row['c_id']}\" title=\"{$row['c_note']}\" class=\"vtip\">{$row['c_name']}</a><span>{$row['stat_jobs']}</span></li>";
                }
        }
        if (empty($htm))
        {
        $htm="<span class=\"noinfo\">没有找到首字母为:<span>{$alphabet}</span>  的写字楼!</span>";
        }
        $htm.="<script type=\"text/javascript\"> vtip();</script>";
        exit($htm);
        }
}

注射2: \plus\ajax_street.php (16行)

if($act == 'alphabet')
{
        $alphabet=trim($_GET['x']);  //几乎和上面一个注入一模一样的  不多说了
        if (!empty($alphabet))
        {
$result = $db->query("select * from ".table('category')." where c_alias='QS_street' AND c_index='{$alphabet}' ");//笑嘻嘻
        while($row = $db->fetch_array($result))
        {
                if ($listtype=="li")
                {
                $htm.="<li  title=\"{$row['c_name']}\" id=\"{$row['c_id']}\">{$row['c_name']}</li>";
                }
                else
                {
                $htm.="<li><a href=\"?streetid={$row['c_id']}\" title=\"{$row['c_note']}\" class=\"vtip\">{$row['c_name']}</a><span>{$row['stat_jobs']}</span></li>";
                }
        }
        if (empty($htm))
        {
        $htm="<span class=\"noinfo\">没有找到首字母为:<span>{$alphabet}</span>  的道路!</span>";
        }
        exit($htm);
        }
}
Exp:

相关文章
  • 没有相关文章
  • 徐汉涛(www.xuhantao.com) © 2024 版权所有 All Rights Reserved.
  • 部分内容来自网络,如有侵权请联系站长尽快处理 站长QQ:965898558(广告及站内业务受理) 网站备案号:蒙ICP备15000590号-1