Vulnerabilities > CVE-2009-1136 - Code Injection vulnerability in Microsoft products

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

Summary

The Microsoft Office Web Components Spreadsheet ActiveX control (aka OWC10 or OWC11), as distributed in Office XP SP3 and Office 2003 SP3, Office XP Web Components SP3, Office 2003 Web Components SP3, Office 2003 Web Components SP1 for the 2007 Microsoft Office System, Internet Security and Acceleration (ISA) Server 2004 SP3 and 2006 Gold and SP1, and Office Small Business Accounting 2006, when used in Internet Explorer, allows remote attackers to execute arbitrary code via a crafted call to the msDataSourceObject method, as exploited in the wild in July and August 2009, aka "Office Web Components HTML Script Vulnerability."

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.

Exploit-Db

  • descriptionMicrosoft OWC Spreadsheet msDataSourceObject Memory Corruption. CVE-2009-1136. Remote exploit for windows platform
    idEDB-ID:16537
    last seen2016-02-02
    modified2010-07-20
    published2010-07-20
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16537/
    titleMicrosoft OWC Spreadsheet msDataSourceObject Memory Corruption
  • descriptionMicrosoft Office Web Components (Spreadsheet) ActiveX BOF PoC. CVE-2009-1136. Dos exploit for windows platform
    idEDB-ID:9163
    last seen2016-02-01
    modified2009-07-16
    published2009-07-16
    reporterN/A
    sourcehttps://www.exploit-db.com/download/9163/
    titleMicrosoft Office Web Components Spreadsheet ActiveX BoF PoC

Metasploit

descriptionThis module exploits a memory corruption vulnerability within versions 10 and 11 of the Office Web Component Spreadsheet ActiveX control. This module was based on an exploit found in the wild.
idMSF:EXPLOIT/WINDOWS/BROWSER/MS09_043_OWC_MSDSO
last seen2020-05-24
modified2019-05-23
published2010-03-02
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/browser/ms09_043_owc_msdso.rb
titleMicrosoft OWC Spreadsheet msDataSourceObject Memory Corruption

Msbulletin

bulletin_idMS09-043
bulletin_url
date2009-08-11T00:00:00
impactRemote Code Execution
knowledgebase_id957638
knowledgebase_url
severityCritical
titleVulnerabilities in Microsoft Office Web Components Could Allow Remote Code Execution

