Vulnerabilities > CVE-2012-5946 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in IBM Spss Samplepower 3.0.0.0

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
ibm
CWE-119
nessus
exploit available
metasploit

Summary

Buffer overflow in the c1sizer ActiveX control in C1sizer.ocx in IBM SPSS SamplePower 3.0 before FP1 allows remote attackers to execute arbitrary code via a long TabCaption string.

Vulnerable Configurations

Part Description Count
Application
Ibm
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionIBM SPSS SamplePower C1Tab ActiveX Heap Overflow. CVE-2012-5946. Remote exploit for windows platform
idEDB-ID:25814
last seen2016-02-03
modified2013-05-29
published2013-05-29
reportermetasploit
sourcehttps://www.exploit-db.com/download/25814/
titleIBM SPSS SamplePower C1Tab ActiveX Heap Overflow

Metasploit

descriptionThis module exploits a heap based buffer overflow in the C1Tab ActiveX control, while handling the TabCaption property. The affected control can be found in the c1sizer.ocx component as included with IBM SPSS SamplePower 3.0. This module has been tested successfully on IE 6, 7 and 8 on Windows XP SP3 and IE 8 on Windows 7 SP1.
idMSF:EXPLOIT/WINDOWS/BROWSER/IBM_SPSS_C1SIZER
last seen2020-06-04
modified2017-10-05
published2013-05-26
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/browser/ibm_spss_c1sizer.rb
titleIBM SPSS SamplePower C1Tab ActiveX Heap Overflow

Nessus

NASL familyWindows
NASL idIBM_SPSS_SAMPLE_POWER_ACTIVEX.NASL
descriptionThe remote install of IBM SPSS SamplePower has a vulnerable version of one or more ActiveX controls installed.
last seen2020-06-01
modified2020-06-02
plugin id66473
published2013-05-16
reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/66473
titleIBM SPSS SamplePower 3.0 < 3.0 FP 1 Multiple ActiveX Controls Arbitrary Code Execution
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(66473);
  script_version("1.15");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");

  script_cve_id(
    "CVE-2012-5945",
    "CVE-2012-5946",
    "CVE-2012-5947",
    "CVE-2013-0593"
  );
  script_bugtraq_id(59527, 59556, 59557, 59559);

  script_name(english:"IBM SPSS SamplePower 3.0 < 3.0 FP 1 Multiple ActiveX Controls Arbitrary Code Execution");
  script_summary(english:"Checks if ActiveX controls have been updated or disabled");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host has multiple ActiveX controls with code execution
vulnerabilities."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote install of IBM SPSS SamplePower has a vulnerable version of
one or more ActiveX controls installed.  'Vsflex8l.ocx', 'c1sizer.ocx',
'vsflex7l .ocx', and 'olch2x32.ocx' ActiveX controls have unspecified
arbitrary code execution vulnerabilities, which can be exploited by
tricking a user into opening a specially crafted web page."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-092/");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-099/");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-100/");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-101/");
  # https://www.ibm.com/blogs/psirt/security-bulletin-ibm-spss-samplepower-olch2x32-activex-control-vulnerability-cve-2013-0593/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?fef142e2");
  # https://www.ibm.com/blogs/psirt/security-bulletin-ibm-spss-samplepower-vsflex7l-activex-control-vulnerability-cve-2012-5947/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?5ef00761");
  # https://www.ibm.com/blogs/psirt/security-bulletin-ibm-spss-samplepower-c1sizer-activex-control-vulnerability-cve-2012-5946/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?caa21312");
  # https://www.ibm.com/blogs/psirt/security-bulletin-ibm-spss-samplepower-vsflex8l-activex-control-vulnerability-cve-2012-5945/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?64d1094a");
  script_set_attribute(attribute:"solution", value:"Upgrade to IBM SPSS SamplePower 3.0 FP 1 or higher.");
  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:'IBM SPSS SamplePower C1Tab ActiveX Heap 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:'D2ExploitPack');

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/05/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/04/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/05/16");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe",value:"cpe:/a:ibm:spss_samplepower");
  script_end_attributes();

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

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

  script_dependencies("ibm_spss_sample_power_installed.nasl");
  script_require_keys("SMB/ibm_spss_samplepower/Version");

  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");

