Wireshark < 1.2.16 / 1.4.5 Multiple Vulnerabilities - Nessus

High   Plugin ID: 53473

This page contains detailed information about the Wireshark < 1.2.16 / 1.4.5 Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 53473
Name: Wireshark < 1.2.16 / 1.4.5 Multiple Vulnerabilities
Filename: wireshark_1_4_5.nasl
Vulnerability Published: 2011-04-15
This Plugin Published: 2011-04-18
Last Modification Time: 2018-11-15
Plugin Version: 1.20
Plugin Type: local
Plugin Family: Windows
Dependencies: wireshark_installed.nasl
Required KB Items [?]: SMB/Wireshark/Installed

Vulnerability Information


Severity: High
Vulnerability Published: 2011-04-15
Patch Published: 2011-04-15
CVE [?]: CVE-2011-1590, CVE-2011-1591, CVE-2011-1592
CPE [?]: cpe:/a:wireshark:wireshark
Exploited by Malware: True

Synopsis

The remote Windows host contains an application that is affected by multiple vulnerabilities.

Description

The installed version of Wireshark is 1.2.x less than 1.2.16 or 1.4.x less than 1.4.5. Such versions are affected by the following vulnerabilities : - A data type mismatch error exists in the function 'dissect_nfs_clientaddr4' in the file 'packet-nfs.c' of the NFS dissector and could lead to application crashes while decoding 'SETCLIENTID' calls. (5209) - A use-after-free error exists in the file 'asn1/x509if/x509if.cnf' of the X.509if dissector that could lead to application crashes. (5754, 5793) - An buffer overflow vulnerability exists in the file 'packet-dect.c' of the DECT dissector that could allow arbitrary code execution. (5836)

Solution

Upgrade to Wireshark version 1.2.16 / 1.4.5 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Wireshark < 1.2.16 / 1.4.5 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/fileformat/wireshark_packet_dect
    [Wireshark packet-dect.c Stack Buffer Overflow]
  2. Metasploit: exploit/windows/misc/wireshark_packet_dect
    [Wireshark packet-dect.c Stack Buffer Overflow]
  3. Metasploit: exploit/windows/fileformat/wireshark_packet_dect
    [Wireshark packet-dect.c Stack Buffer Overflow (local)]
  4. Exploit-DB: exploits/windows/local/17185.py
    [EDB-17185: Wireshark 1.4.1 < 1.4.4 - Local Overflow (SEH)]
  5. Exploit-DB: exploits/windows/remote/17195.rb
    [EDB-17195: Wireshark 1.4.4 - 'packet-dect.c' Remote Stack Buffer Overflow (Metasploit) (2)]
  6. Exploit-DB: exploits/linux/remote/18145.py
    [EDB-18145: Wireshark 1.4.4 - DECT Dissector Remote Buffer Overflow]
  7. Immunity Canvas: CANVAS

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:M/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.1 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.1 (High)

Go back to menu.

Plugin Source


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

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


include("compat.inc");


