WinZip FileView ActiveX Control Vulnerabilities - Nessus

High   Plugin ID: 23648

This page contains detailed information about the WinZip FileView ActiveX Control Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 23648
Name: WinZip FileView ActiveX Control Vulnerabilities
Filename: winzip_fileview_activex_code_exec.nasl
Vulnerability Published: 2006-11-14
This Plugin Published: 2006-11-15
Last Modification Time: 2018-11-15
Plugin Version: 1.28
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: High
Vulnerability Published: 2006-11-14
Patch Published: 2006-11-14
CVE [?]: CVE-2006-3890, CVE-2006-5198
CPE [?]: cpe:/a:winzip:winzip
Exploited by Malware: True

Synopsis

The remote Windows host has an ActiveX control that is affected by arbitrary code execution and buffer overflow vulnerabilities.

Description

The remote host contains a version of the 'FileView' ActiveX control from Sky Software that is included in third-party products such as WinZip.

The version of this ActiveX control on the remote host reportedly exposes several methods that either can be used to execute arbitrary code or are affected by buffer overflow vulnerabilities. If an attacker can trick a user on the affected host into visiting a specially crafted web page, he can leverage these issues to execute arbitrary code on the host subject to the user's privileges.

Solution

Upgrade to version 6.1.7242.0 or later of the control or WinZip 10 build 7245 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the WinZip FileView ActiveX Control Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/browser/winzip_fileview
    [WinZip FileView (WZFILEVIEW.FileViewCtrl.61) ActiveX Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16607.rb
    [EDB-16607: WinZip FileView - 'WZFILEVIEW.FileViewCtrl.61' ActiveX Buffer Overflow (Metasploit)]

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 winzip_fileview_activex_code_exec.nasl nessus plugin source code. This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.

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

include("compat.inc");

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

  script_cve_id("CVE-2006-3890", "CVE-2006-5198");
  script_bugtraq_id(21060, 21108);
  script_xref(name:"CERT", value:"225217");

  script_name(english:"WinZip FileView ActiveX Control Vulnerabilities");
  script_summary(english:"Checks version of FileView ActiveX control");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an ActiveX control that is affected by
arbitrary code execution and buffer overflow vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote host contains a version of the 'FileView' ActiveX control
from Sky Software that is included in third-party products such as
WinZip.

The version of this ActiveX control on the remote host reportedly
exposes several methods that either can be used to execute arbitrary
code or are affected by buffer overflow vulnerabilities. If an
attacker can trick a user on the affected host into visiting a
specially crafted web page, he can leverage these issues to execute
arbitrary code on the host subject to the user's privileges.");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-06-040/");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2006/Nov/245");
  script_set_attribute(attribute:"see_also", value:"https://www.winzip.com/wz7245.htm");
  script_set_attribute(attribute:"solution", value:
"Upgrade to version 6.1.7242.0 or later of the control or WinZip 10
build 7245 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:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'WinZip FileView (WZFILEVIEW.FileViewCtrl.61) ActiveX Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2006/11/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2006/11/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2006/11/15");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:winzip:winzip");
  script_end_attributes();

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

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

  script_dependencies("smb_hotfixes.nasl");
  script_require_keys("SMB/Registry/Enumerated");
  script_require_ports(139, 445);

  exit(0);
}


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


# Connect to the appropriate share.
if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);
name    =  kb_smb_name();
port    =  kb_smb_transport();
login   =  kb_smb_login();
pass    =  kb_smb_password();
domain  =  kb_smb_domain();



if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');
rc = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
if (rc != 1)
{
  NetUseDel();
  exit(0);
}


# Connect to remote registry.
hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm))
{
  NetUseDel();
  exit(0);
}


# Check whether it's installed.
controls = make_array();
flags = make_array();

#
# strcat() due to Bug#1725
#
clsids = make_list(
  strcat("0A7A7240", "-D038", "-DB9F", "-B3B1", "-7FEFFE5F9ED6"),
  strcat("247D857F", "-1034", "-4AA6", "-BB1A", "-347D1A3340C8"),
  strcat("551E5AC9", "-BDBD", "-48EC", "-8AE2", "-ECAF90C7A214"),
  strcat("A09AE68F", "-B14D", "-43ED", "-B713", "-BA413F034904")
);
foreach clsid (clsids)
{
  key = "SOFTWARE\Classes\CLSID\{" + clsid +  "}\InprocServer32";
  key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
  if (!isnull(key_h))
  {
    value = RegQueryValue(handle:key_h, item:NULL);
    if (!isnull(value)) controls[clsid] = value[1];

    RegCloseKey(handle:key_h);
  }
  if (report_paranoia < 2)
  {
    # Check the compatibility flags for the control.
    key = "SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{" + clsid +  "}";
    key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
    flags = NULL;
    if (!isnull(key_h))
    {
      value = RegQueryValue(handle:key_h, item:"Compatibility Flags");
      if (!isnull(value)) flags[clsid] = value[1];

      RegCloseKey(handle:key_h);
    }
  }
}
RegCloseKey(handle:hklm);
if (max_index(keys(controls)) == 0) {
  NetUseDel();
  exit(0);
}


