Lucene search

K
nessusThis script is Copyright (C) 2010-2023 and is owned by Tenable, Inc. or an Affiliate thereof.MACOSX_MS_OFFICE_OCT2010.NASL
HistoryOct 20, 2010 - 12:00 a.m.

MS10-079 / MS10-080 : Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (2293194 / 2293211) (Mac OS X)

2010-10-2000:00:00
This script is Copyright (C) 2010-2023 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
8

7.5 High

AI Score

Confidence

Low

The remote Mac OS X host is running a version of Microsoft Office that is affected by multiple remote code execution vulnerabilities.

If an attacker can trick a user on the affected host into opening a specially crafted Word, Excel, or Lotus 1-2-3 file, these issues could be leveraged to execute arbitrary code subject to the user’s privileges.

#TRUSTED 334738120d7e24869cf7b7f8c4d719845f8ff339b1e175ecf44f63843e9c1fdfe09df1bf4bf1045ec2da24a50d9c113256e3e39759b1e1408b4efe9de7fad7f663414b126990ee42eb41ed8600fd84b399c04697409c9d774ebef0cf6d26d32132cadf4584f5d30576b5eadf7fbf9dfea54be79f5bf438924b7afd065c13c9cb93b4f0b18a534f28a09e535436c855930763239eb661899108ee456fb0cab46c44e89e6539958789934b9a2c9deaed9daa5520859688a9eef5502e51065c7ba81f34bc2ffdba9e7b626b787573f689aa966ed66f682d3b02dbe15a9d6dfe38827a689be54a9171d103dae81eb6ba21fd38b22f9c8493bd54f7187ef80ff4cdb4e9e13e1325f5523944f7396852aa1716997814387bd0fa8e3b05da5ec1f3eef705276fed8330d1d0d19be7d3e3732e53f6040f416b4951d2f8cfb63085daf35c70b18245dcb0df8e9a8b297cea944f22480141764a3d4db06936d895a6b08e19253584ff41f218f2bb9bc0bcfffc452fcdb3ee8af97d2566b883b03867daf34b13751922aaa84fa7a9fb855cd4253ea29221e603817a803e8d66c6846ecd709d1f7cb88f87681703e0acd4247dd31fd92b77259eb4c1092c8528673147346ad2a1878e18c416dd39e2b59a81c412cf27531d7b97f249cbfa4ced6a70cf7222e889dc848df208e26661124d8de4cfb4c84271b5b39b4c2aefb19058e607096588
#TRUST-RSA-SHA256 4e17979ad292253d2026143f4a9777beec13145aa7d0cc5143ce4e3e084fc4e2aa38256885e2b123a87da12d2813d58a0adf612000e5cccf3693067420b9d8ada73682699c43fcf20867b64e7ef61892d7f6e5381043d138e41f51acc247eb03a74c1dfd21224b9068c931668b64bd0cbef6bc0cb0baeefb77a5de76107eaf9d0cff02364f9365d29f52953d16eda1951a9344064f7cd287174400add12c7bee81ae8435b866481406a39f7cd68bd57e4334e611f43cb91202849ab46cf886f8f2e2ca9f140c80bda945e7da95b44f1f513f7f328a4e91562104501a500c2c2cb5defde9d7e051226bdbd0e5fb37635ccb6866fd8f67695d63512c8967cbc3902f567dc6c48acde1ebc96cb9882ea0d678834a35d196ce5bf6587e10bfb222846b0cd9b7c3269a0e33b473dfad06cd090503a1d7725c072a2cc84be682e32cf131d57dae18d4172290dac9d700d0654bdb54e6c1e0d5f286443403a8bd61d40c0c7650bb7f9312ea4f2ff7487c3cf8916e8525fd8c3e9f4e13b87bf468dc8e5dc1563c8849a755eb6f629d8501e2315f2f704c47ed255e494aedfbd4feb6c237a4d6c31b4a51bacdc3ce4ce1dedc7891e2f6eb4b5b105a4df9377c92f6ae6621ce5e3d18287bd7b30b96340abcbc15e85f81825d562bc6e49977e23053ddb1b8ab07747aebb1a6d3caec5bc40671fa7ea1ae56f7432a88a8df95db860ed2c191
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(50068);
  script_version("1.23");
  script_set_attribute(attribute:"plugin_modification_date", value:"2023/11/27");

  script_cve_id(
    "CVE-2010-3214",
    "CVE-2010-3215",
    "CVE-2010-3216",
    "CVE-2010-3231",
    "CVE-2010-3232",
    "CVE-2010-3236",
    "CVE-2010-3237",
    "CVE-2010-3238",
    "CVE-2010-3241",
    "CVE-2010-3242"
  );
  script_bugtraq_id(
    43646,
    43647,
    43651,
    43652,
    43653,
    43656,
    43657,
    43769,
    43767,
    43760
  );
  script_xref(name:"MSFT", value:"MS10-079");
  script_xref(name:"IAVA", value:"2010-A-0145-S");
  script_xref(name:"MSFT", value:"MS10-080");
  script_xref(name:"MSKB", value:"2293194");
  script_xref(name:"MSKB", value:"2293211");
  script_xref(name:"MSKB", value:"2422343");
  script_xref(name:"MSKB", value:"2422352");
  script_xref(name:"MSKB", value:"2422398");

  script_name(english:"MS10-079 / MS10-080 : Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (2293194 / 2293211) (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
multiple remote code execution vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote Mac OS X host is running a version of Microsoft Office that
is affected by multiple remote code execution vulnerabilities.

If an attacker can trick a user on the affected host into opening a
specially crafted Word, Excel, or Lotus 1-2-3 file, these issues could
be leveraged 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/ms10-079");
  script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms10-080");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Office 2004 for Mac,
Office 2008 for Mac, and Open XML File Format Converter for Mac.");
  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:"cvss_score_source", value:"CVE-2010-3242");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/10/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/10/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/10/20");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"stig_severity", value:"II");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2004::mac");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2008::mac");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:open_xml_file_format_converter:::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) 2010-2023 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/MacOSX/packages", "Host/uname");

  exit(0);
}


