Vulnerabilities > CVE-2013-3890 - Buffer Errors vulnerability in Microsoft Excel, Excel Viewer and Office Compatibility Pack

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-119
critical
nessus

Summary

Microsoft Excel 2007 SP3, Excel Viewer, and Office Compatibility Pack SP3 allow remote attackers to execute arbitrary code via a crafted Office document, aka "Microsoft Excel Memory Corruption Vulnerability."

Vulnerable Configurations

Part Description Count
Application
Microsoft
3

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.

Msbulletin

bulletin_idMS13-085
bulletin_url
date2013-10-08T00:00:00
impactRemote Code Execution
knowledgebase_id2885080
knowledgebase_url
severityImportant
titleVulnerabilities in Microsoft Excel Could Allow Remote Code Execution

Nessus

  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS13-085.NASL
    descriptionThe remote Windows host is running a version of Microsoft Office, Microsoft Excel, Office Compatibility Pack, or Microsoft Excel Viewer that is affected by remote code execution vulnerabilities in the way that Microsoft Excel parses file contents. (CVE-2013-3889, CVE-2013-3890). If an attacker can trick a user on the affected host into opening a specially crafted file, it may be possible to leverage these issues to read arbitrary files on the target system or execute arbitrary code, subject to the user
    last seen2020-06-01
    modified2020-06-02
    plugin id70337
    published2013-10-09
    reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/70337
    titleMS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(70337);
      script_version("1.14");
      script_cvs_date("Date: 2018/11/15 20:50:31");
    
      script_cve_id("CVE-2013-3889", "CVE-2013-3890");
      script_bugtraq_id(62824, 62829);
      script_xref(name:"MSFT", value:"MS13-085");
      script_xref(name:"MSKB", value:"2760585");
      script_xref(name:"MSKB", value:"2760591");
      script_xref(name:"MSKB", value:"2817623");
      script_xref(name:"MSKB", value:"2826023");
      script_xref(name:"MSKB", value:"2826033");
      script_xref(name:"MSKB", value:"2826035");
      script_xref(name:"MSKB", value:"2827238");
      script_xref(name:"MSKB", value:"2827324");
      script_xref(name:"MSKB", value:"2827326");
      script_xref(name:"MSKB", value:"2827328");
      script_xref(name:"MSKB", value:"2885080");
    
      script_name(english:"MS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080)");
      script_summary(english:"Checks file versions.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The Microsoft Office component installed on the remote host is
    affected by multiple remote code execution vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The remote Windows host is running a version of Microsoft Office,
    Microsoft Excel, Office Compatibility Pack, or Microsoft Excel Viewer
    that is affected by remote code execution vulnerabilities in the way
    that Microsoft Excel parses file contents. (CVE-2013-3889,
    CVE-2013-3890).
    
    If an attacker can trick a user on the affected host into opening a
    specially crafted file, it may be possible to leverage these issues to
    read arbitrary files on the target system or execute arbitrary code,
    subject to the user's privileges.");
      script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2013/ms13-085");
      script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Excel 2007, Excel 2010,
    Excel 2013, Office 2007, Office 2010, Office 2013, Excel Viewer, and
    Office Compatibility Pack.");
      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_set_attribute(attribute:"vuln_publication_date", value:"2013/10/08");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/10/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/09");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel_viewer");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office_compatibility_pack");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Windows : Microsoft Bulletins");
    
      script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.");
    
      script_dependencies("office_installed.nasl", "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("audit.inc");
    include("smb_func.inc");
    include("smb_hotfixes.inc");
    include("smb_hotfixes_fcheck.inc");
    include("smb_reg_query.inc");
    include("misc_func.inc");
    
    get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");
    
    bulletin = "MS13-085";
    kbs = make_list(
      2760585, 2760591, 2817623, 2826023, 2826033, 2826035, 2827238, 2827324, 2827326, 2827328, 2885080
    );
    
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    
    info = "";
    vuln = FALSE;
    
    ######################################################################
    # Office
    ######################################################################
    installs = get_kb_list("SMB/Office/Excel/*/ProductPath");
    if (!isnull(installs))
    {
      foreach install (keys(installs))
      {
        version = install - 'SMB/Office/Excel/' - '/ProductPath';
        ver = split(version, sep:'.', keep:FALSE);
        for (i=0; i < max_index(ver); i++)
          ver[i] = int(ver[i]);
        path = installs[install];
        path = path - '\\Excel.exe';
        info = '';
    
        # Office 2007 SP3
        if (ver[0] == 12)
        # Ensure share is accessible
        {
          office_sp = get_kb_item("SMB/Office/2007/SP");
          if (!isnull(office_sp) && office_sp == 3)
          {
            if (
              (ver[0] == 12 && ver[1] == 0 && ver[2] >= 6611) &&
              (
                (ver[0] == 12 && ver[1] == 0 && ver[2] < 6683) ||
                (ver[0] == 12 && ver[1] == 0 && ver[2] == 6683 && ver[3] < 5002)
              )
            )
            {
              vuln = TRUE;
              info =
                '\n  Product           : Excel 2007' +
                '\n  File              : ' + path +
                '\n  Installed version : ' + version +
                '\n  Fixed version     : 12.0.6683.5002' +
                '\n';
              hotfix_add_report(info, bulletin:bulletin, kb:"2827324");
            }
    
            share = hotfix_path2share(path:path);
            if (is_accessible_share(share:share))
            {
              check_file = "Oart.dll";
              old_report = hotfix_get_report();
              if (hotfix_check_fversion(path:path, file:check_file, version:"12.0.6683.5002", min_version:"12.0.0.0") == HCF_OLDER)
              {
                file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file);
                kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/"));
                fversion = get_kb_item(kb_name);
    
                info =
                  '\n  Product           : Microsoft Office 2007 SP3' +
                  '\n  File              : ' + path + '\\' + check_file +
                  '\n  Installed version : ' + fversion +
                  '\n  Fixed version     : 12.0.6683.5002' + '\n';
    
                hcf_report = '';
                hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2760585");
                vuln = TRUE;
              }
              NetUseDel(close:FALSE);
    
              check_file = "Oartconv.dll";
              old_report = hotfix_get_report();
              if (hotfix_check_fversion(path:path, file:check_file, version:"12.0.6683.5002", min_version:"12.0.0.0") == HCF_OLDER)
              {
                file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file);
                 kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/"));
                fversion = get_kb_item(kb_name);
    
                info =
                  '\n  Product           : Microsoft Office 2007 SP3' +
                  '\n  File              : ' + path + '\\' + check_file +
                  '\n  Installed version : ' + fversion +
                  '\n  Fixed version     : 12.0.6683.5002' + '\n';
    
                hcf_report = '';
                hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2760591");
                vuln = TRUE;
              }
              NetUseDel(close:FALSE);
            }
          }
        }
        else if (ver[0] == 14)
        {
          # Office 2010 SP1 or Sp2
          office_sp = get_kb_item("SMB/Office/2010/SP");
          if (!isnull(office_sp) && (office_sp == 1 || office_sp == 2))
          {
            if (
              (ver[0] == 14 && ver[1] == 0 && ver[2] < 7109) ||
              (ver[0] == 14 && ver[1] == 0 && ver[2] == 7109 && ver[3] < 5000)
            )
            {
              vuln = TRUE;
              info =
                '\n  Product           : Excel 2010' +
                '\n  File              : ' + path +
                '\n  Installed version : ' + version +
                '\n  Fixed version     : 14.0.7109.5000' +
                '\n';
              hotfix_add_report(info, bulletin:bulletin, kb:"2826033");
            }
            share = hotfix_path2share(path:path);
            if (is_accessible_share(share:share))
            {
              check_file = "Oart.dll";
              old_report = hotfix_get_report();
    
              if (hotfix_check_fversion(path:path, file:check_file, version:"14.0.7108.5000", min_version:"14.0.0.0") == HCF_OLDER)
              {
                file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file);
                kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/"));
                fversion = get_kb_item(kb_name);
    
                info =
                  '\n  Product           : Microsoft Office 2010' +
                  '\n  File              : ' + path + '\\' + check_file +
                  '\n  Installed version : ' + fversion +
                  '\n  Fixed version     : 14.0.7108.5000' + '\n';
    
                hcf_report = '';
                hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2826023");
                vuln = TRUE;
              }
              NetUseDel(close:FALSE);
    
              check_file = "Oartconv.dll";
              old_report = hotfix_get_report();
              if (hotfix_check_fversion(path:path, file:check_file, version:"14.0.7108.5000", min_version:"14.0.0.0") == HCF_OLDER)
              {
                file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file);
                kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/"));
                fversion = get_kb_item(kb_name);
    
                info =
                  '\n  Product           : Microsoft Office 2010' +
                  '\n  File              : ' + path + '\\' + check_file +
                  '\n  Installed version : ' + fversion +
                  '\n  Fixed version     : 14.0.7108.5000' + '\n';
    
                hcf_report = '';
                hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2826035");
                vuln = TRUE;
              }
              NetUseDel(close:FALSE);
            }
          }
        }
        else if (ver[0] == 15)
        {
          # Office 2013
          if (
            (ver[0] == 15 && ver[1] == 0 && ver[2] < 4535) ||
            (ver[0] == 15 && ver[1] == 0 && ver[2] == 4535 && ver[3] < 1507)
          )
          {
            vuln = TRUE;
            info =
              '\n  Product           : Excel 2013' +
              '\n  File              : ' + path +
              '\n  Installed version : ' + version +
              '\n  Fixed version     : 15.0.4535.1507' +
              '\n';
            hotfix_add_report(info, bulletin:bulletin, kb:"2827238");
          }
    
          share = hotfix_path2share(path:path);
          if (is_accessible_share(share:share))
          {
            check_file = "Oart.dll";
            old_report = hotfix_get_report();
            if (hotfix_check_fversion(path:path, file:check_file, version:"15.0.4535.1507", min_version:"15.0.0.0") == HCF_OLDER)
            {
              file = ereg_replace(pattern:"^[A-Za-z]:(.*)", string:path, replace:"\1\" + check_file);
              kb_name = "SMB/FileVersions/"+tolower(share-'$')+tolower(str_replace(string:file, find:"\", replace:"/"));
              fversion = get_kb_item(kb_name);
    
              info =
                '\n  Product           : Microsoft Office 2013' +
                '\n  File              : ' + path + '\\' + check_file +
                '\n  Installed version : ' + fversion +
                '\n  Fixed version     : 15.0.4535.1507' + '\n';
    
              hcf_report = '';
              hotfix_add_report(old_report + info, bulletin:bulletin, kb:"2817623");
              vuln = TRUE;
            }
            NetUseDel(close:FALSE);
          }
        }
      }
    }
    
    ######################################################################
    # Excel Viewer
    ######################################################################
    version = '';
    installs = get_kb_list("SMB/Office/ExcelViewer/*/ProductPath");
    if (!isnull(installs))
    {
      foreach install (keys(installs))
      {
        version = install - 'SMB/Office/ExcelViewer/' - '/ProductPath';
        path = installs[install];
        if (isnull(path)) path = "n/a";
    
        ver = split(version, sep:".", keep:FALSE);
        for (i = 0; i < max_index(ver); i++)
          ver[i] = int(ver[i]);
    
        # Excel Viewer 2007 SP3.
        if (
          (ver[0] == 12 && ver[1] == 0 && ver[2] >= 6611) &&
          (
            (ver[0] == 12 && ver[1] == 0 && ver[2] < 6683) ||
            (ver[0] == 12 && ver[1] == 0 && ver[2] == 6683 && ver[3] < 5005)
          )
        )
        {
          vuln = TRUE;
          info =
            '\n  Product           : Excel Viewer' +
            '\n  File              : ' + path +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : 12.0.6683.5005' +
            '\n';
          hotfix_add_report(info, bulletin:bulletin, kb:"2827328");
          break;
        }
      }
    }
    if (!version)
    {
      # Additional check if registry key is missing
      path = get_kb_item("SMB/Office/Excel/12.0/Path");
    
      kb = "2827328";
      if (
        hotfix_is_vulnerable(file:"Xlview.exe", version:"12.0.6683.5005", min_version:"12.0.0.0", path:path, bulletin:bulletin, kb:kb)
      ) vuln = TRUE;
    }
    
    ######################################################################
    # Microsoft Office Compatibility Pack
    ######################################################################
    version = '';
    installs = get_kb_list("SMB/Office/ExcelCnv/*/ProductPath");
    if (!isnull(installs))
    {
      foreach install (keys(installs))
      {
        version = install - 'SMB/Office/ExcelCnv/' - '/ProductPath';
        path = installs[install];
        if (isnull(path)) path = "n/a";
    
        ver = split(version, sep:".", keep:FALSE);
        for (i = 0; i < max_index(ver); i++)
          ver[i] = int(ver[i]);
    
        if (
          (ver[0] == 12 && ver[1] == 0 && ver[2] < 6683) ||
          (ver[0] == 12 && ver[1] == 0 && ver[2] == 6683 && ver[3] < 5002)
        )
        {
          info =
            '\n  Product           : 2007 Office system and the Office Compatibility Pack' +
            '\n  File              : '+ path +
            '\n  Installed version : '+ version +
            '\n  Fixed version     : 12.0.6683.5002' +
            '\n';
          hotfix_add_report(info, bulletin:bulletin, kb:"2827326");
        }
      }
    }
    if (!version)
    {
      # Additional check if registry key is missing
      path = get_kb_item("SMB/Office/Excel/12.0/Path");
    
      kb = "2827326";
      if (
        hotfix_is_vulnerable(file:"Excelcnv.exe", version:"12.0.6683.5002", min_version:"12.0.0.0", path:path, bulletin:bulletin, kb:kb)
      ) vuln = TRUE;
    }
    
    if (info || vuln)
    {
      set_kb_item(name:"SMB/Missing/" + bulletin, value:TRUE);
      hotfix_security_hole();
      hotfix_check_fversion_end();
      exit(0);
    }
    else
    {
      hotfix_check_fversion_end();
      audit(AUDIT_HOST_NOT, "affected");
    }
    
  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_MS13-085.NASL
    descriptionThe remote Mac OS X host is running a version of Microsoft Excel that is affected by two memory corruption vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel file, it may be possible to leverage these issues to execute arbitrary code, subject to the user
    last seen2019-10-28
    modified2013-10-09
    plugin id70340
    published2013-10-09
    reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/70340
    titleMS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080) (Mac OS X)
    code
    #TRUSTED 3e6f821c04e607566625fb9a12a3155e53c9953f578efb68b851026de3c2a53d82bdafdaa4e7805ec9f2577ea7f2da4da841366a374ccaadba5822e7339559374b0c28052f75912d3de9227e2c4438ba0b69e4c51eada617dfd75a64f240a855e7fff178ea0ef0ad5ccaa9aa20181738b9c1f97c63d0dd1d69586afe2086882cf666f7bbcc0625ed9d929d0f90407d396a47c8b1dd97d958bb22fe4f0af8ad05cb1a4db87b15e250061d40854e7f17bc5a6992b5a8dc2909ab2c877f2fb68b01a8f7018224faf5e493666a6febf49f782470d034465752e5dc0d33c6a24a19139ded7875dbc467640d6daaa9e7cb0ba7b941604859ca55efab9f0caa4b8629bac265a17eb93bcd368c6fcea1e15303b475c55a60d324e76c4b7e1df46037c77279359662aa6ed1b71797c61051a769daf5b231faf827c252ee1f09135cf49298d6d4fbbca5bb289f1a7a85c9eb57b9a886a7ce4e2b35346151c6c7b8e4145816264b2d107fa6d4df0bd5e5979a2173d8e0f362be9e29360a3157805881f8eea0b705a6cfe07e2173b588cc95c47e7b2960a37fcb74a1ad90caa2c57f6ed78f45196f145dad3ce33595d96ce0c804e972e6801cc55449f02e4fb6a141889ccb5a2dc37ffc71a1a73fa6ab0d3baf74b7159cd163bedfd21b799de16bcd2152df125d0bf52fd1417cb440e275bbde28316aa068d9c0ab81cdc90dad97a96f02f504
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(70340);
      script_version("1.10");
      script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14");
    
      script_cve_id("CVE-2013-3889", "CVE-2013-3890");
      script_bugtraq_id(62824, 62829);
      script_xref(name:"MSFT", value:"MS13-085");
      script_xref(name:"MSKB", value:"2889496");
    
      script_name(english:"MS13-085: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (2885080) (Mac OS X)");
      script_summary(english:"Check version of Microsoft Office");
    
      script_set_attribute(
        attribute:"synopsis",
        value:
    "An application installed on the remote Mac OS X host is affected by a
    remote code execution vulnerability."
      );
      script_set_attribute(
        attribute:"description",
        value:
    "The remote Mac OS X host is running a version of Microsoft Excel that
    is affected by two memory corruption vulnerabilities.
    
    If an attacker can trick a user on the affected host into opening a
    specially crafted Excel file, it may be possible to leverage these
    issues to execute arbitrary code, subject to the user's privileges."
      );
      script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms13-085");
      script_set_attribute(attribute:"solution", value:"Microsoft has released a patch for Office for Mac 2011.");
      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_set_attribute(attribute:"vuln_publication_date", value:"2013/10/08");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/10/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/09");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2011::mac");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"MacOS X Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("ssh_func.inc");
    include("macosx_func.inc");
    
    
    
    if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
      enable_ssh_wrappers();
    else disable_ssh_wrappers();
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    os = get_kb_item("Host/MacOSX/Version");
    if (!os) audit(AUDIT_OS_NOT, "Mac OS X");
    
    
    # Gather version info.
    info = '';
    installs = make_array();
    
    prod = 'Office for Mac 2011';
    plist = "/Applications/Microsoft Office 2011/Office/MicrosoftComponentPlugin.framework/Versions/14/Resources/Info.plist";
    cmd =  'cat \'' + plist + '\' | ' +
      'grep -A 1 CFBundleShortVersionString | ' +
      'tail -n 1 | ' +
      'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
    version = exec_cmd(cmd:cmd);
    if (version && version =~ "^[0-9]+\.")
    {
      version = chomp(version);
      if (version !~ "^14\.") exit(1, "Failed to get the version for "+prod+" - '"+version+"'.");
    
      installs[prod] = version;
    
      ver = split(version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(ver); i++)
        ver[i] = int(ver[i]);
    
      fixed_version = '14.3.8';
      fix = split(fixed_version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(fix); i++)
        fix[i] = int(fix[i]);
    
      for (i=0; i<max_index(fix); i++)
        if ((ver[i] < fix[i]))
        {
          info +=
            '\n  Product           : ' + prod +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : ' + fixed_version + '\n';
          break;
        }
        else if (ver[i] > fix[i])
          break;
    }
    
    
    # Report findings.
    if (info)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:info);
      else security_hole(0);
    
      exit(0);
    }
    else
    {
      if (max_index(keys(installs)) == 0) exit(0, "Office for Mac 2011 is not installed.");
      else
      {
        msg = 'The host has ';
        foreach prod (sort(keys(installs)))
          msg += prod + ' ' + installs[prod] + ' and ';
        msg = substr(msg, 0, strlen(msg)-1-strlen(' and '));
    
        msg += ' installed and thus is not affected.';
    
        exit(0, msg);
      }
    }
    

Oval

accepted2014-06-30T04:08:46.773-04:00
classvulnerability
contributors
  • nameSecPod Team
    organizationSecPod Technologies
  • nameMaria Mikhno
    organizationALTX-SOFT
definition_extensions
  • commentMicrosoft Excel 2007 SP3 is installed
    ovaloval:org.mitre.oval:def:15126
  • commentMicrosoft Excel Viewer 2007 SP3 is installed
    ovaloval:org.mitre.oval:def:18681
  • commentMicrosoft Office Compatibility Pack SP3 is installed
    ovaloval:org.mitre.oval:def:15035
descriptionMicrosoft Excel 2007 SP3, Excel Viewer, and Office Compatibility Pack SP3 allow remote attackers to execute arbitrary code via a crafted Office document, aka "Microsoft Excel Memory Corruption Vulnerability."
familywindows
idoval:org.mitre.oval:def:18926
statusaccepted
submitted2013-10-16T17:48:51
titleRemote code execution vulnerability in Microsoft Excel (CVE-2013-3890) - MS13-085
version23