Lucene search
+L

Microsoft Office Unsupported Version Detection (Mac OS X)

🗓️ 27 Jun 2016 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 34 Views

Microsoft Office Unsupported Version Detection for Mac OS

Refs
Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(91857);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/08/15");

  script_xref(name:"IAVA", value:"0001-A-0503");
  
  script_name(english:"Microsoft Office Unsupported Version Detection (Mac OS X)");
  script_summary(english:"Checks the Microsoft Office version.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host contains an unsupported version of Microsoft Office.");
  script_set_attribute(attribute:"description", value:
"According to its version, the installation of Microsoft Office on the
remote Mac OS X host is no longer supported.

Lack of support implies that no new security patches for the product
will be released by the vendor. As a result, it is likely to contain
security vulnerabilities.");
  # https://learn.microsoft.com/en-us/microsoft-365-apps/end-of-support/resources
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?fecfa06c");
  script_set_attribute(attribute:"see_also", value:"https://support.microsoft.com/en-us/lifecycle");
  # https://web.archive.org/web/20161014203556/https://support.microsoft.com/en-us/gp/lifeoffice
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?36e9cb48");
  script_set_attribute(attribute:"see_also", value:"https://support.microsoft.com/en-us/lifecycle/selectindex");
  # https://support.office.com/en-us/article/Support-is-ending-for-Office-for-Mac-2011-559b72b1-e045-4c73-bad3-d7f1841b9e8c
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?81130d1f");
  script_set_attribute(attribute:"solution", value:
"Upgrade to a version of Microsoft Office that is currently supported.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_attribute(attribute:"cvss_score_source", value:"manual");
  script_set_attribute(attribute:"cvss_score_rationale", value:"Tenable score for unsupported software.");

  script_set_attribute(attribute:"plugin_publication_date", value:"2016/06/27");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:x:mac");
  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:office:2011:mac");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2016:mac");
  script_set_attribute(attribute:"unsupported_by_vendor", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X Local Security Checks");

  script_copyright(english:"This script is Copyright (C) 2016-2025 Tenable Network Security, Inc.");

  script_dependencies("macosx_office_installed.nbin");
  script_require_keys("Host/MacOSX/Version");
  script_require_ports(
    "installed_sw/Office for Mac 2011",
    "installed_sw/Office 2008 for Mac",
    "installed_sw/Microsoft Outlook",
    "installed_sw/Microsoft Excel",
    "installed_sw/Microsoft Word",
    "installed_sw/Microsoft PowerPoint",
    "installed_sw/Microsoft OneNote"
  );
  exit(0);
}

include("install_func.inc");

var os = get_kb_item("Host/MacOSX/Version");
if (!os) audit(AUDIT_OS_NOT, "Mac OS X");

var now = get_kb_item("Flatline/nowtime");
if (empty_or_null(now))
  now = gettimeofday();

# macosx_office_installed.nasl doesn't support versions before Office 2008
#   since 2008 was the first Universal binary version but we might
#   find the application installs (Word, Excel, etc) so we'll include those.
var eos_dates = make_array(
  "10", "January 9, 2007",
  "11", "January 10, 2012",
  "12", "April 9, 2014",
  "14", "October 10, 2017",
  "2016", "October 13, 2020",
  "2019", "October 10, 2023",
  "2021", "October 13, 2026"
);

var apps = make_list(
  "Office 2008 for Mac",
  "Office for Mac 2011",
  "Microsoft Outlook",
  "Microsoft Excel",
  "Microsoft Word",
  "Microsoft PowerPoint",
  "Microsoft OneNote"
);

var product_found = 0;
var report = "";
var app, install;
var version, path;
var app_label, eos_date;

foreach app (apps)
{
  var installs = get_installs(app_name:app);
  if (installs[0] != IF_OK || isnull(installs[1])) continue;
  foreach install (installs[1])
  {
    product_found = 1;
    version = install["version"];
    path    = install["path"];
    app_label = app;
    if (version =~ "^10\.")
    {
      if (app !~ "Office") app_label += " v. X";
      eos_date = eos_dates['10'];
    }
    else if (version =~ "^11\.")
    {
      if (app !~ "Office") app_label += " 2004 for Mac";
      eos_date = eos_dates['11'];
    }
    else if (version =~ "^12\.")
    {
      if (app !~ "Office") app_label += " 2008 for Mac";
      eos_date = eos_dates['12'];
    }
    else if (version =~ "^14\.")
    {
      if (app !~ "Office") app_label += " for Mac 2011";
      eos_date = eos_dates['14'];
    }
    # Office 2016 versions 15.0 thru 16.16.99
    else if (version =~ "^(?:15\.(?:\d{1,2})|16\.(?:1[0-6]\.\d+|1[0-6])$)")
    {
      if (app !~ "Office") app_label += " for Mac 2016";
      eos_date = eos_dates['2016'];
    }
    # Office 2019 versions 16.17 thru 16.52
    else if (version =~ "^16\.(?:1[7-9]|[2-4][0-9]|5[0-2])")
    {
      if (app !~ "Office") app_label += " for Mac 2019";
      eos_date = eos_dates['2019'];
    }
    # Office 2021 versions 16.53 thru 16.88
    else if (now > 1791849600 && version =~ "^16\.(?:5[3-9]|6[0-9]|7[0-9]|8[0-8])")
    {
      if (app !~ "Office") app_label += " for Mac 2021";
      eos_date = eos_dates['2021'];
    }
    else continue;

    register_unsupported_product(product_name:app_label, cpe_base:"microsoft:office", version:version);

    report +=
      '\n  Product             : ' + app_label +
      '\n  Installed version   : ' + version +
      '\n  Path                : ' + path +
      '\n  End of support date : ' + eos_date +
      '\n';
  }
}

if (report)
{
  report = "The following unsupported products were identified:" + report;
  security_report_v4(port:0, severity:SECURITY_HOLE, extra:report);
}
else if (product_found)
{
  audit(AUDIT_INST_VER_NOT_VULN, "Microsoft Office");
}
else
{
  audit(AUDIT_NOT_INST, "Microsoft Office 2011 / 2008 / 2004 / etc.");
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 Aug 2025 00:00Current
5.5Medium risk
Vulners AI Score5.5
34