KeyWorks KeyHelp ActiveX Control Multiple Vulnerabilities - Nessus

High   Plugin ID: 62311

This page contains detailed information about the KeyWorks KeyHelp ActiveX Control 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: 62311
Name: KeyWorks KeyHelp ActiveX Control Multiple Vulnerabilities
Filename: keyworks_keyhelp_activex.nasl
Vulnerability Published: 2009-09-30
This Plugin Published: 2012-09-26
Last Modification Time: 2019-12-04
Plugin Version: 1.11
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: High
Vulnerability Published: 2009-09-30
Patch Published: N/A
CVE [?]: CVE-2012-2515, CVE-2012-2516
CPE [?]: x-cpe:/a:keyworks:keyhelp
Exploited by Malware: True

Synopsis

The remote host has an ActiveX control installed that has multiple vulnerabilities.

Description

The remote host has KeyWorks KeyHelp ActiveX control installed, which is affected by multiple vulnerabilities :

- Multiple stack-based buffer overflows exist that could allow an attacker to execute arbitrary code. (CVE-2012-2515)

- An unspecified command injection vulnerability. (CVE-2012-2516)

Solution

Remove or disable the control as it is no longer supported.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the KeyWorks KeyHelp ActiveX Control Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/browser/keyhelp_launchtripane_exec
    [KeyHelp ActiveX LaunchTriPane Remote Code Execution Vulnerability]
  2. Metasploit: exploit/windows/fileformat/emc_appextender_keyworks
    [EMC ApplicationXtender (KeyWorks) ActiveX Control Buffer Overflow]
  3. Exploit-DB: exploits/windows/remote/9803.html
    [EDB-9803: EMC Captiva QuickScan Pro 4.6 SP1 and EMC Documentum ApllicationXtender Desktop 5.4 (keyhelp.ocx 1.2.312) - Remote Overflow]
  4. Exploit-DB: exploits/windows/remote/21888.rb
    [EDB-21888: KeyHelp - ActiveX LaunchTriPane Remote Code Execution (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 keyworks_keyhelp_activex.nasl nessus plugin source code. This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.

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

include("compat.inc");

if (description)
{
  script_id(62311);
  script_version("1.11");
  script_cvs_date("Date: 2019/12/04");

  script_cve_id("CVE-2012-2515", "CVE-2012-2516");
  script_bugtraq_id(36546, 40969, 55265);
  script_xref(name:"EDB-ID", value:"9803");
  script_xref(name:"ICSA", value:"12-131-02");

  script_name(english:"KeyWorks KeyHelp ActiveX Control Multiple Vulnerabilities");
  script_summary(english:"Checks for kill bits");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has an ActiveX control installed that has multiple
vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote host has KeyWorks KeyHelp ActiveX control installed, which
is affected by multiple vulnerabilities :

  - Multiple stack-based buffer overflows exist that could 
    allow an attacker to execute arbitrary code. 
    (CVE-2012-2515)

  - An unspecified command injection vulnerability. 
    (CVE-2012-2516)");
  # https://web.archive.org/web/20091003131709/http://retrogod.altervista.org/9sg_emc_keyhelp.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8facea87");
  script_set_attribute(attribute:"see_also", value:"http://sotiriu.de/adv/NSOADV-2010-008.txt");
  script_set_attribute(attribute:"solution", value:
"Remove or disable the control as it is no longer supported.");
  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:'KeyHelp ActiveX LaunchTriPane Remote Code Execution Vulnerability');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2009/09/30");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/09/26");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/a:keyworks:keyhelp");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

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

  exit(0);
}

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

get_kb_item_or_exit('SMB/Registry/Enumerated');
if (activex_init() != ACK_OK) audit(AUDIT_FN_FAIL, 'activex_init');

info = "";
installs = 0;

clsids = make_list(
  '{1E57C6C4-B069-11D3-8D43-00104B138C8C}',
  '{45E66957-2932-432A-A156-31503DF0A681}',
  '{B7ECFD41-BE62-11D2-B9A8-00104B138C8C}'
);

info = '';
foreach clsid (clsids)
{
  file = activex_get_filename(clsid:clsid);
  if (isnull(file))
  {
    activex_end();
    exit(1, "activex_get_filename() returned NULL.");
  }

  if (!file) continue;

  installs++;

  # Get its version.
  version = activex_get_fileversion(clsid:clsid);
  if (isnull(version))
  {
    activex_end();
    audit(AUDIT_VER_FAIL, file);
  }

  if (version == '') version = 'unknown';

  # And check it.
  if (report_paranoia > 1 || activex_get_killbit(clsid:clsid) == 0)
  {
    info += 
      '\n  Class identifier  : ' + clsid +
      '\n  Filename          : ' + file +
      '\n  Installed version : ' + version + '\n';
  }
}
activex_end();
if (!installs) exit(0, 'None of the affected CLSIDs were found on the remote host.');


