Lucene search

K
openvasCopyright (C) 2011 Greenbone AGOPENVAS:1361412562310802164
HistorySep 22, 2011 - 12:00 a.m.

Libcloud SSL Certificates Security Bypass Vulnerability

2011-09-2200:00:00
Copyright (C) 2011 Greenbone AG
plugins.openvas.org
3

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.5 Medium

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

48.2%

Libcloud is prone to a security bypass vulnerability.

# SPDX-FileCopyrightText: 2011 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.802164");
  script_version("2023-07-28T05:05:23+0000");
  script_tag(name:"last_modification", value:"2023-07-28 05:05:23 +0000 (Fri, 28 Jul 2023)");
  script_tag(name:"creation_date", value:"2011-09-22 10:24:03 +0200 (Thu, 22 Sep 2011)");
  script_cve_id("CVE-2010-4340");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_name("Libcloud SSL Certificates Security Bypass Vulnerability");
  script_xref(name:"URL", value:"http://wiki.apache.org/incubator/LibcloudSSL");
  script_xref(name:"URL", value:"https://issues.apache.org/jira/browse/LIBCLOUD-55");
  script_xref(name:"URL", value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598463");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("General");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("login/SSH/success");
  script_exclude_keys("ssh/no_linux_shell");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to spoof certificates and
  bypass intended access restrictions via a man-in-the-middle (MITM) attack.");

  script_tag(name:"affected", value:"libcloud version prior to 0.4.1.");

  script_tag(name:"insight", value:"The flaw is due to improper verification of SSL certificates for
  HTTPS connections.");

  script_tag(name:"solution", value:"Upgrade to  libcloud version 0.4.1 or later.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"summary", value:"Libcloud is prone to a security bypass vulnerability.");

  exit(0);
}

include("ssh_func.inc");
include("version_func.inc");

sock = ssh_login_or_reuse_connection();
if(!sock)
  exit(0);

libName = ssh_find_file(file_name:"/libcloud/__init__\.py$", useregex:TRUE, sock:sock);

if(libName)
{
  foreach binaryName (libName)
  {

    binaryName = chomp(binaryName);
    if(!binaryName)
      continue;

    libVer = ssh_get_bin_version(full_prog_name:"cat", sock:sock, version_argv:binaryName, ver_pattern:"= '([0-9.]+)'");
    if(libVer[1])
    {
      if(version_is_less(version:libVer[1], test_version:"0.4.1"))
      {
        security_message( port: 0, data: "The target host was found to be vulnerable" );
        close(sock);
        exit(0);
      }
    }
  }
}
close(sock);

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.5 Medium

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

48.2%