The remote Mac OS X host is running a version of Microsoft Office that is affected by several vulnerabilities.
If an attacker can trick a user on the affected host into opening a specially crafted Excel or Office file, these issues could be leveraged to execute arbitrary code subject to the user’s privileges.
#TRUSTED 9286744b6b92514a1e9db93f6fc478528718667d90c9d2786e6561d87206bb33563cf52ab6c22ab355ecc623d30c9d28fbe740c9ed72c59fbbbae4c757ee3fe2f0beafdf084b3a08399c23f52fe2c3af3f20e3d0e906db6d97cda8d05e38eda34b28f39fe0235fa2cf2d85a2e8d7abcec2d885512458deab06347ffde6c76201547889775883749f106c2f5660ea1356811e225c81f2be6ba4796cfd215ed9f19b3b7519f77078a7e4196716fe02f48d9032aa54e0d7a1123278dcc4315aee106b0f481907d6b0688bcde2da44f2ce46baf88e654a3dbc423cb2be38069bbda6d799abdb6516a8d3766943cf896ca6a86e73b4297083c834d721b16cdda803325718b50d0d68c18d2036cd018107597cf9fa712d96bd0fdad15b0d27c42c3da6c17322243a9c8305fc3b318b5b181528a072a3df3870dfb4c3ad8811a0b58571645f76e6c11a25ac454c949ce5e6472f50565780ce1cf42d993a5c8b734b85b6e87e0f6759ce6f70e205e364929be359f27baea5299a87c0a28cf2caddcd582df72dfbe85c708d9012428880200f24ba34fdab12536f89df8b25d45256f6e60e8c842150ac4d9d8521159fc7e72bae2275a86e720b688806f4d0a8c97c6b49a48c590b355e66e42aeb1b603b4932194d9a5da70b74ebcee1ce3782990cc43c565f6714285162091b1186dd6064c4a36348b969a2a1e0d39524fd25f888bcea72
#TRUST-RSA-SHA256 5c351dd1697649aed74ef19fd90832e74e97ed25247d4ba53c53a5e4c9c5bf7490a0059c1cea6ba3968c993ba9d04ba5baeeade1f410a5d44ccefd160135129766a12fe1c81bab3302545e4ca4ca2764fdb2292acfbd390c5d731add075d5ada8245b6a9eedbd56153b6386ad148c305c9a42a6895de3ddb188261b36c0ae64561bdf12b842e42448546784de20223417dd9f62536517d8b7a82b1782458397b89de662ea4b880311e20689bea195e6e728807f7e949c2e00357a56d1112e785104f38fc1612a7803c81267df76388fd5db5d6f96419cdbfd5d6281729d1b5e78835da1bab2e039c588bb61f14a161230ec11eb7407668f0ea422442638cf9da06bef993b25ca23925cb506b8b7604f88d040f8edd129f36c2d89b5d30057295664a9f47e5a7a440a08653cb2fa213bfa55af2c457fc4e46cc03f12265336300e4398df0a1f92039199244f61ca60856a489b3557052902f16d80bee6191f21099ac63e5d70ece0c34f490bc732d2b2817bb47cf98d0032bdcab1da1effac58699beea79509aa83bf27b6643d47d9c9375a6c9430c7601e5198007b498138a6da1193aad0322b88b6e582e97084e112f3c52f523814b0ce04076cba9c7608c9fc556598b4c84de584ca1e002c3da42562f6c6695d58179c00653268855fd8c32396ec3245cdcd8387e1990cd00b833770aeb4eaf872acbb41250e939bf88b910
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(50056);
script_version("1.25");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/11/27");
script_cve_id(
"CVE-2008-0081",
"CVE-2008-0111",
"CVE-2008-0112",
"CVE-2008-0114",
"CVE-2008-0115",
"CVE-2008-0116",
"CVE-2008-0117",
"CVE-2008-0118"
);
script_bugtraq_id(27305, 28094, 28095, 28146, 28166, 28167, 28168, 28170);
script_xref(name:"MSFT", value:"MS08-014");
script_xref(name:"MSFT", value:"MS08-016");
script_xref(name:"MSKB", value:"949029");
script_xref(name:"MSKB", value:"949030");
script_xref(name:"MSKB", value:"949357");
script_name(english:"MS08-014 / MS08-016: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (949029 / 949030) (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 several vulnerabilities.
If an attacker can trick a user on the affected host into opening a
specially crafted Excel or Office 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/ms08-014");
script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms08-016");
script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Office 2004 for Mac and
Office 2008 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-2008-0118");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploited_by_malware", value:"true");
script_set_attribute(attribute:"exploit_framework_core", value:"true");
script_cwe_id(94);
script_set_attribute(attribute:"vuln_publication_date", value:"2008/01/15");
script_set_attribute(attribute:"patch_publication_date", value:"2008/03/11");
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_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2008::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 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.0.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 = '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.4.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;
}
# 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 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);
}
}
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0081
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0111
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0112
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0114
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0115
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0116
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0117
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0118
technet.microsoft.com/en-us/security/bulletin/ms08-014
technet.microsoft.com/en-us/security/bulletin/ms08-016