Lucene search

K
nessusThis script is Copyright (C) 2007-2021 Tenable Network Security, Inc.OPENVIEW_CGI_OVERFLOWS.NASL
HistoryDec 07, 2007 - 12:00 a.m.

HP OpenView Network Node Manager Multiple CGI Remote Overflows

2007-12-0700:00:00
This script is Copyright (C) 2007-2021 Tenable Network Security, Inc.
www.tenable.com
13

The remote version of HP OpenView Network Node Manager fails to sanitize user-supplied input to various parameters used in the ‘Openview5’, ‘snmpview’, ‘ovlogin’ scripts before using it.

By sending long parameters, an attacker would be able to produce a stack-based overflow and exploit it to execute code on the remote host with the web server privileges.

Bad permissions on the web server directory allow a full system compromise.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(29249);
  script_version("1.20");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2007-6204");
  script_bugtraq_id(26741);
  script_xref(name:"TRA", value:"TRA-2007-09");

  script_name(english:"HP OpenView Network Node Manager Multiple CGI Remote Overflows");
  script_summary(english:"Checks for multiple remote command execution vulnerabilities in HP OpenView Network Node Manager");
 
  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains multiple CGI scripts that allow
execution of arbitrary commands.");
  script_set_attribute(attribute:"description", value:
"The remote version of HP OpenView Network Node Manager fails to
sanitize user-supplied input to various parameters used in the
'Openview5', 'snmpview', 'ovlogin' scripts before using it. 

By sending long parameters, an attacker would be able to produce a
stack-based overflow and exploit it to execute code on the remote host
with the web server privileges. 

Bad permissions on the web server directory allow a full system
compromise.");
  script_set_attribute(attribute:"see_also", value:"https://www.tenable.com/security/research/tra-2007-09");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-07-071/");
  script_set_attribute(attribute:"see_also", value:"https://softwaresupport.softwaregrp.com");
  script_set_attribute(attribute:"solution", value:"Apply patched referenced in the vendor advisory above.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"metasploit_name", value:'HP OpenView Network Node Manager OpenView5.exe CGI Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_cwe_id(119);

  script_set_attribute(attribute:"plugin_publication_date", value:"2007/12/07");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe",value:"cpe:/a:ahp:openview_network_node_manager");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2007-2021 Tenable Network Security, Inc.");

  script_dependencies("http_version.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80, 3443);

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80, embedded: 0);

r = http_send_recv3(port:port, method:'GET', item:"/OvCgi/OpenView5.exe", exit_on_fail:TRUE);

if ("<TITLE>HP OpenView Web</TITLE>" >< r[2])
{
  v = eregmatch(pattern: 'Information: \\(c\\) Copyright [0-9]+-([0-9]+) Hewlett-Packard Development Company, LP', string: r[2]);
  if (! isnull(v))
  {
     version = int(v[1]);

     if (version < 2007)
      security_hole(port:port, 
      		extra: '\nOpenView5.exe version is '+v[1]+'\n');
  }
}
VendorProductVersionCPE
ahpopenview_network_node_managercpe:/a:ahp:openview_network_node_manager