Microsoft Office ActiveX Controls Enabled Without Restrictions Or Prompting

2019-03-28T00:00:00
ID SMB_NT_OFFICE_ACTIVEX_CHECK.NASL
Type nessus
Reporter This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
Modified 2020-07-02T00:00:00

Description

A Microsoft Office application installed on the remote host has ActiveX controls enabled without restrictions and without prompting.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from the Microsoft Security Updates API. The text
# itself is copyright (C) Microsoft Corporation.
#

include("compat.inc");

if (description)
{
  script_id(123458);
  script_version("1.1");
  script_cvs_date("Date: 2019/03/28 10:20:38");

  script_name(english:"Microsoft Office ActiveX Controls Enabled Without Restrictions Or Prompting");
  script_summary(english:"Checks the trust center settings of Microsoft Office.");

  script_set_attribute(attribute:"synopsis", value:
"A Microsoft Office application installed on the remote host has ActiveX
controls enabled without restrictions and without prompting.");
  script_set_attribute(attribute:"description", value:
"A Microsoft Office application installed on the remote host has ActiveX
controls enabled without restrictions and without prompting.");

  script_set_attribute(attribute:"solution", value:
"Disable ActiveX controls or enable them with prompt and with additional restrictions.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:R/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 research analyzed the issue and assigned a score for it.");

  script_set_attribute(attribute:"plugin_publication_date", value:"2019/03/28");

  script_set_attribute(attribute:"plugin_type",value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");

  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("office_installed.nasl","smb_hotfixes.nasl","ms_bulletin_checks_possible.nasl");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445, "Host/patch_management_checks");

  exit(0);
}
include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_reg_query.inc");
include("misc_func.inc");
include("install_func.inc");

registry_init();

hkcu = registry_hive_connect(hive:HKEY_CURRENT_USER, exit_on_fail:TRUE);

report = '';

value = get_registry_value(handle:hkcu,
  item:'Software\\Microsoft\\Office\\Common\\Security\\DisableAllActiveX');

if (value != 1)
{
    value = get_registry_value(handle:hkcu,
      item:'Software\\Microsoft\\Office\\Common\\Security\\UFIControls');
    
    if (value == 1)
      report += 'The Microsoft Office installed on this machine has ActiveX Controls' +
        ' enabled without restrictions and without prompting.\n';
}
RegCloseKey(handle:hkcu);
close_registry();

if (empty(report))
  audit(AUDIT_HOST_NOT, 'affected');

security_report_v4(severity:SECURITY_WARNING, port:0, extra:report);