Lucene search

K
openvasThis script is Copyright (C) 2011 Greenbone Networks GmbHOPENVAS:103060
HistoryFeb 03, 2011 - 12:00 a.m.

HP OpenView Performance Insight Server 'doPost()' Remote Arbitrary Code Execution Vulnerability

2011-02-0300:00:00
This script is Copyright (C) 2011 Greenbone Networks GmbH
plugins.openvas.org
12

0.972 High

EPSS

Percentile

99.8%

HP OpenView Performance Insight Server is prone to a remote
code-execution vulnerability.

An attacker can exploit this issue to execute arbitrary code with
SYSTEM-level privileges. Successful exploits will completely compromise
affected computers.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_hp_performance_insight_46079.nasl 7044 2017-09-01 11:50:59Z teissa $
#
# HP OpenView Performance Insight Server 'doPost()' Remote Arbitrary Code Execution Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2011 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_summary = "HP OpenView Performance Insight Server is prone to a remote
code-execution vulnerability.

An attacker can exploit this issue to execute arbitrary code with
SYSTEM-level privileges. Successful exploits will completely compromise
affected computers.";

tag_solution = "Updates are available. Please see the references for details.";

if (description)
{
 script_xref(name : "URL" , value : "https://www.securityfocus.com/bid/46079");
 script_xref(name : "URL" , value : "http://www.hp.com/");
 script_xref(name : "URL" , value : "http://www.zerodayinitiative.com/advisories/ZDI-11-034/");
 script_xref(name : "URL" , value : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02695453");
 script_id(103060);
 script_version("$Revision: 7044 $");
 script_tag(name:"last_modification", value:"$Date: 2017-09-01 13:50:59 +0200 (Fri, 01 Sep 2017) $");
 script_tag(name:"creation_date", value:"2011-02-03 16:40:04 +0100 (Thu, 03 Feb 2011)");
 script_bugtraq_id(46079);
 script_tag(name:"cvss_base", value:"10.0");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2011-0276");

 script_name("HP OpenView Performance Insight Server 'doPost()' Remote Arbitrary Code Execution Vulnerability");
 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_ATTACK);
 script_family("Web application abuses");
 script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
 script_dependencies("gb_hp_performance_insight_detect.nasl");
 script_require_ports("Services/www", 8080);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("version_func.inc");
include("misc_func.inc");

port = get_http_port(default:8080);
if(!get_port_state(port))exit(0);

if(!get_dir_from_kb(port:port,app:"hp_openview_insight"))exit(0);

userpass = "hch908v:z6t0j$+i";

url = "/reports/home?context=home&type=header&ov_user=hch908v";

req = string("GET ", url," HTTP/1.1\r\n", "Host: ", get_host_name(),"\r\n\r\n");
resp = http_keepalive_send_recv(port:port, data:req);
if("401 Unauthorized" >!< resp)exit(0); # just to be sure

userpass64 = base64(str:userpass);

req = string("GET ", url," HTTP/1.1\r\n",
	     "Host: ", get_host_name(),"\r\n",
	     "Authorization: Basic ",userpass64,"\r\n",
	     "\r\n");
resp = http_keepalive_send_recv(port:port, data:req);

if("Log off hch908v" >< resp && "Administration</a>" >< resp) {
  msg = string("The Scanner was able to access the URL '",url, "'\nusing username 'hch908v' and password 'z6t0j$+i'.\n");
  security_message(port:port,data:msg);
  exit(0);
}  

exit(0);