Lucene search

K
openvasCopyright (C) 2014 Greenbone Networks GmbHOPENVAS:804425
HistoryApr 09, 2014 - 12:00 a.m.

Microsoft Office Compatibility Pack Remote Code Execution Vulnerabilities (2949660)

2014-04-0900:00:00
Copyright (C) 2014 Greenbone Networks GmbH
plugins.openvas.org
15

0.74 High

EPSS

Percentile

97.8%

This host is missing a critical security update according to
Microsoft Bulletin MS14-017.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ms_compat_pack_ms14-017.nasl 6735 2017-07-17 09:56:49Z teissa $
#
# Microsoft Office Compatibility Pack Remote Code Execution Vulnerabilities (2949660)
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (C) 2014 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

if(description)
{
  script_id(804425);
  script_version("$Revision: 6735 $");
  script_cve_id("CVE-2014-1757", "CVE-2014-1758", "CVE-2014-1761");
  script_bugtraq_id(66385, 66614, 66629);
  script_tag(name:"cvss_base", value:"9.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_tag(name:"last_modification", value:"$Date: 2017-07-17 11:56:49 +0200 (Mon, 17 Jul 2017) $");
  script_tag(name:"creation_date", value:"2014-04-09 09:37:29 +0530 (Wed, 09 Apr 2014)");
  script_name("Microsoft Office Compatibility Pack Remote Code Execution Vulnerabilities (2949660)");

  tag_summary =
"This host is missing a critical security update according to
Microsoft Bulletin MS14-017.";

  tag_vuldetect =
"Get the vulnerable file version and check appropriate patch is applied
or not.";

  tag_insight =
"Multiple flaws are due to an error within,
 - Microsoft Word when handling certain RTF-formatted data can be exploited to
   corrupt memory.
 - Microsoft Office File Format Converter when handling certain files can be
   exploited to corrupt memory.
 - Microsoft Word when handling certain files can be exploited to cause a
   stack-based buffer overflow.";

  tag_impact =
"Successful exploitation will allow remote attackers to execute the arbitrary
code, cause memory corruption and compromise the system.

Impact Level: System/Application ";

  tag_affected =
"Microsoft Office Compatibility Pack Service Pack 3 and prior";

  tag_solution =
"Run Windows Update and update the listed hotfixes or download and update
mentioned hotfixes in the advisory from the below link,
https://technet.microsoft.com/en-us/security/bulletin/ms14-017";


  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "vuldetect" , value : tag_vuldetect);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name:"qod_type", value:"registry");
  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name : "URL" , value : "https://support.microsoft.com/kb/2878236");
  script_xref(name : "URL" , value : "http://technet.microsoft.com/en-us/security/bulletin/ms14-017");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2014 Greenbone Networks GmbH");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("secpod_office_products_version_900032.nasl");
  script_mandatory_keys("SMB/Office/WordCnv/Version");
  exit(0);
}


include("smb_nt.inc");
include("secpod_reg.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

## Variable Initialization
wordcnvVer = "";
path = "";
sysVer = "";

# Check for Office Word Version 2007 with compatibility pack
wordcnvVer = get_kb_item("SMB/Office/WordCnv/Version");
if(wordcnvVer && wordcnvVer =~ "^12.*")
{
  # Office Word Converter
  path = registry_get_sz(key:"SOFTWARE\Microsoft\Windows\CurrentVersion",
                              item:"ProgramFilesDir");
  if(path)
  {
    sysVer = fetch_file_version(sysPath:path + "\Microsoft Office\Office12", file_name:"Wordcnv.dll");

    if(sysVer)
    {
      # Check for Word Converter 2007 version 12.0 < 12.0.6695.5000
      if(version_in_range(version:sysVer, test_version:"12.0", test_version2:"12.0.6695.4999"))
      {
        security_message(0);
        exit(0);
      }
    }
  }
}