Lucene search
K

HP StorageWorks Default Accounts and Directory Traversal Vulnerabilities

🗓️ 21 Feb 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 82 Views

HP StorageWorks Default Accounts and Directory Traversal Vulnerabilities. Vulnerabilities exist allowing malicious actors to access arbitrary files and gain administrative access, compromising the affected computer. HP StorageWorks P2000 G3 is affected. Vendor released an update to address the issue

Related
Refs
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
EAServer <= 6.3.1 Multiple Vulnerabilities
3 Jul 201300:00
nessus
Tenable Nessus
HP StorageWorks MSA P2000 Default Credentials
5 Jan 201100:00
nessus
CVE
CVE-2011-4788
13 Jan 201202:00
cve
CVE
CVE-2012-0697
13 Jan 201202:00
cve
Cvelist
CVE-2011-4788
13 Jan 201202:00
cvelist
Cvelist
CVE-2012-0697
13 Jan 201202:00
cvelist
EUVD
EUVD-2011-4706
7 Oct 202500:30
euvd
EUVD
EUVD-2012-0729
7 Oct 202500:30
euvd
NVD
CVE-2011-4788
13 Jan 201204:14
nvd
NVD
CVE-2012-0697
13 Jan 201204:14
nvd
Rows per page
# SPDX-FileCopyrightText: 2012 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103431");
  script_cve_id("CVE-2011-4788", "CVE-2012-0697");
  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_version("2023-12-20T05:05:58+0000");
  script_name("HP StorageWorks Default Accounts and Directory Traversal Vulnerabilities");
  script_tag(name:"last_modification", value:"2023-12-20 05:05:58 +0000 (Wed, 20 Dec 2023)");
  script_tag(name:"creation_date", value:"2012-02-21 13:19:06 +0100 (Tue, 21 Feb 2012)");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/51399");
  script_xref(name:"URL", value:"http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/12169-304616-241493-241493-241493-3971478.html");
  script_xref(name:"URL", value:"http://www.zerodayinitiative.com/advisories/ZDI-12-015/");
  script_xref(name:"URL", value:"http://www.kb.cert.org/vuls/id/885499");

  script_category(ACT_ATTACK);
  script_family("Default Accounts");
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_dependencies("gb_get_http_banner.nasl", "ssh_detect.nasl", "telnetserver_detect_type_nd_version.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/www", 80, "Services/ssh", 22, "Services/telnet", 23);
  script_mandatory_keys("WindRiver-WebServer/banner");
  script_exclude_keys("default_credentials/disable_default_account_checks");

  script_tag(name:"summary", value:"HP StorageWorks is prone to a security bypass vulnerability and
  a directory traversal vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if it is possible to login via Telnet and SSH with
  known default credentials.");

  script_tag(name:"impact", value:"An attacker could exploit these issues to access arbitrary files
  on the affected computer, or gain administrative access to the affected application. This may aid
  in the compromise of the underlying computer.");

  script_tag(name:"affected", value:"HP StorageWorks P2000 G3 is affected.");

  script_tag(name:"solution", value:"The vendor released an update to address this issue. Please see
  the references for more information.");

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

  exit(0);
}

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

include("ssh_func.inc");
include("telnet_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");
include("port_service_func.inc");

ports = http_get_ports(default_port_list:make_list(80));
foreach port(ports) {

  banner = http_get_remote_headers(port:port);
  if(!banner || "WindRiver-WebServer" >!< banner)
    continue;

  buf = http_get_cache(item:"/", port:port);
  if("<title>HP StorageWorks" >< buf) {
    found = TRUE;
    break;
  }
}

if(found) {

  credentials = make_array("monitor", "!monitor",
                           "manage", "!manage",
                           "ftp", "!ftp");

  ports = telnet_get_ports(default:23);
  foreach port(ports) {
    foreach credential(keys(credentials)) {

      if(!soc = open_sock_tcp(port))
        continue;

      user = credential;
      pass = credentials[credential];

      b = telnet_negotiate(socket:soc);
      if("Login" >!< b) {
        close(soc);
        break;
      }

      send(socket:soc, data:string(user,"\r\n"));
      answer = recv(socket:soc, length:4096);

      send(socket:soc, data:string(pass,"\r\n"));
      answer = recv(socket:soc, length:4096);
      close(soc);

      if("StorageWorks" >< answer && "System Name" >< answer) {
        report = 'It was possible to login via telnet using "' + user + '" as username and "' + pass + '" as password.';
        security_message(port:port, data:report);
        break;
      }
    }
  }

  port = ssh_get_port(default:22);
  if(ssh_dont_try_login(port:port))
    exit(0);

  # nb: No need to continue/start if we haven't received any banner...
  if(!ssh_get_serverbanner(port:port))
    exit(0);

  # Exit if any random user/pass pair is accepted by the SSH service.
  if(ssh_broken_random_login(port:port))
    exit(0);

  foreach credential(keys(credentials)) {

    if(!soc = open_sock_tcp(port))
      continue;

    user = credential;
    pass = credentials[credential];

    login = ssh_login(socket:soc, login:user, password:pass, priv:NULL, passphrase:NULL);
    close(soc);

    if(login == 0) {
      report = 'It was possible to login via ssh using "' + user + '" as username and "' + pass + '" as password.';
      security_message(port:port, data:report);
      exit(0);
    }
  }
  exit(99);
}

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation