Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities - Nessus

Critical   Plugin ID: 70121

This page contains detailed information about the Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 70121
Name: Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities
Filename: juniper_netscreen_jsa10429.nasl
Vulnerability Published: 2009-06-01
This Plugin Published: 2013-09-25
Last Modification Time: 2018-07-12
Plugin Version: 1.9
Plugin Type: local
Plugin Family: Windows
Dependencies: juniper_netscreen_installed.nasl
Required KB Items [?]: SMB/Juniper NetScreen/Path, SMB/Juniper NetScreen/Version

Vulnerability Information


Severity: Critical
Vulnerability Published: 2009-06-01
Patch Published: 2010-01-27
CVE [?]: CVE-2009-1943, CVE-2009-3861
CPE [?]: cpe:/a:juniper:netscreen_remote_vpn_client

Synopsis

The remote host is affected by multiple buffer overflow vulnerabilities.

Description

The remote host is running a version of Juniper NetScreen VPN client that is affected by multiple buffer overflow vulnerabilities :

- The IKE VPN service listening on UDP port 62514 is vulnerable to a stack overflow vulnerability that can be triggered by sending specially crafted packets. (CVE-2009-1943)

- spdedit.exe has a flaw in parsing specially crafted SPD files that can be utilized to trigger a stack overflow. (CVE-2009-3861)

Successful exploitation of either of these vulnerabilities could allow a remote attacker to execute arbitrary code on the host.

Solution

Upgrade to Juniper NetScreen 9.0r5 or higher.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, ExploitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/fileformat/safenet_softremote_groupname
    [SafeNet SoftRemote GROUPNAME Buffer Overflow]
  2. Metasploit: exploit/windows/vpn/safenet_ike_11
    [SafeNet SoftRemote IKE Service Buffer Overflow]
  3. Exploit-DB: exploits/windows/local/16643.rb
    [EDB-16643: SafeNet SoftRemote - GROUPNAME Buffer Overflow (Metasploit)]
  4. Exploit-DB: exploits/windows/remote/16831.rb
    [EDB-16831: SafeNet SoftRemote - IKE Service Buffer Overflow (Metasploit)]
  5. ExploitHub: EH-12-164
  6. Immunity Canvas: D2ExploitPack

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the juniper_netscreen_jsa10429.nasl nessus plugin source code. This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.

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

include("compat.inc");

if (description)
{
  script_id(70121);
  script_version("1.9");
  script_cvs_date("Date: 2018/07/12 19:01:15");

  script_cve_id("CVE-2009-1943", "CVE-2009-3861");
  script_bugtraq_id(35154, 36907);

  script_name(english:"Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities");
  script_summary(english:"Checks version of Juniper NetScreen VPN Client");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host is affected by multiple buffer overflow
vulnerabilities."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote host is running a version of Juniper NetScreen VPN client
that is affected by multiple buffer overflow vulnerabilities :

  - The IKE VPN service listening on UDP port 62514 is
    vulnerable to a stack overflow vulnerability that can be
    triggered by sending specially crafted packets.
    (CVE-2009-1943)

  - spdedit.exe has a flaw in parsing specially crafted SPD
    files that can be utilized to trigger a stack overflow.
    (CVE-2009-3861)

Successful exploitation of either of these vulnerabilities could allow a
remote attacker to execute arbitrary code on the host."
  );
  script_set_attribute(attribute:"see_also", value:"http://www.zerodayinitiative.com/advisories/ZDI-09-024/");
  script_set_attribute(attribute:"see_also", value:"https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10429");
  script_set_attribute(attribute:"see_also", value:"http://www.senseofsecurity.com.au/advisories/SOS-09-008");
  script_set_attribute(attribute:"solution", value:"Upgrade to Juniper NetScreen 9.0r5 or higher.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"exploithub_sku", value:"EH-12-164");
  script_set_attribute(attribute:"exploit_framework_exploithub", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'SafeNet SoftRemote GROUPNAME Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');
  script_cwe_id(119);

  script_set_attribute(attribute:"vuln_publication_date", value:"2009/06/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/01/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/09/25");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:juniper:netscreen_remote_vpn_client");
  script_end_attributes();

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

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

  script_dependencies("juniper_netscreen_installed.nasl");
  script_require_keys("SMB/Juniper NetScreen/Path", "SMB/Juniper NetScreen/Version");

  exit(0);
}

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

version = get_kb_item_or_exit('SMB/Juniper NetScreen/Version');
path    = get_kb_item_or_exit('SMB/Juniper NetScreen/Path');

