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

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

缺陷编号:wooyun-2014-087779

漏洞标题:dtcms过滤不严导致注入

相关厂商:dtcms.net

漏洞作者: darker

提交时间:2014-12-19 15:27

修复时间:2015-04-02 10:23

公开时间:2015-04-02 10:23

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-12-19: 细节已通知厂商并且等待厂商处理中
2014-12-24: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2015-02-17: 细节向核心白帽子及相关领域专家公开
2015-02-27: 细节向普通白帽子公开
2015-03-09: 细节向实习白帽子公开
2015-04-02: 细节向公众公开

简要描述:

官方demo测试成功。某处过滤不严。

详细说明:

漏洞文件aspx\main\usercenter.aspx

protected override void InitPage()
{
this.action = DTRequest.GetQueryString("action");
DataTable dt = new user_login_log().GetList(2, "user_name='" + this.userModel.user_name + "'", "id desc").Tables[0];
if (dt.Rows.Count == 2)
{
this.curr_login_ip = dt.Rows[0]["login_ip"].ToString();
this.pre_login_ip = dt.Rows[1]["login_ip"].ToString();
this.pre_login_time = dt.Rows[1]["login_time"].ToString();
}
else
{
if (dt.Rows.Count == 1)
{
this.curr_login_ip = dt.Rows[0]["login_ip"].ToString();
}
}
this.total_order = new orders().GetCount("user_name='" + this.userModel.user_name + "' and status<3");
this.total_msg = new user_message().GetCount("accept_user_name='" + this.userModel.user_name + "' and is_read=0");
if (this.action == "exit")
{
HttpContext.Current.Session["dt_session_user_info"] = null;
Utils.WriteCookie("dt_cookie_user_name_remember", "DTcms", -43200);
Utils.WriteCookie("dt_cookie_user_pwd_remember", "DTcms", -43200);
Utils.WriteCookie("UserName", "DTcms", -1);
Utils.WriteCookie("Password", "DTcms", -1);
HttpContext.Current.Response.Redirect(base.linkurl("login", new object[0]));
}
}


注册时未对用户做检测

1.png


漏洞证明:

2.png


修复方案:

用户名这里写个正则检测吧。

版权声明:转载请注明来源 darker@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-04-02 10:23

厂商回复:

最新状态:

暂无