Nessus

  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS09-043.NASL
    descriptionThe remote host is running a version of Microsoft Office Web Components that is affected by various flaws that may allow arbitrary code to be run. To succeed, the attacker would have to send specially crafted URLs to a user of the remote computer and have him process it with Microsoft Office Web Components.
    last seen2020-06-01
    modified2020-06-02
    plugin id40562
    published2009-08-11
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40562
    titleMS09-043: Vulnerabilities in Microsoft Office Web Components Could Allow Remote Code Execution (957638)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    
    include("compat.inc");
    
    if (description)
    {
     script_id(40562);
     script_version("1.32");
     script_cvs_date("Date: 2018/11/15 20:50:30");
    
     script_cve_id("CVE-2009-0562", "CVE-2009-2496", "CVE-2009-1136", "CVE-2009-1534");
     script_bugtraq_id(35642, 35990, 35991, 35992);
     script_xref(name:"IAVA", value:"2009-A-0069");
     script_xref(name:"MSFT", value:"MS09-043");
     script_xref(name:"MSKB", value:"947318");
     script_xref(name:"MSKB", value:"947319");
     script_xref(name:"MSKB", value:"947320");
     script_xref(name:"MSKB", value:"947826");
     script_xref(name:"MSKB", value:"968377");
     script_xref(name:"MSKB", value:"969172");
     script_xref(name:"Secunia", value:"35800");
     script_xref(name:"EDB-ID", value:"9163");
     script_xref(name:"EDB-ID", value:"16537");
     script_xref(name:"EDB-ID", value:"16542");
    
     script_name(english:"MS09-043: Vulnerabilities in Microsoft Office Web Components Could Allow Remote Code Execution (957638)");
     script_summary(english:"Determines the version of MSO.dll");
    
     script_set_attribute(attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host through Microsoft
    Office Web Components.");
     script_set_attribute(attribute:"description", value:
    "The remote host is running a version of Microsoft Office Web
    Components that is affected by various flaws that may allow arbitrary
    code to be run.
    
    To succeed, the attacker would have to send specially crafted URLs to
    a user of the remote computer and have him process it with Microsoft
    Office Web Components.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2009/ms09-043");
     script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Office XP and 2003, as
    well as for Microsoft ISA server.");
     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:'Microsoft OWC Spreadsheet HTMLURL Buffer 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_cwe_id(94, 119, 399);
    
     script_set_attribute(attribute:"vuln_publication_date", value:"2009/07/13");
     script_set_attribute(attribute:"patch_publication_date", value:"2009/08/11");
     script_set_attribute(attribute:"plugin_publication_date", value:"2009/08/11");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:biztalk_server");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:isa_server");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office_web_components");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:visual_studio_.net");
     script_set_attribute(attribute:"stig_severity", value:"II");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
     script_family(english:"Windows : Microsoft Bulletins");
    
     script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
    
     script_dependencies("smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
     script_require_keys("SMB/MS_Bulletin_Checks/Possible");
     script_require_ports(139, 445, 'Host/patch_management_checks');
     exit(0);
    }
    
    
    include("smb_func.inc");
    include("smb_hotfixes.inc");
    include("smb_hotfixes_fcheck.inc");
    include("smb_activex_func.inc");
    include("misc_func.inc");
    include("audit.inc");
    
    
    get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");
    
    bulletin = 'MS09-043';
    kbs = make_list("947318", "947319", "947320", "947826", "968377", "969172");
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    
    
    vuln = FALSE;
    get_kb_item_or_exit('SMB/WindowsVersion');
    path = get_kb_item("SMB/Registry/HKLM/SOFTWARE/Microsoft/Fpc");
    if ( path )
    {
      # This is MS ISA
    
      if (activex_init() != ACX_OK) exit(1, "Could not initialize the ActiveX checks");
      hcf_init = TRUE;
    
      # Test each control.
      info = NULL;
      clsids = make_list(
       "{0002E543-0000-0000-C000-000000000046}",
       "{0002E55B-0000-0000-C000-000000000046}"
      );
    
      foreach clsid (clsids)
      {
        file = activex_get_filename(clsid:clsid);
        if (file)
        {
          if (activex_get_killbit(clsid:clsid) == 0)
          {
            version = activex_get_fileversion(clsid:clsid);
            if (!version) version = "Unknown";
    
            info =
              '\n' +
              '  Class Identifier : ' + clsid + '\n' +
              '  Filename         : ' + file + '\n' +
              '  Version          : ' + version + '\n';
            if (!thorough_tests) break;
          }
        }
      }
    
      if (!isnull(info))
      {
        vuln = TRUE;
        hotfix_add_report(info, bulletin:bulletin, kb:'947826');
      }
      RegCloseKey(handle:_acx_hklm);
    }
    
    if (!path)
    {
      login  = kb_smb_login();
      pass   = kb_smb_password();
      domain = kb_smb_domain();
      port   = kb_smb_transport();
    
      if(! smb_session_init()) audit(AUDIT_FN_FAIL, "smb_session_init");
    
      rc = NetUseAdd(login:login, password:pass, domain:domain, share:'IPC$');
      if (rc != 1)
      {
        NetUseDel();
        audit(AUDIT_SHARE_FAIL, "IPC$");
      }
      hcf_init = TRUE;
    }
    
    hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
    if (isnull(hklm))
    {
      NetUseDel();
      audit(AUDIT_REG_FAIL);
    }
    
    # Visual Studio .Net
    vs_dll = NULL;
    vs_path = NULL;
    key = 'SOFTWARE\\Microsoft\\VisualStudio\\7.1';
    key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
    if (!isnull(key_h))
    {
      item = RegQueryValue(handle:key_h, item:'InstallDir');
      if (!isnull(item))
      {
        rootfile = hotfix_get_programfilesdir();
        vs_dll = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\Microsoft Office\\Office\\msowc.dll', string:rootfile);
        vs_path = rootfile + '\\Microsoft Office\\Office';
      }
      RegCloseKey(handle:key_h);
    }
    
    # Microsoft Small Business Acounting 2006
    sba_dll = NULL;
    sba_path = NULL;
    key = 'SOFTWARE\\Microsoft\\Small Business Accounting\\1.0\\InstallRoot';
    key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
    if (!isnull(key_h))
    {
      item = RegQueryValue(handle:key_h, item:'Main');
      if (!isnull(item))
      {
        rootfiles = hotfix_get_officecommonfilesdir();
        checkeddirs = make_array();
        if (typeof(rootfiles) != 'array')
        {
          temp = rootfiles;
          rootfiles = make_array('commonfiles', temp);
        }
        foreach item (keys(rootfiles))
        {
          rootfile = rootfiles[item];
          if (checkeddirs[item]) continue;
          checkeddirs[item] = 1;
          sba_dll = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\Microsoft Shared\\Web Components', string:rootfile);
          sba_dll += '\\11\\Owc11.dll';
          sba_path = rootfile + '\\Microsoft Shared\\Web Components\\';
          break;
        }
      }
      RegCloseKey(handle:key_h);
    }
    RegCloseKey(handle:hklm);
    NetUseDel(close:FALSE);
    
    # Office Suites and Office Web Components
    office_ver = hotfix_check_office_version();
    if (!is_accessible_share())
    {
      if (vuln)
      {
        NetUseDel();
        hotfix_security_hole();
        exit(0);
      }
      else exit(1, 'is_accessible_share() failed.');
    }
    
    rootfile = hotfix_get_officeprogramfilesdir();
    
    share = '';
    lastshare = '';
    if (rootfile && office_version)
    {
      foreach ver (keys(office_version))
      {
        if (typeof(rootfiles) == 'array') rootfile = rootfiles[ver];
        else rootfile = rootfiles;
        info = NULL;
        path = NULL;
        kb = '';
        if (ver == "9.0")
        {
          dll = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\Microsoft Office\\Office\\msowc.dll', string:rootfile);
          path = rootfile + '\\Microsoft Office\\Office';
          kb = '947320';
        }
        else if (ver == "10.0")
        {
          dll = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\Microsoft Office\\Office10\\owc10.dll', string:rootfile);
          path = rootfile + '\\Microsoft Office\\Office10\\';
          kb = '947320';
        }
        else if (ver == "11.0")
        {
          rootfile = hotfix_get_officecommonfilesdir(officever:'11.0');
          dll = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\Microsoft Shared\\Web Components', string:rootfile);
          dll += '\\11\\Owc11.dll';
          path = rootfile + '\\Microsoft Shared\\Web Components\\';
          kb = '947319';
        }
        else if (ver == "12.0")
        {
          rootfile = hotfix_get_officecommonfilesdir(officever:'12.0');
          dll = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\Microsoft Shared\\Web Components', string:rootfile);
          dll += '\\11\\Owc11.dll';
          path = rootfile + '\\Microsoft Shared\\Web Components\\';
          kb = '947318';
        }
    
        if (path)
        {
          share = hotfix_path2share(path:path);
          if (share != lastshare)
          {
            lastshare = share;
            NetUseDel(close:FALSE);
            rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
            if (rc != 1)
            {
              audit(AUDIT_SHARE_FAIL, share);
            }
          }
    
          handle = CreateFile(
            file:dll,
            desired_access:GENERIC_READ,
            file_attributes:FILE_ATTRIBUTE_NORMAL,
            share_mode:FILE_SHARE_READ,
            create_disposition:OPEN_EXISTING
          );
    
          if (!isnull(handle))
          {
            ver = GetFileVersion(handle:handle);
            CloseFile(handle:handle);
            if (!isnull(ver))
            {
              version = join(ver, sep:'.');
              if (ver[0] == 9 && ver[1] == 0 && ver[2] == 0 && ver[3] < 8977)
              {
                info =
                  '\n  Path              : ' + path +
                  '\n  Installed version : ' + version +
                  '\n  Fixed version     : 9.0.0.8977 \n';
              }
              else if (ver[0] == 10 && ver[1] == 0 && ver[2] < 6854)
              {
                info =
                  '\n  Path              : ' + path +
                  '\n  Installed version : ' + version +
                  '\n  Fixed version     : 10.0.6854.0 \n';
              }
              else if (ver[0] == 11 && ver[1] == 0 && ver[2] < 8304)
              {
                info =
                  '\n  Path              : ' + path +
                  '\n  Installed version : ' + version +
                  '\n  Fixed version     : 11.0.8304.0 \n';
              }
              else if (ver[0] == 12 && ver[1] == 0 && (ver[2] < 6502 || (ver[2] == 6502 && ver[3] < 5000)))
              {
                info =
                  '\n  Path              : ' + path +
                  '\n  Installed version : ' + version +
                  '\n  Fixed version     : 12.0.6502.5000 \n';
              }
            }
          }
        }
        if (info)
        {
          vuln = TRUE;
          hotfix_add_report(info, bulletin:bulletin, kb:kb);
        }
      }
      NetUseDel(close:FALSE);
    }
    if (!vuln)
    {
      # Multiple versions of Office Web Components can be installed separately
      # without installing office
      rootfile = NULL;
      rootfile = hotfix_get_commonfilesdir();
    
      if (rootfile)
      {
        rootfile += '\\Microsoft Shared\\Web Components\\';
        share = ereg_replace(pattern:'^([A-Za-z]):.*', replace:'\\1$', string:rootfile);
        dirpat = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:'\\1\\*', string:rootfile);
    
        rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
        if (rc != 1)
        {
          audit(AUDIT_SHARE_FAIL, share);
        }
    
        owcdirs = make_list();
        fh = FindFirstFile(pattern:dirpat);
        while (!isnull(fh[1]))
        {
          if (fh[2] && FILE_ATTRIBUTE_DIRECTORY)
          {
            if (fh[1] =~ '^[0-9]+$')
            {
              owcdirs = make_list(owcdirs, fh[1]);
            }
          }
          fh = FindNextFile(handle:fh);
        }
    
        if (max_index(owcdirs) > 0)
        {
          for (i=0; i < max_index(owcdirs); i++)
          {
            info = NULL;
            path = rootfile + '\\' + owcdirs[i] + '\\';
            dll = ereg_replace(pattern:'[A-Za-z]:(.*)', replace:'\\1\\owc'+owcdirs[i]+'.dll', string:path);
    
            handle = CreateFile(
              file:dll,
              desired_access:GENERIC_READ,
              file_attributes:FILE_ATTRIBUTE_NORMAL,
              share_mode:FILE_SHARE_READ,
              create_disposition:OPEN_EXISTING
            );
    
            if (!isnull(handle))
            {
              ver = GetFileVersion(handle:handle);
              CloseFile(handle:handle);
              if (!isnull(ver))
              {
                version = join(ver, sep:'.');
                if (ver[0] == 10 && ver[1] == 0 && ver[2] < 6854)
                {
                  info =
                    '\n  Path              : ' + path +
                    '\n  Installed version : ' + version +
                    '\n  Fixed version     : 10.0.6854.0 \n';
                }
                else if (ver[0] == 11 && ver[1] == 0 && ver[2] < 8304)
                {
                  info =
                    '\n  Path              : ' + path +
                    '\n  Installed version : ' + version +
                    '\n  Fixed version     : 11.0.8304.0 \n';
                }
                else if (ver[0] == 12 && ver[1] == 0 && (ver[2] < 6502 || (ver[2] == 6502 && ver[3] < 5000)))
                {
                  info =
                    '\n  Path              : ' + path +
                    '\n  Installed version : ' + version +
                    '\n  Fixed version     : 12.0.6502.5000 \n';
                }
              }
            }
            if (info)
            {
              vuln = TRUE;
              hotfix_add_report(info, bulletin:bulletin, kb:kb);
            }
          }
        }
        NetUseDel(close:FALSE);
      }
    }
    if (vs_dll || sba_dll)
    {
      rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
      if (rc != 1)
      {
        audit(AUDIT_SHARE_FAIL, share);
      }
      if (vs_dll)
      {
        handle = CreateFile(
          file:vs_dll,
          desired_access:GENERIC_READ,
          file_attributes:FILE_ATTRIBUTE_NORMAL,
          share_mode:FILE_SHARE_READ,
          create_disposition:OPEN_EXISTING
        );
        if (!isnull(handle))
        {
          ver = GetFileVersion(handle:handle);
          CloseFile(handle:handle);
          if (!isnull(ver))
          {
            version = join(ver, sep:'.');
            if (ver[0] == 9 && ver[1] == 0 && ver[2] == 0 && ver[3] < 8977)
            {
              info =
                '\n  Path              : ' + vs_path +
                '\n  Installed version : ' + version +
                '\n  Fixed version     : 9.0.0.8977 \n';
              vuln = TRUE;
              hotfix_add_report(info, bulletin:bulletin, kb:'969172');
            }
          }
        }
      }
      if (sba_dll)
      {
        handle = CreateFile(
          file:sba_dll,
          desired_access:GENERIC_READ,
          file_attributes:FILE_ATTRIBUTE_NORMAL,
          share_mode:FILE_SHARE_READ,
          create_disposition:OPEN_EXISTING
        );
        if (!isnull(handle))
        {
          ver = GetFileVersion(handle:handle);
          CloseFile(handle:handle);
          if (!isnull(ver))
          {
            version = join(ver, sep:'.');
            if (ver[0] == 11 && ver[1] == 0 && ver[2] < 8304)
            {
              info =
                '\n  Path              : ' + sba_path +
                '\n  Installed version : ' + version +
                '\n  Fixed version     : 11.0.8304 \n';
              vuln = TRUE;
              hotfix_add_report(info, bulletin:bulletin, kb:'968377');
            }
          }
        }
      }
    }
    NetUseDel();
    
    if (vuln)
    {
      set_kb_item(name:'SMB/Missing/MS09-043', value:TRUE);
      hotfix_security_hole();
      exit(0);
    }
    else exit(0, 'Host is patched.');
    
  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_KB_973472.NASL
    descriptionThe remote Windows host includes Microsoft Office Web Components, a collection of Component Object Model (COM) controls for publishing and viewing spreadsheets, charts, and databases on the web. A privately reported vulnerability in Microsoft Office Web Components reportedly can be abused to corrupt the system state and allow execution of arbitrary code.
    last seen2020-06-01
    modified2020-06-02
    plugin id39783
    published2009-07-14
    reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/39783
    titleMS09-043: Vulnerabilities in Microsoft Office Web Components Control Could Allow Remote Code Execution (973472)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    
    include("compat.inc");
    
    
    if (description)
    {
      script_id(39783);
      script_version("1.28");
     script_cvs_date("Date: 2018/11/15 20:50:32");
    
      script_cve_id("CVE-2009-1136");
      script_bugtraq_id(35642);
      script_xref(name:"IAVA", value:"2009-A-0069");
      script_xref(name:"MSFT", value:"MS09-043");
      script_xref(name:"Secunia", value:"35800");
      script_xref(name:"MSKB", value:"973472");
    
      script_name(english:"MS09-043: Vulnerabilities in Microsoft Office Web Components Control Could Allow Remote Code Execution (973472)");
      script_summary(english:"Checks kill bits for each affected control");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote Windows host contains an ActiveX control that could allow
    remote code execution.");
      script_set_attribute(attribute:"description", value:
    "The remote Windows host includes Microsoft Office Web Components, a
    collection of Component Object Model (COM) controls for publishing and
    viewing spreadsheets, charts, and databases on the web. 
    
    A privately reported vulnerability in Microsoft Office Web Components
    reportedly can be abused to corrupt the system state and allow execution
    of arbitrary code.");
      script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityAdvisories/2009/973472");
      script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2009/ms09-043");
      script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Office XP and 2003, as well
    as for Microsoft ISA server." );
      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:'Microsoft OWC Spreadsheet msDataSourceObject Memory Corruption');
      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_cwe_id(94);
    
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/07/14");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"stig_severity", value:"II");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Windows : Microsoft Bulletins");
    
      script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
    
      script_dependencies("smb_hotfixes.nasl", "smb_nt_ms09-043.nasl");
      script_require_keys("SMB/WindowsVersion", "SMB/Missing/MS09-043");
      script_require_ports(139, 445);
    
      exit(0);
    }
    
    
    include("smb_func.inc");
    include("smb_hotfixes.inc");
    include("smb_activex_func.inc");
    
    
    if (!get_kb_item("SMB/Missing/MS09-043")) exit(0);
    if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);
    
    
    if (activex_init() != ACX_OK) exit(0);
    
    
    # Test each control.
    info = "";
    clsids = make_list(
      "{0002E541-0000-0000-C000-000000000046}",
      "{0002E559-0000-0000-C000-000000000046}"
    );
    
    foreach clsid (clsids)
    {
      file = activex_get_filename(clsid:clsid);
      if (file)
      {
        if (activex_get_killbit(clsid:clsid) == 0)
        {
          version = activex_get_fileversion(clsid:clsid);
          if (!version) version = "Unknown";
    
          info += string(
            "\n",
            "  Class Identifier : ", clsid, "\n",
            "  Filename         : ", file, "\n",
            "  Version          : ", version, "\n"
          );
          if (!thorough_tests) break;
        }
      }
    }
    activex_end();
    
    
    if (info)
    {
      if (report_verbosity > 0)
      {
        if (max_index(split(info)) > 4) s = "s";
        else s = "";
    
        report = string(
          "\n",
          "The kill bit has not been set for the following control", s, " :\n",
          "\n",
          info
        );
    
        if (!thorough_tests)
        {
          report = string(
            report,
            "\n",
            "Note that Nessus did not check whether there were other kill bits\n",
            "that have not been set because the 'Perofrm thorough tests' setting\n",
            "was not enabled when this scan was run.\n"
          );
        }
        security_hole(port:kb_smb_transport(), extra:report);
      }
      else security_hole(kb_smb_transport());
    }
    