# fix : 9.0r5 / 10.8.10 (Build 4)
item = eregmatch(string:version, pattern:"([0-9.]+) \(Build ([0-9]+)\)");
if (isnull(item)) exit(1, 'Failed to parse the version string.');

build = int(item[2]);

if (
  ver_compare(ver:item[1], fix:'10.8.10', strict:FALSE) == -1 ||
  (item[1] == "10.8.10" && build < 4)
)
{
  port = get_kb_item('SMB/transport');
  if (!port) port = 445;

  if (report_verbosity > 0)
  {
    report =
      '\n  Path              : ' + path +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : 10.8.10 (Build 4) / 9.0r5\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
audit(AUDIT_INST_PATH_NOT_VULN, 'Juniper NetScreen', version, path);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/juniper_netscreen_jsa10429.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\juniper_netscreen_jsa10429.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/juniper_netscreen_jsa10429.nasl

Go back to menu.

How to Run


Here is how to run the Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select Juniper NetScreen VPN Client Multiple Buffer Overflow Vulnerabilities plugin ID 70121.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl juniper_netscreen_jsa10429.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a juniper_netscreen_jsa10429.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - juniper_netscreen_jsa10429.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state juniper_netscreen_jsa10429.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 145502 - Juniper Junos OS Multiple Local Privilege Escalation Vulnerabilities (JSA11114)
  • 146194 - Juniper Junos OS DoS (JSA11094)
  • 148645 - Juniper Junos OS Multiple Vulnerabilities (JSA11171)
  • 148649 - Juniper Junos OS Multiple Vulnerabilities (JSA11175)
  • 148664 - Juniper Junos OS Vulnerability (JSA11115)
  • 148681 - Juniper Junos OS Multiple Vulnerabilities (JSA11169)
  • 149967 - Juniper Junos OS Multiple DoS Vulnerabilities (JSA11167)
  • 151626 - Juniper Junos OS Multiple Vulnerabilities (JSA11207)
  • 154108 - Juniper Junos OS Vulnerability (JSA11245)
  • 156677 - Juniper Junos OS Multiple Vulnerabilities (JSA11289)
  • 156692 - Juniper Junos OS Vulnerability (JSA11293)
  • 59989 - Juniper Junos OpenSSL ASN.1 Memory Corruption (PSN-2012-07-645)
  • 68908 - Juniper Junos OpenSSL Multiple Vulnerabilities (JSA10575)
  • 68912 - Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579)
  • 68913 - Juniper Junos SSL/TLS Renegotiation DoS (JSA10580)
  • 69872 - Juniper NSM Servers < 2012.1 Multiple Vulnerabilities
  • 69874 - Juniper NSM Servers Multiple Java JDK/JRE Vulnerabilities (PSN-2012-08-689)
  • 70481 - Juniper Junos GNU libc glob Remote DoS (JSA10598)
  • 71023 - Juniper NSM Servers < 2012.2R5 Multiple Vulnerabilities
  • 71310 - Juniper Junos J-Web Sajax Remote Code Execution (JSA10560)
  • 72001 - Juniper Junos CLI libc recomp() rpd DoS (JSA10612)
  • 73687 - Juniper Junos OpenSSL Heartbeat Information Disclosure (JSA10623) (Heartbleed)
  • 76506 - Juniper Junos TCP Packet Processing Remote DoS (JSA10638)
  • 77000 - Juniper Junos Multiple OpenSSL Vulnerabilities (JSA10629)
  • 77326 - Juniper NSM < 2012.2R9 Multiple Java and Apache Vulnerabilities (JSA10642)
  • 77756 - Juniper Junos NTP Server Amplification Remote DoS (JSA10613)
  • 78420 - Juniper Junos Multiple OpenSSL Vulnerabilities (JSA10649)
  • 80192 - Juniper Junos Space 11.1x < 13.1R1.6 Multiple Vulnerabilities (JSA10585)
  • 80193 - Juniper Junos Space < 13.1R1 MySQL Multiple Vulnerabilities (JSA10601)
  • 80195 - Juniper Junos Space < 13.3R1.8 Multiple Vulnerabilities (JSA10627)
  • 80196 - Juniper Junos Space GNU Bash Command Injection Vulnerability (JSA10648) (Shellshock)
  • 80197 - Juniper Junos Space < 14.1R1 Multiple Vulnerabilities (JSA10659)
  • 82912 - Juniper Junos Multiple OpenSSL Vulnerabilities (JSA10679) (FREAK)
  • 82913 - Juniper NSM < 2012.2R11 Multiple OpenSSL Vulnerabilities (JSA10679) (FREAK)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file juniper_netscreen_jsa10429.nasl version 1.9. For more plugins, visit the Nessus Plugin Library.

Go back to menu.