if (description)
{
  script_id(53473);
  script_version("1.20");
  script_cvs_date("Date: 2018/11/15 20:50:29");

  script_cve_id("CVE-2011-1590", "CVE-2011-1591", "CVE-2011-1592");
  script_bugtraq_id(47392);
  script_xref(name:"EDB-ID", value:"17185");
  script_xref(name:"EDB-ID", value:"18145");
  script_xref(name:"Secunia", value:"44172");

  script_name(english:"Wireshark < 1.2.16 / 1.4.5 Multiple Vulnerabilities");
  script_summary(english:"Does a version check");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host contains an application that is affected by
multiple vulnerabilities."
  );
  script_set_attribute(attribute:"description", value:
"The installed version of Wireshark is 1.2.x less than 1.2.16 or 1.4.x
less than 1.4.5.  Such versions are affected by the following
vulnerabilities :
  
  - A data type mismatch error exists in the function 
    'dissect_nfs_clientaddr4' in the file 'packet-nfs.c' of
    the NFS dissector and could lead to application crashes
    while decoding 'SETCLIENTID' calls. (5209) 
  
  - A use-after-free error exists in the file 
    'asn1/x509if/x509if.cnf' of the X.509if dissector that
    could lead to application crashes. (5754, 5793) 
  
  - An buffer overflow vulnerability exists in the file
    'packet-dect.c' of the DECT dissector that could allow
    arbitrary code execution. (5836)"
  );
  script_set_attribute(attribute:"see_also", value:"https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5209");
  script_set_attribute(attribute:"see_also", value:"https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5754");
  script_set_attribute(attribute:"see_also", value:"https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5793");
  script_set_attribute(attribute:"see_also", value:"https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5836");
  script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2011-05.html");
  script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2011-06.html");
  script_set_attribute(attribute:"see_also", value:"http://www.wireshark.org/docs/relnotes/wireshark-1.2.16.html");
  script_set_attribute(attribute:"see_also", value:"http://www.wireshark.org/docs/relnotes/wireshark-1.4.5.html");
  script_set_attribute(attribute:"solution", value:"Upgrade to Wireshark version 1.2.16 / 1.4.5 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/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:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Wireshark packet-dect.c Stack 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:'CANVAS');
script_set_attribute(attribute:"vuln_publication_date", value:"2011/04/15");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/04/15");
  script_set_attribute(attribute:"plugin_publication_date", value:"2011/04/18");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:wireshark:wireshark");
  script_end_attributes();

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

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

  script_dependencies("wireshark_installed.nasl");
  script_require_keys("SMB/Wireshark/Installed");

  exit(0);
}

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

# Check each install.
installs = get_kb_list("SMB/Wireshark/*");
if (isnull(installs)) exit(0, "The 'SMB/Wireshark/*' KB items are missing.");

info  = '';
info2 = '';

foreach install(keys(installs))
{
  if ("/Installed" >< install) continue;

  version = install - "SMB/Wireshark/";

  if (
    version =~ "^1\.2($|\.[0-9]|\.1[0-5])($|[^0-9])" || 
    version =~ "^1\.4($|\.[0-4])($|[^0-9])"
  )  
    info +=
      '\n  Path              : ' + installs[install] +
      '\n  Installed version : ' + version  +
      '\n  Fixed version     : 1.2.16 / 1.4.5\n';
  else
    info2 += 'Version '+ version + ', under '+ installs[install] + '. ';
}

# Report if any were found to be vulnerable
if (info)
{
  if (report_verbosity > 0)
  {
    if (max_index(split(info)) > 4) s = "s of Wireshark are";
    else s = " of Wireshark is";

    report = 
      '\n' +
      'The following vulnerable instance' + s + ' installed :\n' +
      '\n' + info;
    security_hole(port:get_kb_item("SMB/transport"), extra:report);
  }
  else security_hole(get_kb_item("SMB/transport"));
  exit(0);
}
if (info2)
  exit(0, "The following instance(s) of Wireshark are installed and are not vulnerable : "+info2);

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

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

Go back to menu.

How to Run


Here is how to run the Wireshark < 1.2.16 / 1.4.5 Multiple 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 Wireshark < 1.2.16 / 1.4.5 Multiple Vulnerabilities plugin ID 53473.
  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 wireshark_1_4_5.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: See also: Similar and related Nessus plugins:
  • 53561 - Fedora 13 : wireshark-1.2.16-1.fc13 (2011-5529)
  • 53562 - Fedora 14 : wireshark-1.4.6-1.fc14 (2011-5569)
  • 53563 - Fedora 15 : wireshark-1.4.6-1.fc15 (2011-5621)
  • 56426 - GLSA-201110-02 : Wireshark: Multiple vulnerabilities
  • 53882 - Mandriva Linux Security Advisory : wireshark (MDVSA-2011:083)
  • 75773 - openSUSE Security Update : wireshark (openSUSE-SU-2011:0602-1)
  • 76044 - openSUSE Security Update : wireshark (openSUSE-SU-2011:0599-1)
  • 54994 - SuSE 11.1 Security Update : wireshark (SAT Patch Number 4476)
  • 57262 - SuSE 10 Security Update : wireshark (ZYPP Patch Number 7500)
  • 54995 - SuSE 10 Security Update : wireshark (ZYPP Patch Number 7501)

Version


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

Go back to menu.