The remote Mac OS X host is running a version of Microsoft Office 2004 for Mac that is affected by multiple vulnerabilities.
If an attacker can trick a user on the affected host into opening a specially crafted Office file or viewing a specially crafted web page, these issues could be leverage to execute arbitrary code subject to the user’s privileges.
#TRUSTED b002a8461c6c3b5f593423e0b9795a1f8c7db22a459dba1b4d9ac066584517347c03c2fd75a7449ef5bf17a025e8cc58af76779c1a80094c0a35d032e77468954856d36b1173b2e2e3a7b8428cadf1768f1fde3da2510fb30e202cc2999b7153d9e5e1445b7706478d62b1f1b27378a9540d22335b8d1da310fc42f3bbe1b29fe5bd0381f48650d4baa53ceab4ab8789ff3220375a71d08af663b531c10f3ada90e7f229b622e967054e5adbcd7669228af747aeffc9ffbed6d29afa69a25a2896684b7a4f6b41fd38f6a4eb1511061eb1c4ace62d43b74cfa97dc65d938b5b13d5f623b0e724c213df36c401ae743c4fc8307b10c5e605d4c01f790861e7b3167d84ca7a22981546a34b5eb6dd86768ae01eababbc770bf90341eaa9a6173069d34b1651a1cd4c17acd40afd73e6205e9988434b09588344ede145857e32089f708badea907abcc7c044ab5d7be9609d473dceb4ea02283e39aa16633db38d6823785dc469206900a539023abe56cd1f9b406c46e509b2957432070186abaaac2c1803757458f5f98e9d97495b270cdcbbe5f374c9fd21c18cd1231d374e4d446d20bf36f96162015a22e162099bbb4624f991803b68680c317ea90819b37c1439f0b158fea87c4c59f1471ae0346babe99e0ff60c3a82586358fc40d6971a450839393eb6a6db96c32ccd7a116f695d7a348a07fd4030632bcdeef4219a510
#TRUST-RSA-SHA256 2c6a8df313078aeb236e2d2aec46d4379e6177891cfd181bc6aaf62112014e1ba57ba7448120950f7ef80a2ee7d5d87a817a3f85c831520b57c87416f20e34f4fb8df9df48b0a20be2b75cd20fbb8ea7165212b034288ae9df04dda8af617ab56f1f4bf545fbb4f52d5e62478aae098ce21a78afe0780fc7b7c56c759da80c2eddf4430de55afd55b912604dd3749a846f32c47923b33feea1235324db6c4e3043c64ef67e704c40c8c8f4536d7a7739b3be418ef93ddf2b57ca8a884df098e5386466ae285d4ee175bc87abafd80ad174925b72f74894117084adc6544147d0b3bea862ff960599d28c9a77e9677d34b24beb0588a4bcaef06f0b3adaac60292991e40750851b28d453a4261a4326aa0c42ffbc744877ccc31d381815a5c0285cf3e14cb90e58eae80d636cdfa27b8bc3d208061de4f0367766e4ec0fd0ba9b5ea832636a7d5b76930ecdb11190b8c980d7b21ddb95fe476835ba4b3a6d414c2b1841b2eae98c77c9d7d1753f85611029a5d6bd6b1fe68b8956181325bff023112997055f338e37fac42f939fc69183854ed8ab205912906cef8fbf52c2f6991ddba3bbbe8a368a316aa43592e7aadc0ed86e227d40719f22f7ad77e4c650a18e8eb945b6544564a5d16d71c6ca182e92891202b0935ccf579c9bfedd426745127e982a609d45db7509c7d0ef94cdf552ec256d6c1007c753a5e4055926f475
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(50055);
script_version("1.24");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/11/27");
script_cve_id("CVE-2007-0065", "CVE-2008-0103");
script_bugtraq_id(27661, 27738);
script_xref(name:"MSFT", value:"MS08-008");
script_xref(name:"IAVA", value:"2008-A-0006-S");
script_xref(name:"MSFT", value:"MS08-013");
script_xref(name:"MSKB", value:"947108");
script_xref(name:"MSKB", value:"947890");
script_xref(name:"MSKB", value:"948056");
script_name(english:"MS08-008 / MS08-013: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (947890 / 947108) (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 2004
for Mac that is affected by multiple vulnerabilities.
If an attacker can trick a user on the affected host into opening a
specially crafted Office file or viewing a specially crafted web page,
these issues could be leverage 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-008");
script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms08-013");
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-0065");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_cwe_id(399);
script_set_attribute(attribute:"vuln_publication_date", value:"2008/02/12");
script_set_attribute(attribute:"patch_publication_date", value:"2008/02/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_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");
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.4.0';
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);
}
}