Oval

accepted2014-06-30T04:11:07.556-04:00
classvulnerability
contributors
  • nameDragos Prisaca
    organizationGideon Technologies, Inc.
  • nameMike Lah
    organizationThe MITRE Corporation
  • nameJosh Turpin
    organizationSymantec Corporation
  • nameMaria Mikhno
    organizationALTX-SOFT
definition_extensions
  • commentMicrosoft Office XP is installed
    ovaloval:org.mitre.oval:def:663
  • commentMicrosoft Office XP Web Components is installed
    ovaloval:org.mitre.oval:def:6283
  • commentMicrosoft Office 2003 Web Components is installed
    ovaloval:org.mitre.oval:def:6189
  • commentMicrosoft Office 2007 is installed
    ovaloval:org.mitre.oval:def:1211
  • commentMicrosoft Office 2003 Web Components is installed
    ovaloval:org.mitre.oval:def:6189
  • commentMicrosoft Internet Security and Acceleration Server 2004
    ovaloval:org.mitre.oval:def:5940
  • commentMicrosoft Internet Security and Acceleration Server 2006
    ovaloval:org.mitre.oval:def:6052
  • commentMicrosoft Office Small Business Accounting 2006 is installed
    ovaloval:org.mitre.oval:def:6181
descriptionThe Microsoft Office Web Components Spreadsheet ActiveX control (aka OWC10 or OWC11), as distributed in Office XP SP3 and Office 2003 SP3, Office XP Web Components SP3, Office 2003 Web Components SP3, Office 2003 Web Components SP1 for the 2007 Microsoft Office System, Internet Security and Acceleration (ISA) Server 2004 SP3 and 2006 Gold and SP1, and Office Small Business Accounting 2006, when used in Internet Explorer, allows remote attackers to execute arbitrary code via a crafted call to the msDataSourceObject method, as exploited in the wild in July and August 2009, aka "Office Web Components HTML Script Vulnerability."
familywindows
idoval:org.mitre.oval:def:5809
statusaccepted
submitted2009-08-11T13:00:00
titleOffice Web Components HTML Script Vulnerability
version11

