HP OpenView网络节点管理器ovalarmsrv.exe服务多个远程漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1114948 漏洞类型 缓冲区溢出
发布时间 2008-04-07 更新时间 2008-10-09
CVE编号 CVE-2008-3544 CNNVD-ID CNNVD-200810-177
漏洞平台 Windows CVSS评分 9.0
|漏洞来源
https://www.exploit-db.com/exploits/5396
https://www.securityfocus.com/bid/28668
https://cxsecurity.com/issue/WLB-2008100153
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200810-177
|漏洞详情
HPOpenView网络节点管理器(OVNNM)是HP公司开发和维护的网络管理系统软件,具有强大的网络节点管理功能。OVNNM的ovalarmsrv服务中存在多个远程漏洞,远程攻击者可以执行任意代码或导致拒绝服务。A]ovalarmsrv格式串漏洞,ovalarmsrv.exe进程监听于2953端口。如果使用缺少了以下格式参数的消息调用了ov.fprintf_new(之后会调用vsprintf)的话,就会导致格式串攻击;B]ovalarmsrv缓冲区溢出,ovalarmsrv.exe进程还监听于2954端口使用特定的sscanf格式处理某些类型的请求,某些没有检查客户端字符串的长度,用户所使用的格式串参数大于512字节,就可能触发栈溢出;C]ovalarmsrv拒绝服务,如果向ovalarmsrv服务发送了某些无效值的话,就会导致100%的CPU使用率,无法再处理2953/2954端口上的请求。
|漏洞EXP
#######################################################################

                             Luigi Auriemma

Application:  HP OpenView Network Node Manager
              http://www.openview.hp.com/products/nnm/
Versions:     <= 7.53
Platforms:    Windows (tested), Solaris, Linux, HP-UX
Bugs:         A] format string in ovalarmsrv
              B] multiple buffer-overflows in ovalarmsrv
              C] Denial of Service in ovalarmsrv
Exploitation: remote
Date:         07 Apr 2008
Author:       Luigi Auriemma
              e-mail: aluigi@autistici.org
              web:    aluigi.org


#######################################################################


1) Introduction
2) Bugs
3) The Code
4) Fix


#######################################################################

===============
1) Introduction
===============


>From vendor's website:
OpenView NNM "automates the process of developing a hyper-accurate
topology of your physical network, virtual network services and the
complex relationships between them. It then uses that topology as the
basis for intelligent root cause analysis to enhance network
availability and performance."


#######################################################################

=======
2) Bugs
=======

------------------------------
A] format string in ovalarmsrv
------------------------------

The ovalarmsrv.exe process listening on port 2953 is affected by a
format string vulnerability caused by the calling of ov.fprintf_new
(which then calls vsprintf) using the final message without a format
argument:

  "Connection Refused; Data in listener port corrupt: ATTACKER_STRING"


------------------------------------------
B] multiple buffer-overflows in ovalarmsrv
------------------------------------------

The same process listens also on port 2954 where are handled some types
of requests using specific sscanf formats:

  REQUEST_SEV_CHANGE    (47): "%d %d %d %[^\n]"
  REQUEST_SAVE_STATE    (61): "%d %[^\n]s"
  REQUEST_LOCAL         (66): "%d"
  REQUEST_RESTORE_STATE (62): "%d %s"
  REQUEST_SAVE_DIR      (63):

As visible by the previous format arguments there are no checks on the
length of the client string handled by the requests 47, 61 and 62 which
can be used to exploit a stack based buffer-overflow vulnerability
using a string parameter longer than 512 bytes.


----------------------------------
C] Denial of Service in ovalarmsrv
----------------------------------

Another problem of the ovalarmsrv service is that it can be easily
freezed with CPU at 100% and without the possibility of handling
further requests on port 2953/2954 simply sending some invalid values.


#######################################################################

===========
3) The Code
===========


A]
echo %n%n%s%n%n%s | nc SERVER 2953 -v -v

B]
echo 62 AAAAAAAAAAAAA...512_'A's...AAAAAAAAAAAAA | nc SERVER 2954 -v -v

C]
echo 47 1 2 what_you_want | nc SERVER 2954 -v -v -w 1


#######################################################################

======
4) Fix
======


No fix


#######################################################################

# milw0rm.com [2008-04-07]
|受影响的产品
HP OpenView Network Node Manager 7.53 HP OpenView Network Node Manager 7.51 HP OpenView Network Node Manager 7.50 HP OpenView Network Node Manager 7.01
|参考资料

来源:HP
名称:SSRT080042
链接:http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01537275
来源:BID
名称:28668
链接:http://www.securityfocus.com/bid/28668
来源:BUGTRAQ
名称:20080407MultiplevulnerabilitiesinHPOpenViewNNM7.53
链接:http://www.securityfocus.com/archive/1/490541
来源:SREASON
名称:4397
链接:http://securityreason.com/securityalert/4397
来源:SECUNIA
名称:31688
链接:http://secunia.com/advisories/31688
来源:MISC
链接:http://downloads.securityfocus.com/vulnerabilities/exploits/28668.c
来源:MISC
链接:http://aluigi.altervista.org/adv/closedview_old-adv.txt