# Report findings.
if (info)
{
  # At this point, we want to know how many *vulnerable* installs there are.
  installs = max_index(split(info)) / 4;

  if (report_paranoia > 1)
  {
    if (installs == 1)
      report = info +
        '\n' +
        '\nNote, though, that Nessus did not check whether the kill bit was set' +
        '\nfor the control\'s CLSID because of the Report Paranoia setting in' +
        '\neffect when this scan was run.\n';
    else
      report = info +
        '\n' +
        '\nNote, though, that Nessus did not check whether the kill bits were set' +
        '\nfor the controls\' CLSIDs because of the Report Paranoia setting in' +
        '\neffect when this scan was run.\n';
  }
  else
  {
    if (installs == 1)
      report = info +
        '\n' +
        '\nMoreover, its kill bit is not set so it is accessible via Internet' +
        '\nExplorer.\n';
    else
      report = info +
        '\n' +
        '\nMoreover, their kill bits are not set so they are accessible via' +
        '\nInternet Explorer.\n';
  }

  if (report_verbosity > 0) security_hole(port:kb_smb_transport(), extra:report);
  else security_hole(kb_smb_transport());
  exit(0);
}
else 
{
  if (installs == 1) exit(0, 'One of the controls is installed but its kill bit is set.');
  else exit(0, 'The controls are installed but their kill bits are set.');
}

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

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

Go back to menu.

How to Run


Here is how to run the KeyWorks KeyHelp ActiveX Control 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 KeyWorks KeyHelp ActiveX Control Multiple Vulnerabilities plugin ID 62311.
  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 keyworks_keyhelp_activex.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: ICSA | ICS Advisory: See also: Similar and related Nessus plugins:
  • 36087 - Autodesk IDrop ActiveX Control Heap Corruption
  • 36163 - SAP GUI KWEdit ActiveX Control SaveDocumentAs() Insecure Method
  • 38977 - IBM Access Support ActiveX Control GetXMLValue Method Overflow
  • 41062 - Altiris Altiris.AeXNSPkgDL.1 ActiveX Control DownloadAndInstall() Method Arbitrary Code Execution
  • 41945 - FlexCell Grid FlexCell.Grid ActiveX Control Multiple Method Arbitrary File Overwrite
  • 42372 - Altiris ConsoleUtilities 'BrowseAndSaveFile()' ActiveX Control Buffer Overflow
  • 51894 - SigPlus Pro ActiveX Control LCDWriteString() Method HexString Parameter Overflow
  • 54841 - Data Dynamics ActiveBar ActiveX Controls Code Execution
  • 55653 - Citrix Access Gateway Plug-in for Windows ActiveX Control Multiple Vulnerabilities (CTX129902)
  • 55832 - HP Easy Printer Care Software ActiveX Control Remote Code Execution Vulnerabilities
  • 57556 - NTR ActiveX Control < 2.0.4.8 Multiple Vulnerabilities
  • 58591 - D-Link DCS-5605 Network Surveillance DcsCliCtrl.dll ActiveX Control SelectDirectory() Method Buffer Overflow
  • 58597 - TRENDnet SecurView UltraMJCam ActiveX Control OpenFileDlg Method WideCharToMultiByte() Call Remote Overflow
  • 59685 - IBM Lotus iNotes Upload Module ActiveX Control Attachment_Times() Method Buffer Overflow
  • 60107 - Cisco Linksys PlayerPT ActiveX Control SetSource() Multiple Overflows
  • 60109 - Sony VAIO Wireless Manager ActiveX Control WifiMan.dll Multiple Buffer Overflows
  • 61719 - McAfee Virtual Technician ActiveX Control GetObject() Method Remote Command Execution (SB10028)
  • 62392 - Flexera AdminStudio LaunchProcess Function ActiveX Control Remote Command Execution
  • 63280 - WibuKey Runtime ActiveX Control DisplayMessageDialog Method String Parsing Overflow
  • 65612 - Samsung Kies < 2.5.0.12094_27_11 Multiple ActiveX Control Vulnerabilities
  • 65942 - McAfee Virtual Technician McHealthCheck.dll ActiveX Control Save() Method Arbitrary File Overwrite (SB10040)
  • 66473 - IBM SPSS SamplePower 3.0 < 3.0 FP 1 Multiple ActiveX Controls Arbitrary Code Execution
  • 66839 - Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution
  • 66840 - Siemens Solid Edge WPHelper ActiveX Control OpenInEditor Method Arbitrary Command Execution
  • 69421 - Tumbleweed SecureTransport vcst_eu.dll ActiveX Control Buffer Overflows

Version


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

Go back to menu.