include("misc_func.inc");
include("ssh_func.inc");
include("macosx_func.inc");



enable_ssh_wrappers();

function exec(cmd)
{
  local_var buf, ret;

  if (islocalhost())
    buf = pread_wrapper(cmd:"/bin/bash", argv:make_list("bash", "-c", cmd));
  else
  {
    ret = ssh_open_connection();
    if (!ret) exit(1, "ssh_open_connection() failed.");
    buf = ssh_cmd(cmd:cmd);
    ssh_close_connection();
  }
  return buf;
}


packages = get_kb_item("Host/MacOSX/packages");
if (!packages) exit(1, "The 'Host/MacOSX/packages' KB item is missing.");

uname = get_kb_item("Host/uname");
if (!uname) exit(1, "The 'Host/uname' KB item is missing.");
if (!egrep(pattern:"Darwin.*", string:uname)) exit(1, "The host does not appear to be using the Darwin sub-system.");


# Gather version info.
info = '';
installs = make_array();

prod = 'Office 2008 for Mac';
plist = "/Applications/Microsoft Office 2008/Office/MicrosoftComponentPlugin.framework/Versions/12/Resources/Info.plist";
cmd =  'cat \'' + plist + '\' | ' +
  'grep -A 1 CFBundleShortVersionString | ' +
  'tail -n 1 | ' +
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
version = exec(cmd:cmd);
if (version && version =~ "^[0-9]+\.")
{
  version = chomp(version);
  if (version !~ "^12\.") 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 = '12.2.7';
  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;
}

prod = 'Office 2004 for Mac';
cmd = GetCarbonVersionCmd(file:"Microsoft Component Plugin", path:"/Applications/Microsoft Office 2004/Office");
version = exec(cmd:cmd);
if (version && version =~ "^[0-9]+\.")
{
  version = chomp(version);
  if (version !~ "^11\.") 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 = '11.6.1';
  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;
}

prod = 'Open XML File Format Converter for Mac';
plist = "/Applications/Open XML Converter.app/Contents/Info.plist";
cmd =  'cat \'' + plist + '\' | ' +
  'grep -A 1 CFBundleShortVersionString | ' +
  'tail -n 1 | ' +
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
version = exec(cmd:cmd);
if (version && version =~ "^[0-9]+\.")
{
  version = chomp(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 = '1.1.7';
  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)
{
  gs_opt = get_kb_item("global_settings/report_verbosity");
  if (gs_opt && gs_opt != 'Quiet') security_hole(port:0, extra:info);
  else security_hole(0);

  exit(0);
}
else
{
  if (max_index(keys(installs)) == 0) exit(0, "Office for Mac / Open XML File Format Converter 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);
  }
}
VendorProductVersionCPE
microsoftoffice2004cpe:/a:microsoft:office:2004::mac
microsoftoffice2008cpe:/a:microsoft:office:2008::mac
microsoftopen_xml_file_format_convertercpe:/a:microsoft:open_xml_file_format_converter:::mac

7.5 High

AI Score

Confidence

Low