Lucene search

K
nessusThis script is Copyright (C) 2010-2023 Tenable Network Security, Inc.MACOSX_MS07-036.NASL
HistoryOct 20, 2010 - 12:00 a.m.

MS07-036: Vulnerability in Microsoft Excel Could Allow Remote Code Execution (936542) (Mac OS X)

2010-10-2000:00:00
This script is Copyright (C) 2010-2023 Tenable Network Security, Inc.
www.tenable.com
11

7.5 High

AI Score

Confidence

Low

The remote Mac OS X host is running a version of Microsoft Office 2004 for Mac that is affected by a memory corruption vulnerability.

If an attacker can trick a user on the affected host into opening a specially crafted Excel file, these issues could be leveraged to execute arbitrary code subject to the userโ€™s privileges.

#TRUSTED 46e570bd7992798fc9f5fb747489d8ec3fc4dc416bbd7b32b3848504b85607c41192b7b5a380f5246197bc50c233f47dd04d6ae3d5f55d02dab42b03549e6be7ea466d841aa60ad21e168d185ed5a809b695116fc8fcd719fd5df959e600f9da271bf1ed3bcfefc98d78c680e85dd33503f0d31d4e8d10ac0cc6afd6af8bd10f99aaae1cff8be79220eed24ddfad4a9fb4218e8e9a5e420620576e7fd920be17a7bd081a27290e232d433dc0e5ddf5397059064e91f327ca230ce59985e2b2f6a79557465c52e179f49bdee3cd3a2adeae5e57612b3f4d3efe2bf340ace4a8a7967fb398de196b8263fe1a149154f395c5e0548595e8969301bf1c702535c221cf8a9ec6aad9a9d0664bdca1697f029c39491ccfdb6986f6585fb3fc6c0ed2eb0a204fc210907b003e23d17e048de27ac1337d3a0f73c257f7bd58146480bf9fc16f09e7ef70f92aedc35df74f625ffd1ee51786797202cccac06b2fba0a99cb70f51e076f8abc6743c2416a0e75e7fedef730416b1b5dcb0b4ad72301eaf2f46cf3a97f39c359c9f1661dac3b084bfcbc1e7c4b4d4c4173e02261055264aa480dac86482dc3b246f98bbad7b6997ab80281e8c9e515cc58ec4a01034d2ca3f0a1ba7eb4fd138d3827853d87c3f2d989ff0dd090ab562dd4c0e68d8825a23799da1dee3654e932bf37024147eaab9e91ec8dbe0c647f5a9d2890237e7e46ce65
#TRUST-RSA-SHA256 8c8ccb78e4e9cc19a26b514dba06635374943cd93833dd66240454d7e8f1da5f5cd1ddf3c64f213c6def84dfdfc3eb66ff3248321b30c1deb78aa2e3b02cf11a63747a0f24c576bf7c26c097a3e09c1ad4b0d138a15c82402568250e9465319c8431ec40759cefaed1fe0af3edc3e12c7033452ea625942ac9bdaadf7c2b654fffa4cde0fa2c7e22f838c21b365dcf2103b487879cf65765650bc2bd5e152cc72ae336ef5fa092f95ad942f57a7c07daaef3acc89f0a18c8b089a87fff3655eebd071acea9852af9b383621067572d89d1138b82fe46a21014775ac3d3c9c67bf820f089c0817ba377921e5126e62b2188f59665a71619c748c26d01e3fe3514779fb1d0fe500b86c5fecc56daba1f3ca9317fbeea66f8ebe2cefdbe569e98bf2014e3ddcb0cccaf2614b7d971e356c1eb2b338b5c7a3e4a19a2f5b5e6e24c675ad2a2ea5c3afa8048dafc2bc252f85ef184fa058b9a365d0d754f9bf64dce58be228a5e8a0370132543b96859d356aa43d75a206539df686582ee3026bd2e260c038863532d4544f45de3b59fc7bee9eb2b8cd3c5e895bc801bd595ae92e3b901a39c7f6ebfd2367b9f5591c51c895fdff53d526ccae5c1c3ebad0a41e15c7e0f0661417f11eca6005da1b2342a4136551d07378aed7b896cd5714a53b9d299dfc59d4fd97ae7e3cfda2186671536445963caed100fb388b809ca8dc0aa9cf1
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


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

  script_cve_id("CVE-2007-3030");
  script_bugtraq_id(24803);
  script_xref(name:"MSFT", value:"MS07-036");
  script_xref(name:"MSKB", value:"936542");

  script_name(english:"MS07-036: Vulnerability in Microsoft Excel Could Allow Remote Code Execution (936542) (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 Office 2004
for Mac that is affected by a memory corruption vulnerability.

If an attacker can trick a user on the affected host into opening a
specially crafted Excel 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/ms07-036");
  script_set_attribute(attribute:"solution", value:"Microsoft has released a patch for Office 2004 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:U/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2007-3030");
  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:"2007/07/10");
  script_set_attribute(attribute:"patch_publication_date", value:"2007/07/10");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/10/20");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2004::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 Tenable Network Security, Inc.");

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

  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(0, "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 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.3.6';
  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 2004 for Mac 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

7.5 High

AI Score

Confidence

Low