Cisco VPN Client 5.x <= 5.0.07.0440 vpnclient.ini Privilege Escalation

2016-09-14T00:00:00
ID CISCO_VPN_CLIENT_CVE-2015-7600.NASL
Type nessus
Reporter Tenable
Modified 2018-07-06T00:00:00

Description

The version of the Cisco VPN client installed on the remote host is 5.x prior or equal to 5.0.07.0440. It is, therefore, affected by a flaw due to insecure permissions for file vpnclient.ini. A local attacker can exploit this, by inserting an arbitrary program name in the Command field of the ApplicationLauncher section of that file, to execute arbitrary code with elevated privileges.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(93479);
  script_cvs_date("Date: 2018/07/06 11:26:08");
  script_version("1.4");

  script_cve_id("CVE-2015-7600");

  script_name(english:"Cisco VPN Client 5.x <= 5.0.07.0440 vpnclient.ini Privilege Escalation");
  script_summary(english:"Check the version.");

  script_set_attribute(attribute:"synopsis", value:
"The VPN client installed on the remote Windows host is affected by a
local privilege escalation vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of the Cisco VPN client installed on the remote host
is 5.x prior or equal to 5.0.07.0440. It is, therefore, affected by a
flaw due to insecure permissions for file vpnclient.ini. A local
attacker can exploit this, by inserting an arbitrary program name in
the Command field of the ApplicationLauncher section of that file, to
execute arbitrary code with elevated privileges.");
  # https://www.nettitude.co.uk/vulnerability-discovered-in-unsupported-cisco-systems-vpn-client/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0acd9d8e");
  script_set_attribute(attribute:"solution", value:
"This software is no longer supported. Contact the vendor for options.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date",value:"2015/10/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2016/09/14");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:vpn_client");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

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

  script_dependencies("cisco_vpn_client_detect.nasl");
  script_require_keys("SMB/CiscoVPNClient/Version");

  exit(0);
}

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

app = "Cisco VPN Client";

ver  = get_kb_item_or_exit("SMB/CiscoVPNClient/Version");
path = get_kb_item_or_exit("SMB/CiscoVPNClient/Path");

if (ver == UNKNOWN_VER) audit(AUDIT_UNKNOWN_APP_VER, app);
if (ver !~ "^5([^0-9]|$)") audit(AUDIT_NOT_INST, app + " 5.x");
if (
  ver == "5" ||
  ver == "5.0" ||
  ver == "5.0.07"
)
  audit(AUDIT_VER_NOT_GRANULAR, app, ver);

if (ver_compare(fix:'5.0.07.0440', ver:ver, strict:FALSE) <= 0)
{
  port = get_kb_item("SMB/transport");
  if (!port) port = 445;

  security_report_v4(
    port:port,
    severity:SECURITY_HOLE,
    extra:
      '\n  Path              : ' + path +
      '\n  Installed version : ' + ver +
      '\n  Fixed version     : See Solution.' +
      '\n'
  );
}
else audit(AUDIT_INST_PATH_NOT_VULN, app, ver, path);