Vulnerabilities > CVE-2007-5661 - Code Injection vulnerability in Macrovision Installshield

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
macrovision
CWE-94
critical
nessus

Summary

The Macrovision InstallShield InstallScript One-Click Install (OCI) ActiveX control 12.0 before SP2 does not validate the DLL files that are named as parameters to the control, which allows remote attackers to download arbitrary library code onto a client machine.

Vulnerable Configurations

Part Description Count
Application
Macrovision
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Nessus

NASL familyWindows
NASL idINSTALLSHIELD_INSTALLSCRIPT_LIBRARY_LOADING.NASL
descriptionThe remote host contains the InstallScript One-Click Install ActiveX control distributed with Macrovision
last seen2020-06-01
modified2020-06-02
plugin id31724
published2008-04-01
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/31724
titleMacrovision InstallShield InstallScript One-Click Install ActiveX Arbitrary Code Execution
code
#
#  (C) Tenable Network Security, Inc.
#


include("compat.inc");

if (description)
{
  script_id(31724);
  script_version("1.19");

  script_cve_id("CVE-2007-5661");
  script_bugtraq_id(28533);
  script_xref(name:"Secunia", value:"29549");

  script_name(english:"Macrovision InstallShield InstallScript One-Click Install ActiveX Arbitrary Code Execution");
  script_summary(english:"Checks version of One-Click Install ActiveX control");

 script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an ActiveX control that is affected by a
buffer overflow vulnerability." );
 script_set_attribute(attribute:"description", value:
"The remote host contains the InstallScript One-Click Install ActiveX
control distributed with Macrovision's InstallShield.

The installed version of that control reportedly allows an attacker to
download arbitrary DLL files from a website to be executed as part of
a web install.  If a remote attacker can trick a user on the affected
host into visiting a specially crafted web page, this issue could be
leveraged to execute arbitrary code on the affected host subject to
the user's privileges." );
 # https://labs.idefense.com/verisign/intelligence/2009/vulnerabilities/display.php?id=649
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a6772e50" );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2008/Mar/599" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to InstallShield 12 Service Pack 2 if necessary, apply the
appropriate hotfix, and then rebuild and update any HTML files as
described in the vendor's advisory." );
 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:U/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_cwe_id(94);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/04/01");
 script_cvs_date("Date: 2018/11/15 20:50:27");
script_set_attribute(attribute:"plugin_type", value:"local");
script_end_attributes();


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

  script_copyright(english:"This script is Copyright (C) 2008-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("smb_activex_func.inc");


if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);


# Locate the file used by the controls.
if (activex_init() != ACX_OK) exit(0);

clsid = "{53D40FAA-4E21-459f-AA87-E4D97FC3245A}";
file = activex_get_filename(clsid:clsid);
if (file)
{
  # Check its version.
  ver = activex_get_fileversion(clsid:clsid);
  if (
    ver && 
    ver =~ "^12\." &&
    activex_check_fileversion(clsid:clsid, fix:"12.0.0.58855") == TRUE
  )
  {
    report = NULL;
    if (report_paranoia > 1)
      report = string(
        "\n",
        "Version ", ver, " of the vulnerable control is installed as :\n",
        "\n",
        "  ", file, "\n",
        "\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 if (activex_get_killbit(clsid:clsid) == 0)
      report = string(
        "\n",
        "Version ", ver, " of the vulnerable control is installed as :\n",
        "\n",
        "  ", file, "\n",
        "\n",
        "Moreover, its kill bit is not set so it is accessible via Internet\n",
        "Explorer.\n"
      );
    if (report)
    {
      if (report_verbosity) security_hole(port:kb_smb_transport(), extra:report);
      else security_hole(kb_smb_transport());
    }
  }
}
activex_end();

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 28533 CVE(CAN) ID: CVE-2007-5661 MacroVision InstallShield是很多软件厂商都在使用的安装程序解决方案。 InstallShield所安装的InstallScript One-Click Install ActiveX控件加载了不可信任的函数库,可能允许远程攻击者以当前登录用户的权限执行任意命令。 InstallShield InstallScript One-Click Install控件的属性如下: 文件:%WINDIR%\Downloaded Program Files\setup.exe CLSID:53D40FAA-4E21-459f-AA87-E4D97FC3245A 当用户访问允许执行web安装的站点时,ActiveX控件就会下载并加载一些远程站点的DLL文件。由于没有对这些DLL文件执行检查,攻击者就可以替换为特别的库,如果加载就会执行任意代码。 Macrovision InstallShield 12 SP1 Macrovision InstallShield 12 临时解决方法: * 将以下文本保存为.reg文件并双击导入: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{53D40FAA-4E21-459f-AA87-E4D97FC3245A}] &quot;Compatibility Flags&quot;=dword:00000400 厂商补丁: Macrovision ----------- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://saturn.installshield.com/is/12/windows/domestic/sp2/OCIHotFix/Update.exe target=_blank>http://saturn.installshield.com/is/12/windows/domestic/sp2/OCIHotFix/Update.exe</a>
idSSV:3114
last seen2017-11-19
modified2008-04-03
published2008-04-03
reporterRoot
titleMacrovision InstallShield InstallScript OCI控件不可信任库代码执行漏洞