Packetstorm

Saint

bid35642
descriptionMicrosoft Office Web Components OWC.Spreadsheet Evaluate method vulnerability
idwin_patch_owcrce
osvdb55806
titlems_office_web_components_spreadsheet_eval
typeclient

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 35642 CVE(CAN) ID: CVE-2009-1136 Microsoft Office是非常流行的办公软件套件。 Office Web组件是用于向Web发布电子表格、图表和数据库的COM控件,其中的Spreadsheet ActiveX控件(OWC 10和OWC11)存在内存破坏漏洞。如果用户受骗访问了恶意恶意网页并向该控件,就会导致执行任意指令。 目前这个漏洞正在被挂马攻击广为利用。 Microsoft ISA Server 2006 SP1 Microsoft ISA Server 2006 Microsoft ISA Server 2004 SP3 Microsoft Office XP SP3 Microsoft Office 2003 Service Pack 3 临时解决方法: * 对漏洞相关的控件设置Kill Bit,对漏洞相关控件设置Kill Bit应该不会对系统造成太大影响。 设置Kill Bit,或者将以下文本保存为.REG文件并导入: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{0002E541-0000-0000-C000-000000000046}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{0002E559-0000-0000-C000-000000000046}] &quot;Compatibility Flags&quot;=dword:00000400 微软已经提供了一个工具来完成上述操作: http://go.microsoft.com/?linkid=9672747 * 暂时不要使用IE浏览器,可以使用Opera或Firefox。 厂商补丁: Microsoft --------- 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本: http://www.microsoft.com/technet/security/
idSSV:11804
last seen2017-11-19
modified2009-07-14
published2009-07-14
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-11804
titleMicrosoft Office Spreadsheet ActiveX控件内存破坏漏洞