Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837) - Nessus

High   Plugin ID: 106394

This page contains detailed information about the Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 106394
Name: Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837)
Filename: juniper_jsa10837.nasl
Vulnerability Published: 2018-01-10
This Plugin Published: 2018-01-26
Last Modification Time: 2018-07-12
Plugin Version: 1.4
Plugin Type: combined
Plugin Family: Junos Local Security Checks
Dependencies: junos_version.nasl
Required KB Items [?]: Host/Juniper/JUNOS/Version, Host/Juniper/model

Vulnerability Information


Severity: High
Vulnerability Published: 2018-01-10
Patch Published: 2018-01-10
CVE [?]: CVE-2016-8858
CPE [?]: cpe:/o:juniper:junos

Synopsis

The remote device is missing a vendor-supplied security patch.

Description

According to its self-reported version number, the remote Junos device is affected by a denial of service vulnerability.

Solution

Apply the relevant Junos software release referenced in Juniper advisory JSA10837.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)
Exploit Ease: Exploits (PoCs) are available

Here's the list of publicly known exploits and PoCs for verifying the Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837) vulnerability:

  1. GitHub: https://github.com/dag-erling/kexkill
    [CVE-2016-8858: Proof of concept for CVE-2016-8858]
  2. GitHub: https://github.com/scmanjarrez/CVEScannerV2
    [CVE-2016-8858]

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:N/I:N/A:C/E:U/RL:OF/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:6.9
Exploitability Subscore:10.0
CVSS Temporal Score:5.8 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.8 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:3.6
Exploitability Subscore:3.9
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)

Go back to menu.

Plugin Source


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

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

include("compat.inc");

if (description)
{
  script_id(106394);
  script_version("1.4");
  script_cvs_date("Date: 2018/07/12 19:01:16");

  script_cve_id("CVE-2016-8858");
  script_xref(name:"JSA", value:"JSA10837");

  script_name(english:"Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837)");
  script_summary(english:"Checks the Junos version and build date.");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the remote Junos device
is affected by a denial of service vulnerability.");
  # https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10837&actp=METADATA
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9331a35b");
  script_set_attribute(attribute:"solution", value:
"Apply the relevant Junos software release referenced in
Juniper advisory JSA10837.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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:"2018/01/10");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/01/10");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/01/26");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:juniper:junos");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Junos Local Security Checks");

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

  script_dependencies("junos_version.nasl");
  script_require_keys("Host/Juniper/JUNOS/Version", "Host/Juniper/model");

  exit(0);
}

include("audit.inc");
include("junos_kb_cmd_func.inc");

ver = get_kb_item_or_exit('Host/Juniper/JUNOS/Version');
model = get_kb_item_or_exit('Host/Juniper/model');

# Affected:
# 12.3X48 versions 12.3X48-D55 and above but prior to 12.3X48-D65
# 15.1R5-S4, 15.1R5-S5
# 15.1R6
# 15.1X49 versions 15.1X49-D100 and above, but prior to 15.1X49-D121
# 15.1X53-D57
# 16.1 versions prior to 16.1R4-S6, 16.1R5
# 16.2 versions prior to 16.2R2
fixes = make_array();
fixes['12.3X48'] = '12.3X48-D65'; # > 12.3X48-D55 affected
if (ver =~ "^15\.1R5")
  fixes['15.1'] = '15.1R5-S6'; # 15.1R5-S4, 15.1R5-S5 affected
else
  fixes['15.1'] = '15.1R7';
fixes['15.1X49'] = '15.1X49-D121'; # > 15.1X49-D100 affected
if (ver =~ "^16\.1R4")
  fixes['16.1'] = '16.1R4-S6';
else
  fixes['16.1'] = '16.1R5';
fixes['16.2'] = '16.2R2';

fix = check_junos(ver:ver, fixes:fixes, exit_on_fail:TRUE);

override = FALSE;

junos_report(ver:ver, fix:fix, override:override, severity:SECURITY_HOLE);

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

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

Go back to menu.

How to Run


Here is how to run the Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837) 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 Junos Local Security Checks plugin family.
  6. On the right side table select Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837) plugin ID 106394.
  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_jsa10837.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - juniper_jsa10837.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_jsa10837.nasl -t <IP/HOST>

Go back to menu.

References


JSA | Juniper Security Advisory: See also: Similar and related Nessus plugins:
  • 136324 - AIX OpenSSH Advisory : openssh_advisory10.asc
  • 99852 - EulerOS 2.0 SP1 : openssh (EulerOS-SA-2017-1006)
  • 94418 - FreeBSD : FreeBSD -- OpenSSH Remote Denial of Service vulnerability (6a2cfcdc-9dea-11e6-a298-14dae9d210b8)
  • 95604 - GLSA-201612-18 : OpenSSH: Multiple vulnerabilities
  • 96919 - openSUSE Security Update : openssh (openSUSE-2017-184)
  • 97716 - openSUSE Security Update : openssh (openSUSE-2017-339)
  • 106503 - pfSense < 2.3.3 Multiple Vulnerabilities (SA-17_01 - SA-17_03)
  • 111848 - Photon OS 1.0: Linux / Openssh PHSA-2016-0014 (deprecated)
  • 121659 - Photon OS 1.0: Openssh PHSA-2016-0014
  • 96718 - SUSE SLED12 / SLES12 Security Update : openssh (SUSE-SU-2017:0264-1)
  • 97549 - SUSE SLES11 Security Update : openssh (SUSE-SU-2017:0603-1)
  • 97570 - SUSE SLES11 Security Update : openssh (SUSE-SU-2017:0606-1)
  • 97571 - SUSE SLES12 Security Update : openssh (SUSE-SU-2017:0607-1)
  • 97652 - SUSE SLED12 Security Update : openssh (SUSE-SU-2017:0607-2)
  • 97653 - SUSE SLES12 Security Update : openssh (SUSE-SU-2017:0607-3)

Version


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

Go back to menu.