Vulnerabilities > CVE-2012-0708 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in IBM Rational Clearquest

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
ibm
CWE-119
critical
nessus
exploit available
metasploit

Summary

Heap-based buffer overflow in the Ole API in the CQOle ActiveX control in cqole.dll in IBM Rational ClearQuest 7.1.1 before 7.1.1.9, 7.1.2 before 7.1.2.6, and 8.0.0 before 8.0.0.2 allows remote attackers to execute arbitrary code via a crafted web page that leverages a RegisterSchemaRepoFromFileByDbSet function-prototype mismatch.

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 Rational ClearQuest CQOle Remote Code Execution. CVE-2012-0708. Remote exploit for windows platform
idEDB-ID:19576
last seen2016-02-02
modified2012-07-05
published2012-07-05
reportermetasploit
sourcehttps://www.exploit-db.com/download/19576/
titleIBM Rational ClearQuest CQOle Remote Code Execution

Metasploit

descriptionThis module exploits a function prototype mismatch on the CQOle ActiveX control in IBM Rational ClearQuest < 7.1.1.9, < 7.1.2.6 or < 8.0.0.2 which allows reliable remote code execution when DEP isn't enabled.
idMSF:EXPLOIT/WINDOWS/BROWSER/CLEAR_QUEST_CQOLE
last seen2020-06-13
modified2020-02-18
published2012-07-03
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/browser/clear_quest_cqole.rb
titleIBM Rational ClearQuest CQOle Remote Code Execution

Nessus

NASL familyWindows
NASL idIBM_RATIONAL_CLEARQUEST_MAINTENANCE_TOOL_SQL_INJECTION.NASL
descriptionThe remote host is running a version of IBM Rational ClearQuest 7.1.1.x prior to 7.1.1.9 / 7.1.2.x prior to 7.1.2.6 / 8.0.0.x prior to 8.0.0.2 installed. It is, therefore, affected by the following vulnerabilities : - A SQL injection vulnerability exists in the ClearQuest Maintenance tool when upgrading the user database. Note that the Maintenance tool must be able to directly connect to ClearQuest repositories to be exploitable. (CVE-2011-1390) - A heap-based buffer overflow vulnerability exists in the
last seen2020-06-01
modified2020-06-02
plugin id59293
published2012-05-29
reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/59293
titleIBM Rational ClearQuest 7.1.1.x < 7.1.1.9 / 7.1.2.x < 7.1.2.6 / 8.0.0.x < 8.0.0.2 Multiple Vulnerabilities (credentialed check)
code
#
#  (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(59293);
  script_version("1.7");
  script_cvs_date("Date: 2018/07/12 19:01:17");

  script_cve_id("CVE-2011-1390", "CVE-2012-0708");
  script_bugtraq_id(53170, 53483);

  script_name(english:"IBM Rational ClearQuest 7.1.1.x < 7.1.1.9 / 7.1.2.x < 7.1.2.6 / 8.0.0.x < 8.0.0.2 Multiple Vulnerabilities (credentialed check)");
  script_summary(english:"Checks the version of IBM Rational ClearQuest.");

  script_set_attribute(
    attribute:"synopsis", value:
"The remote Windows host has an application installed that is affected
by multiple vulnerabilities."
  );
  script_set_attribute(
    attribute:"description", value:
"The remote host is running a version of IBM Rational ClearQuest
7.1.1.x prior to 7.1.1.9 / 7.1.2.x prior to 7.1.2.6 / 8.0.0.x prior
to 8.0.0.2 installed. It is, therefore, affected by the following
vulnerabilities :

  - A SQL injection vulnerability exists in the ClearQuest
    Maintenance tool when upgrading the user database. Note
    that the Maintenance tool must be able to directly
    connect to ClearQuest repositories to be exploitable.
    (CVE-2011-1390)
  
  - A heap-based buffer overflow vulnerability exists in the
    'RegisterSchemaRepoFromFileByDbSet' function of the
    CQOle ActiveX control (cqole.dll) due to improper
    parsing of parameters. Exploitation of this issue can
    result in arbitrary code execution. (CVE-2012-0708)"
  );
  script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21594717");
  script_set_attribute(attribute:"see_also", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21591705");
  script_set_attribute(
    attribute:"solution", value:
"Upgrade to IBM Rational ClearQuest 7.1.1.9 / 7.1.2.6 / 8.0.0.2 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: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:'IBM Rational ClearQuest CQOle Remote Code 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:'D2ExploitPack');

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/05/10");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/05/10");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/05/29");

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

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

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

  script_dependencies('ibm_rational_clearquest_installed.nasl');
  script_require_keys('installed_sw/IBM Rational ClearQuest');
  
  exit(0); 
}

include('ibm_rational_clearquest_version.inc');

rational_clearquest_check_version(
  fixes:make_nested_list(
    make_array("Min", "7.1.0.0", "Fix UI", "7.1.1.9", "Fix", "7.1109.0.176"),
    make_array("Min", "7.1.2.0", "Fix UI", "7.1.2.6", "Fix", "7.1206.0.141"),
    make_array("Min", "8.0.0.0", "Fix UI", "8.0.0.2", "Fix", "8.2.0.680")),
  severity:SECURITY_HOLE,
  sqli:TRUE
);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/114436/clear_quest_cqole.rb.txt
idPACKETSTORM:114436
last seen2016-12-05
published2012-07-03
reporterrgod
sourcehttps://packetstormsecurity.com/files/114436/IBM-Rational-ClearQuest-CQOle-Remote-Code-Execution.html
titleIBM Rational ClearQuest CQOle Remote Code Execution

Saint

bid53170
descriptionIBM Rational ClearQuest CQOle ActiveX
osvdb81443
titleibm_rational_clearquest_cqole_activex
typeclient

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 53170 CVE ID: CVE-2012-0708 IBM Rational ClearQuest是全面的软件变更、追踪管理解决方案。 IBM Rational ClearQuest 版本8.0, 8.0.0.1和7.1.1至7.1.2.5中的cqole.dll内CQOle ActiveX控件中的Ole API存在堆缓冲区溢出漏洞,通过RegisterSchemaRepoFromFileByDbSet函数原型错配恶意制作的网页可导致攻击者利用此漏洞执行任意代码。 0 IBM Rational ClearQuest 8.0.0.1 IBM Rational ClearQuest 8.0 IBM Rational ClearQuest 7.1.1 IBM Rational ClearQuest 7.1.2.5 厂商补丁: IBM --- IBM已经为此发布了一个安全公告(73492)以及相应补丁: 73492:IBM Rational ClearQuest ActiveX control (cqole.dll) buffer overflow 链接:http://xforce.iss.net/xforce/xfdb/73492
idSSV:60255
last seen2017-11-19
modified2012-07-04
published2012-07-04
reporterRoot
titleIBM Rational ClearQuest 'cqole.dll' ActiveX 控件堆缓冲区溢出漏洞(CVE-2012-0708)