app = 'IBM SPSS SamplePower';
kb_base = 'SMB/ibm_spss_samplepower/';

port = kb_smb_transport();

version = get_kb_item_or_exit(kb_base + "Version");
path = get_kb_item_or_exit(kb_base + "Path");

if (version !~ "^3\.")
  audit(AUDIT_INST_VER_NOT_VULN, app, version);

killbit_checks = make_list(
  '{92D71E93-25A8-11CF-A640-9986B64D9618}', # olch2x32.ocx
  '{C0A63B86-4B21-11D3-BD95-D426EF2C7949}', # vsflex7l.ocx
  '{24E04EBF-014D-471F-930E-7654B1193BA9}', # c1sizer.ocx
  '{0F026C11-5A66-4C2B-87B5-88DDEBAE72A1}'  # vsflex8l.ocx
);

info = '';

error_list = make_list();

foreach clsid (killbit_checks)
{
  file = activex_get_filename(clsid:clsid);

  if (isnull(file))
  {
    error_list = make_list(error_list,
                 'activex_get_filename() for CLSID ' + clsid + ' failed.');
    continue;
  }


  if (!file)
  {
    error_list = make_list(error_list,
                 'ActiveX control for CLSID ' + clsid + ' not found.');
    continue;
  }

  # Get its version.
  version = activex_get_fileversion(clsid:clsid);
  if (!version)
  {
    error_list = make_list(error_list,
                 'Error getting version for ActiveX control with CLSID ' +
                 clsid + '.');
    continue;
  }

  # per the patch, these controls should have kill bit set
  if (
    clsid != '{0F026C11-5A66-4C2B-87B5-88DDEBAE72A1}' && # vsflex8l.ocx
    activex_get_killbit(clsid:clsid) == 0
  )
  {
      info += '\n  Class identifier  : ' + clsid +
              '\n  Filename          : ' + file +
              '\n  Installed version : ' + version +
              '\n  Fixed version     : no fixed version available\n';
  }

  # this control can have its kill bit unset if it is up to date
  if (
    clsid == '{0F026C11-5A66-4C2B-87B5-88DDEBAE72A1}' && # vsflex8l.ocx
    ver_compare(ver:version, fix:'8.0.20122.296') == -1 &&
    activex_get_killbit(clsid:clsid) == 0
  )
  {
      info  += '\n  Class identifier  : ' + clsid +
               '\n  Filename          : ' + file +
               '\n  Installed version : ' + version +
               '\n  Fixed version     : 8.0.20122.296\n';
  }
}

activex_end();

report = '';

if (info != '')
{
  # build report
  report += '\nThe following vulnerable controls are installed and do not have a' +
            '\nkill bit set :\n' + info;

  if (max_index(error_list) > 0)
  {
    report += '\nThe results for this plugin may be incomplete due to the following' +
              '\nerrors:\n';
    foreach var error (error_list)
      report += error + '\n';
  }

  if (report_verbosity > 0) security_hole(extra:report, port:port);
  else security_hole(port);
}
else
{
  audit_msg = 'No vulnerable ActiveX controls found.\n';

  if (max_index(error_list) > 0)
  {
    audit_msg += 'The results for this plugin may be incomplete due to the following errors:\n';
    foreach error (error_list)
      audit_msg += error + '\n';
    # errors, exit with failure
    exit(1, audit_msg);
  }

  # no errors, exit with success
  exit(0, audit_msg);
}

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/121760/ibm_spss_c1sizer.rb.txt
idPACKETSTORM:121760
last seen2016-12-05
published2013-05-28
reporterAlexander Gavrun
sourcehttps://packetstormsecurity.com/files/121760/IBM-SPSS-SamplePower-C1Tab-ActiveX-Heap-Overflow.html
titleIBM SPSS SamplePower C1Tab ActiveX Heap Overflow

Saint

bid59559
descriptionIBM SPSS SamplePower c1sizer ActiveX Control Vulnerability
osvdb92845
titleibm_spss_samplepower_c1sizer
typeclient