Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution - Nessus

High   Plugin ID: 66839

This page contains detailed information about the Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 66839
Name: Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution
Filename: siemens_solidedge_selistctrlx_activex.nasl
Vulnerability Published: 2013-05-26
This Plugin Published: 2013-06-07
Last Modification Time: 2018-11-15
Plugin Version: 1.8
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: High
Vulnerability Published: 2013-05-26
Patch Published: N/A
CVE [?]: N/A
CPE [?]: x-cpe:/a:siemens:solid_edge

Synopsis

The remote host has an ActiveX control that is affected by a code execution vulnerability.

Description

The remote host has the Siemens Solid Edge SEListCtrlX ActiveX control installed. This control has a flaw that could allow an attacker to execute arbitrary code via the 'SetItemReadOnly()' method by tricking a user into opening a specially crafted web page.

Solution

Disable the SEListCtrlX ActiveX control.

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 Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution vulnerability:

  1. Metasploit: exploit/windows/browser/siemens_solid_edge_selistctrlx
    [Siemens Solid Edge ST4 SEListCtrlX ActiveX Remote Code Execution]
  2. Exploit-DB: exploits/windows/dos/25712.txt
    [EDB-25712: SIEMENS Solid Edge ST4/ST5 SEListCtrlX - ActiveX SetItemReadOnly Arbitrary Memory Rewrite Remote Code Execution]

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:POC/RL:W/RC:ND
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.0 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.0 (High)

Go back to menu.

Plugin Source


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

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


include("compat.inc");


if (description)
{
  script_id(66839);
  script_version("1.8");
  script_cvs_date("Date: 2018/11/15 20:50:28");

  script_bugtraq_id(60161);
  script_xref(name:"EDB-ID", value:"25712");

  script_name(english:"Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution");
  script_summary(english:"Checks if kill bit is set for ActiveX control");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host has an ActiveX control that is affected by a code
execution vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote host has the Siemens Solid Edge SEListCtrlX ActiveX control
installed.  This control has a flaw that could allow an attacker to
execute arbitrary code via the 'SetItemReadOnly()' method by tricking a
user into opening a specially crafted web page."
  );
  script_set_attribute(attribute:"see_also", value:"http://retrogod.altervista.org/9sg_siemens_adv_ii.htm");
  script_set_attribute(attribute:"see_also", value:"https://support.microsoft.com/en-us/help/240797/how-to-stop-an-activex-control-from-running-in-internet-explorer");
  script_set_attribute(attribute:"solution", value:"Disable the SEListCtrlX ActiveX control.");
  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:POC/RL:W/RC:ND");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Siemens Solid Edge ST4 SEListCtrlX ActiveX Remote Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2013/05/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/06/07");

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

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

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

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

  exit(0);
}

include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_activex_func.inc");
include("smb_reg_query.inc");
include("misc_func.inc");

get_kb_item_or_exit("SMB/Registry/Enumerated");

clsid = '{5D6A72E6-C12F-4C72-ABF3-32F6B70EBB0D}';

if (activex_init() != ACX_OK) audit(AUDIT_FN_FAIL,'activex_init');

info = '';

vuln_version = '105.0.0.102';

file = activex_get_filename(clsid:clsid);

if (isnull(file))
{
  activex_end();
  audit(AUDIT_FN_FAIL, 'activex_get_filename');
}

if (!file)
{
  activex_end();
  audit(AUDIT_ACTIVEX_NOT_FOUND, clsid);
}

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

killbit = activex_get_killbit(clsid:clsid);

if (killbit == -1)
{
  activex_end();
  audit(AUDIT_FN_FAIL, 'activex_get_killbit', -1);
}

if (ver_compare(ver:version, fix:vuln_version) <= 0)
{
  if (report_paranoia > 1 || killbit == 0)
  {
      info += '\n  Class identifier  : ' + clsid +
              '\n  Filename          : ' + file +
              '\n  Installed version : ' + version;
   }
}

activex_end();

# Report findings.
if (info)
{
  if (report_paranoia > 1)
  {
    report = info +
      '\n' +
      'Note, though, that Nessus did not check whether the kill bit was\n' +
      "set for the control's CLSID because of the Report Paranoia setting" + '\n' +
      'in effect when this scan was run.\n';
  }
  else
  {
    report = info +
      '\n' +
      'Moreover, its kill bit is not set so it is accessible via Internet\n' +
      'Explorer.\n';
  }

  if (report_verbosity > 0) security_hole(port:kb_smb_transport(), extra:report);
  else security_hole(kb_smb_transport());

  exit(0);
}
else
{
  if (ver_compare(ver:version, fix:vuln_version) > 0)
    audit(AUDIT_INST_VER_NOT_VULN, 'SIEMENS Solid Edge SEListCtrlX ActiveX', version);
  else
    audit(AUDIT_ACTIVEX, version);
}

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

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

Go back to menu.

How to Run


Here is how to run the Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution 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 Siemens Solid Edge SEListCtrlX ActiveX Control SetItemReadOnly Method Memory Address Write Arbitrary Code Execution plugin ID 66839.
  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 siemens_solidedge_selistctrlx_activex.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 66840 - Siemens Solid Edge WPHelper ActiveX Control OpenInEditor Method Arbitrary Command Execution
  • 63428 - Siemens Automation License Manager Multiple Vulnerabilities
  • 85842 - Siemens SIMATIC S7-1200 PLC < 4.1.3 XSRF
  • 47759 - Siemens SIMATIC WinCC Default Password Authentication Bypass
  • 500424 - Siemens (CVE-2014-0160)
  • 500473 - Siemens (CVE-2014-0224)
  • 500128 - Siemens (CVE-2014-2908)
  • 500045 - Siemens (CVE-2014-5074)
  • 500088 - Siemens (CVE-2015-2177)
  • 500264 - Siemens (CVE-2015-5374)
  • 500035 - Siemens (CVE-2015-5698)
  • 500121 - Siemens (CVE-2016-8672)
  • 500153 - Siemens (CVE-2016-8673)
  • 500248 - Siemens (CVE-2018-3639)
  • 500055 - Siemens (CVE-2019-10943)
  • 500065 - Siemens (CVE-2019-12255)
  • 500279 - Siemens (CVE-2019-12256)
  • 500067 - Siemens (CVE-2019-12258)
  • 500292 - Siemens (CVE-2019-12260)
  • 500355 - Siemens (CVE-2019-13945)
  • 500484 - Siemens (CVE-2020-15782)
  • 500504 - Siemens (CVE-2021-3449)
  • 500615 - Siemens (CVE-2021-37185)
  • 500614 - Siemens (CVE-2021-37204)
  • 500616 - Siemens (CVE-2021-37205)

Version


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

Go back to menu.