Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak) - Nessus

Low   Plugin ID: 11197

This page contains detailed information about the Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 11197
Name: Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak)
Filename: etherleak.nasl
Vulnerability Published: 2004-02-09
This Plugin Published: 2003-01-14
Last Modification Time: 2019-03-06
Plugin Version: 1.30
Plugin Type: remote
Plugin Family: Misc.
Dependencies: None

Vulnerability Information


Severity: Low
Vulnerability Published: 2004-02-09
Patch Published: N/A
CVE [?]: CVE-2003-0001
CPE [?]: N/A

Synopsis

The remote host appears to leak memory in network packets.

Description

The remote host uses a network device driver that pads ethernet frames with data which vary from one packet to another, likely taken from kernel memory, system memory allocated to the device driver, or a hardware buffer on its network interface card.

Known as 'Etherleak', this information disclosure vulnerability may allow an attacker to collect sensitive information from the affected host provided he is on the same physical subnet as that host.

Solution

Contact the network device driver's vendor for a fix.

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 Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak) 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:A/AC:L/Au:N/C:P/I:N/A:N/E:POC/RL:OF/RC:C
CVSS Base Score:3.3 (Low)
Impact Subscore:2.9
Exploitability Subscore:6.5
CVSS Temporal Score:2.6 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:2.6 (Low)

Go back to menu.

Plugin Source


This is the etherleak.nasl nessus plugin source code. This script is Copyright (C) 2003-2019 Tenable Network Security, Inc.

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

include("compat.inc");

if (description)
{
 script_id(11197);
 script_version("1.30");
 script_cvs_date("Date: 2019/03/06 18:38:55");

 script_cve_id("CVE-2003-0001");
 script_bugtraq_id(6535);

 script_name(english:"Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak)");
 script_summary(english:"etherleak check");

 script_set_attribute(attribute:"synopsis", value:"The remote host appears to leak memory in network packets.");
 script_set_attribute(attribute:"description", value:
"The remote host uses a network device driver that pads ethernet frames
with data which vary from one packet to another, likely taken from
kernel memory, system memory allocated to the device driver, or a
hardware buffer on its network interface card.

Known as 'Etherleak', this information disclosure vulnerability may
allow an attacker to collect sensitive information from the affected
host provided he is on the same physical subnet as that host.");
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?719c90b4");
 script_set_attribute(attribute:"solution", value:"Contact the network device driver's vendor for a fix.");
  script_set_cvss_base_vector("CVSS2#AV:A/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:"2004/02/09");
 script_set_attribute(attribute:"plugin_publication_date", value:"2003/01/14");

 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2003-2019 Tenable Network Security, Inc.");
 script_family(english:"Misc.");

 exit(0);
}

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

if ( ! islocalnet() ) exit(0, "The target must be on the same local subnet as the Nessus server.");
if ( TARGET_IS_IPV6 ) exit(0, "Can't test over IPv6.");

function probe()
{
 local_var filter, i, icmp, ip, len, rep, str;

 ip     = forge_ip_packet(ip_p:IPPROTO_ICMP, ip_src:compat::this_host());
 icmp   = forge_icmp_packet(ip:ip, icmp_type:8, icmp_code:0, icmp_seq:1, icmp_id:1, data:"x");

 filter = string("icmp and src host ", get_host_ip(), " and dst host ", compat::this_host());

 for(i=0;i<3;i++)
 {
 rep = send_packet(icmp, pcap_filter:filter);
 if(rep)break;
 }

 if(rep == NULL)exit(0);
##dump(dtitle: "ICMP", ddata: rep);

 len = get_ip_element(ip:rep, element:"ip_len");
 if(strlen(rep) > len)
 {
 str="";
 for(i=len;i<strlen(rep);i++)
  {
   str = string(str, rep[i]);
  }
  return(str);
 }
 else return(NULL);
}

function ping()
{
 local_var filter, i, icmp, ip, rep;

 ip     = forge_ip_packet(ip_p:IPPROTO_ICMP, ip_src:compat::this_host());
 icmp   = forge_icmp_packet(ip:ip, icmp_type:8, icmp_code:0, icmp_seq:1, icmp_id:1, data:crap(data:"nessus", length:254));

 filter = string("icmp and src host ", get_host_ip(), " and dst host ", compat::this_host());

 for(i=0;i<3;i++) rep = send_packet(icmp, pcap_filter:filter, pcap_timeout:1);
}

if(islocalhost())exit(0, "Can't test localhost.");


str1 = probe();
ping();
sleep(1);
str2 = probe();

##dump(dtitle: "ether1", ddata: str1);
##dump(dtitle: "ether2", ddata: str2);

if (isnull(str1) || isnull(str2)) exit(0, "There was no padding in one or both packets.");

if (str1 != str2)
{
  str1_0 = str_replace(find:raw_string(0x00), replace:"", string:str1);
  str2_0 = str_replace(find:raw_string(0x00), replace:"", string:str2);
  if (strlen(str1_0) == 0 && strlen(str2_0) == 0) exit(0, "The padding in both packets consists of all NULLs.");

  if (report_verbosity > 0)
  {
    report = '\n' + 'Padding observed in one frame :' +
      '\n' +
      '\n' + '  ' + str_replace(find:'\n', replace:'\n  ', string:hexdump(ddata:str1)) +
      '\n' + 'Padding observed in another frame :' +
      '\n' +
      '\n' + '  ' + str_replace(find:'\n', replace:'\n  ', string:hexdump(ddata:str2));
    report = chomp(report) + '\n';
    security_note(proto:"icmp", port:0, extra:report);
  }
  else security_note(proto:"icmp", port:0);

  set_kb_item(name:"Host/etherleak", value:TRUE);
}
else audit(AUDIT_HOST_NOT, 'affected');

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

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

Go back to menu.

How to Run


Here is how to run the Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak) 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 Misc. plugin family.
  6. On the right side table select Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak) plugin ID 11197.
  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 etherleak.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: 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
  • 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)
  • 68912 - Juniper Junos SRX1400/3400/3600 Etherleak Information Disclosure (JSA10579)
  • 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
  • 123520 - Multiple Command Injection Vulnerabilities in Grandstream Products
  • 124173 - Multiple Command Injection Vulnerabilities in Grandstream Products

Version


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

Go back to menu.