Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579) - Nessus

Medium   Plugin ID: 68912

This page contains detailed information about the Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 68912
Name: Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579)
Filename: juniper_jsa10579.nasl
Vulnerability Published: 2002-04-27
This Plugin Published: 2013-07-16
Last Modification Time: 2018-09-17
Plugin Version: 1.10
Plugin Type: combined
Plugin Family: Junos Local Security Checks
Dependencies: junos_version.nasl
Required KB Items [?]: Host/Juniper/JUNOS/BuildDate, Host/Juniper/JUNOS/Version, Host/Juniper/model

Vulnerability Information


Severity: Medium
Vulnerability Published: 2002-04-27
Patch Published: 2013-07-10
CVE [?]: CVE-2003-0001, CVE-2013-4690
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 has an information disclosure vulnerability. SRX1400, SRX3400, and SRX3600 services gateways pad Ethernet packets with data from previous packets instead of padding them with null bytes. A remote, unauthenticated attacker could exploit this to gain access to sensitive information, which could be used to mount further attacks.

Solution

Apply the relevant Junos upgrade referenced in Juniper advisory JSA10579.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579) vulnerability:

  1. Exploit-DB: exploits/hardware/dos/26076.py
    [EDB-26076: Cisco ASA < 8.4.4.6 < 8.2.5.32 - Ethernet Information Leak]
  2. Exploit-DB: exploits/multiple/remote/3555.pl
    [EDB-3555: Ethernet Device Drivers Frame Padding - 'Etherleak' Infomation Leakage]
  3. Exploit-DB: exploits/bsd/remote/22131.pl
    [EDB-22131: Linux Kernel 2.0.x/2.2.x/2.4.x (FreeBSD 4.x) - Network Device Driver Frame Padding Information Disclosure]
  4. GitHub: https://github.com/hackerhouse-opensource/exploits
    [CVE-2003-0001]

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:P/I:N/A:N/E:POC/RL:OF/RC:C
CVSS Base Score:5.0 (Medium)
Impact Subscore:2.9
Exploitability Subscore:10.0
CVSS Temporal Score:3.9 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.9 (Low)

Go back to menu.

Plugin Source


This is the juniper_jsa10579.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(68912);
  script_version("1.10");
  script_cvs_date("Date: 2018/09/17 21:46:53");

  script_cve_id(
    "CVE-2003-0001", # generic etherleak vulnerability
    "CVE-2013-4690"  # etherleak in junos
  );
  script_bugtraq_id(
    6535, # generic etherleak vulnerability
    61123 # etherleak in junos
  );
  script_xref(name:"CERT", value:"412115");

  script_name(english:"Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579)");
  script_summary(english:"Checks version, model, 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
has an information disclosure vulnerability.  SRX1400, SRX3400, and
SRX3600 services gateways pad Ethernet packets with data from previous
packets instead of padding them with null bytes.  A remote,
unauthenticated attacker could exploit this to gain access to sensitive
information, which could be used to mount further attacks."
  );
  script_set_attribute(attribute:"see_also", value:"https://lkml.org/lkml/2002/4/27/101");
  script_set_attribute(attribute:"see_also", value:"http://blog.spoofed.org/2007/03/etherleak-old-dog-old-tricks.html");
  script_set_attribute(attribute:"see_also", value:"https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10579");
  script_set_attribute(
    attribute:"solution",
    value:
"Apply the relevant Junos upgrade referenced in Juniper advisory
JSA10579."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:POC/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:"vuln_publication_date", value:"2002/04/27"); # disclosed on LKML
  script_set_attribute(attribute:"patch_publication_date", value:"2013/07/10");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/16");

  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) 2013-2018 Tenable Network Security, Inc.");

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

  exit(0);
}

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

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

if (model != 'SRX1400' && model != 'SRX3400' && model != 'SRX3600')
  audit(AUDIT_HOST_NOT, 'SRX1400/3400/3600');
if (compare_build_dates(build_date, '2013-06-20') >= 0)
  audit(AUDIT_INST_VER_NOT_VULN, 'Junos', ver + ' (build date ' + build_date + ')');
if (ver == '11.4R7-S1' || ver == '12.1R5-S3')
  audit(AUDIT_INST_VER_NOT_VULN, 'Junos', ver);

fixes['10.4'] = '10.4S13';
fixes['11.4'] = '11.4R8';
fixes['12.1'] = '12.1R7';
fixes['12.1X44'] = '12.1X44-D20';
fix = check_junos(ver:ver, fixes:fixes, exit_on_fail:TRUE);

if (report_verbosity > 0)
{
  report = get_report(ver:ver, fix:fix, model:model);
  security_warning(port:0, extra:report);
}
else security_warning(0);

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

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

Go back to menu.

How to Run


Here is how to run the Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579) 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 SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579) plugin ID 68912.
  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_jsa10579.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CERT | Computer Emergency Response Team: See also: Similar and related Nessus plugins:
  • 15148 - Debian DSA-311-1 : linux-kernel-2.4.18 - several vulnerabilities
  • 15149 - Debian DSA-312-1 : kernel-patch-2.4.18-powerpc - several vulnerabilities
  • 15169 - Debian DSA-332-1 : linux-kernel-2.4.17 - several vulnerabilities
  • 15173 - Debian DSA-336-1 : linux-kernel-2.2.20 - several vulnerabilities
  • 15260 - Debian DSA-423-1 : linux-kernel-2.4.17-ia64 - several vulnerabilities
  • 15279 - Debian DSA-442-1 : linux-kernel-2.4.17-s390 - several vulnerabilities
  • 11197 - Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak)
  • 16670 - HP-UX PHNE_28143 : HPSBUX0305-261 SSRT3451 Potential Security Vulnerability in HP-UX network drivers (Data Leakage) (rev. 01)
  • 17417 - HP-UX PHNE_28636 : HPSBUX0305-261 SSRT3451 Potential Security Vulnerability in HP-UX network drivers (Data Leakage) (rev. 01)
  • 16926 - HP-UX PHNE_29244 : HPSBUX0305-261 SSRT3451 Potential Security Vulnerability in HP-UX network drivers (Data Leakage) (rev. 01)
  • 17420 - HP-UX PHNE_29267 : HPSBUX0305-261 SSRT3451 Potential Security Vulnerability in HP-UX network drivers (Data Leakage) (rev. 01)
  • 14023 - Mandrake Linux Security Advisory : kernel22 (MDKSA-2003:039)
  • 14049 - Mandrake Linux Security Advisory : kernel (MDKSA-2003:066-2)
  • 14057 - Mandrake Linux Security Advisory : kernel (MDKSA-2003:074)
  • 107944 - Solaris 10 (x86) : 125907-02
  • 69906 - Solaris 10 (x86) : 125907-02 (deprecated)
  • 80936 - Oracle Solaris Critical Patch Update : jan2015_SRU11_1_11_4_0

Version


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

Go back to menu.