Wireshark 1.4.x < 1.4.9 Multiple Vulnerabilities - Nessus

Medium   Plugin ID: 56163

This page contains detailed information about the Wireshark 1.4.x < 1.4.9 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: 56163
Name: Wireshark 1.4.x < 1.4.9 Multiple Vulnerabilities
Filename: wireshark_1_4_9.nasl
Vulnerability Published: 2011-07-28
This Plugin Published: 2011-09-12
Last Modification Time: 2018-11-15
Plugin Version: 1.14
Plugin Type: local
Plugin Family: Windows
Dependencies: wireshark_installed.nasl
Required KB Items [?]: SMB/Wireshark/Installed

Vulnerability Information


Severity: Medium
Vulnerability Published: 2011-07-28
Patch Published: 2011-09-07
CVE [?]: CVE-2011-3266, CVE-2011-3360
CPE [?]: cpe:/a:wireshark:wireshark

Synopsis

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

Description

The installed version of Wireshark is 1.4.x before 1.4.9. This version is affected by the following vulnerabilities :

- An error exists in IKE dissector that can allow denial of service attacks when processing certain malformed packets. (CVE-2011-3266)

- A buffer exception handling vulnerability exists that can allow denial of service attacks when processing certain malformed packets. (Issue #6135)

- It may be possible to make Wireshark execute Lua scripts using a method similar to DLL hijacking. (Issue #6136)

Solution

Upgrade to Wireshark version 1.4.9 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.4.x < 1.4.9 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/misc/wireshark_lua
    [Wireshark console.lua Pre-Loading Script Execution]
  2. Exploit-DB: exploits/windows/remote/18125.rb
    [EDB-18125: Wireshark - console.lua pre-loading (Metasploit)]
  3. Immunity Canvas: White_Phosphorus

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

Go back to menu.

Plugin Source


This is the wireshark_1_4_9.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(56163);
  script_version("1.14");
  script_cvs_date("Date: 2018/11/15 20:50:29");

  script_cve_id("CVE-2011-3266", "CVE-2011-3360");
  script_bugtraq_id(49377, 49521, 49528);

  script_name(english:"Wireshark 1.4.x < 1.4.9 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.4.x before 1.4.9.  This
version is affected by the following vulnerabilities :

  - An error exists in IKE dissector that can allow denial
    of service attacks when processing certain malformed
    packets. (CVE-2011-3266)

  - A buffer exception handling vulnerability exists that
    can allow denial of service attacks when processing
    certain malformed packets. (Issue #6135)

  - It may be possible to make Wireshark execute Lua scripts
    using a method similar to DLL hijacking. (Issue #6136)");

  script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2011-13.html");
  script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2011-14.html");
  script_set_attribute(attribute:"see_also", value:"https://www.wireshark.org/security/wnpa-sec-2011-15.html");
  script_set_attribute(attribute:"see_also", value:"http://www.wireshark.org/docs/relnotes/wireshark-1.4.9.html");

  script_set_attribute(attribute:"solution", value:"Upgrade to Wireshark version 1.4.9 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
  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:"metasploit_name", value:'Wireshark console.lua Pre-Loading Script Execution');
  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:'White_Phosphorus');

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/07/28");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/09/07");
  script_set_attribute(attribute:"plugin_publication_date", value:"2011/09/12");

  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\.4($|\.[0-8])($|[^0-9])")
    info +=
      '\n  Path              : ' + installs[install] +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : 1.4.9\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_warning(port:get_kb_item("SMB/transport"), extra:report);
  }
  else security_warning(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_9.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\wireshark_1_4_9.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/wireshark_1_4_9.nasl

Go back to menu.

How to Run


Here is how to run the Wireshark 1.4.x < 1.4.9 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.4.x < 1.4.9 Multiple Vulnerabilities plugin ID 56163.
  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_9.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a wireshark_1_4_9.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_9.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_9.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 56571 - Debian DSA-2324-1 : wireshark - programming error
  • 56426 - GLSA-201110-02 : Wireshark: Multiple vulnerabilities
  • 61928 - Mandriva Linux Security Advisory : wireshark (MDVSA-2011:138)
  • 80800 - Oracle Solaris Third-Party Patch Update : wireshark (denial_of_service_vulnerability_in)
  • 75774 - openSUSE Security Update : wireshark (openSUSE-SU-2011:1142-1)
  • 76045 - openSUSE Security Update : wireshark (openSUSE-SU-2011:1142-1)
  • 57136 - SuSE 11.1 Security Update : wireshark (SAT Patch Number 5281)
  • 56617 - SuSE 10 Security Update : wireshark (ZYPP Patch Number 7795)
  • 57263 - SuSE 10 Security Update : wireshark (ZYPP Patch Number 7796)
  • 56164 - Wireshark 1.6.x < 1.6.2 Multiple Vulnerabilities

Version


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

Go back to menu.