foreach clsid (keys(controls))
{
  # Determine the version from the control itself.
  file = controls[clsid];
  share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:file);
  ocx =  ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1", string:file);
  NetUseDel(close:FALSE);

  rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
  if (rc != 1)
  {
    NetUseDel();
    exit(0);
  }

  fh = CreateFile(
    file:ocx,
    desired_access:GENERIC_READ,
    file_attributes:FILE_ATTRIBUTE_NORMAL,
    share_mode:FILE_SHARE_READ,
    create_disposition:OPEN_EXISTING
  );
  if (!isnull(fh))
  {
    ver = GetFileVersion(handle:fh);
    CloseFile(handle:fh);
  }

  # Check the version number.
  if (
    !isnull(ver) &&
    (
      ver[0] < 6 ||
      (
        ver[0] == 6 &&
        (
          ver[1] < 1 ||
          (ver[1] == 1 && ver[2] < 7242)
        )
      )
    )
  )
  {
    report = NULL; found = 0;
    if (report_paranoia > 1)
      report = string(
        "The ActiveX control is installed, but Nessus did not check\n",
        "whether it is disabled in Internet Explorer because of the\n",
        "Report Paranoia setting in effect when this scan was run.\n"
      );
    else
    {
      # There's a problem if the kill bit isn't set.
      if (isnull(flags[clsid]) || flags[clsid] != 0x400)
      {
        if (report_verbosity)
        {
          version = string(ver[0], ".", ver[1], ".", ver[2], ".", ver[3]);
          report = string(
            "Version ", version, " of the control is installed as \n",
            "\n",
            "  ", file, "\n"
          );
        }
        else found = 1;
      }
    }
    if (report || found)
        security_hole(port:port, extra: report);
  }
}


# Clean up.
NetUseDel();

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

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

Go back to menu.

How to Run


Here is how to run the WinZip FileView ActiveX Control 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 WinZip FileView ActiveX Control Vulnerabilities plugin ID 23648.
  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 winzip_fileview_activex_code_exec.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - winzip_fileview_activex_code_exec.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 winzip_fileview_activex_code_exec.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:
  • 24909 - TestDirector (TD) for Mercury Quality Center SPIDERLib.Loader ActiveX Control (Spider90.ocx) ProgColor Property Overflow
  • 25344 - ProgramChecker sasatl.dll ActiveX Control Multiple Overflows
  • 25442 - FlipViewer ActiveX Control < 4.1 Buffer Overflow Vulnerabilities
  • 26185 - EasyMail SMTP Object ActiveX Control Multiple Buffer Overflows
  • 27599 - FLEXnet Connect Update Service ActiveX Control Multiple Code Execution Vulnerabilities
  • 27618 - SonicWALL SSL-VPN NetExtender NELaunchCtrl ActiveX Control Multiple Overflows
  • 29725 - HP Info Center ActiveX Control Multiple Remote Vulnerabilities
  • 29801 - IBM Lotus Domino Web Access ActiveX Control Buffer Overflow Vulnerabilities
  • 29825 - XUpload ActiveX Control AddFolder Method Buffer Overflow
  • 30152 - Facebook Photo Uploader ActiveX Control < 4.5.57.1 Multiple Buffer Overflows
  • 30205 - Yahoo! Music Jukebox ActiveX Controls Buffer Overflows
  • 30219 - MySpace Uploader ActiveX Control < 1.0.0.6 Action Property Buffer Overflow
  • 31351 - Symantec Backup Exec Calendar ActiveX Control Multiple Vulnerabilities (SYM08-007)
  • 32082 - Akamai Download Manager ActiveX Control < 2.2.3.5 Remote Code Execution
  • 33102 - Akamai Download Manager ActiveX Control < 2.2.3.6 Arbitrary File Download
  • 33859 - WebEx Meeting Manager WebexUCFObject ActiveX Control Buffer Overflow
  • 34049 - Novell iPrint Client ActiveX Control Multiple Vulnerabilities

Version


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

Go back to menu.