Microsoft Cryptographic Cipher Suite Prioritization Advisory (3042058)

2015-10-15T00:00:00
ID OPENVAS:1361412562310806091
Type openvas
Reporter Copyright (C) 2015 Greenbone Networks GmbH
Modified 2017-05-30T00:00:00

Description

This host is missing an important security update according to Microsoft advisory (3042058).

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_microsoft_security_advisory_3042058.nasl 6243 2017-05-30 09:04:14Z teissa $
#
# Microsoft Cryptographic Cipher Suite Prioritization Advisory (3042058)
#
# Authors:
# Rinu Kuriakose <krinu@secpod.com>
#
# Copyright:
# Copyright (C) 2015 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_oid("1.3.6.1.4.1.25623.1.0.806091");
  script_version("$Revision: 6243 $");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"$Date: 2017-05-30 11:04:14 +0200 (Tue, 30 May 2017) $");
  script_tag(name:"creation_date", value:"2015-10-15 10:51:26 +0530 (Thu, 15 Oct 2015)");
  script_tag(name:"qod_type", value:"executable_version");
  script_name("Microsoft Cryptographic Cipher Suite Prioritization Advisory (3042058)");

  script_tag(name: "summary" , value:"This host is missing an important security
  update according to Microsoft advisory (3042058).");

  script_tag(name: "vuldetect" , value: "Get the vulnerable file version and
  check appropriate patch is applied or not.");

  script_tag(name: "insight" , value: "An update is available that improves
  effectiveness of encryption in Windows operating systems by adding cipher
  suites to the default list on affected systems and thus improving cipher suite
  priority ordering.");

  script_tag(name: "impact" , value: "Successful exploitation will allow
  attackers to break certain authentication scenarios.

  Impact Level: System");

  script_tag(name: "affected" , value:"
  Windows Server 2012 R2
  Microsoft Windows 8 x32/x64
  Microsoft Windows Server 2012
  Microsoft Windows 8.1 x32/x64
  Microsoft Windows 7 x32/x64 Edition Service Pack 1 and prior
  Microsoft Windows Server 2008 R2 x64 Edition Service Pack 1 and prior.");

  script_tag(name: "solution" , value: "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/library/security/3042058");

  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name : "URL" , value : "https://support.microsoft.com/en-us/kb/3042058");
  script_xref(name : "URL" , value : "https://technet.microsoft.com/library/security/3042058");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_family("Windows");
  script_dependencies("secpod_reg_enum.nasl");
  script_mandatory_keys("SMB/WindowsVersion");
  exit(0);
}


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

## Variables Initialization
sysPath = "";
dllVer = "";

## Check for OS and Service Pack
if(hotfix_check_sp(win7:2, win7x64:2, win2008r2:2, win8:1, win2012R2:1,
                   win8x64:1, win2012:1, win8_1:1, win8_1x64:1) <= 0){
  exit(0);
}

## Get System Path
sysPath = smb_get_systemroot();
if(!sysPath){
  exit(0);
}

## Get Version from 'Schannel.dll' file
dllVer = fetch_file_version(sysPath, file_name:"system32\schannel.dll");
if(!dllVer){
  exit(0);
}

## Windows 7 and Windows 2008 R2
if(hotfix_check_sp(win7:2, win7x64:2, win2008r2:2) > 0)
{
  ## Check for Schannel.dll version
  if(version_is_less(version:dllVer, test_version:"6.1.7601.18812"))
  {
    Vulnerable_range = "Version Less than - 6.1.7601.18812";
    VULN = TRUE ;
  }

 else if(version_in_range(version:dllVer, test_version:"6.1.7601.23000", test_version2:"6.1.7601.23016"))
  {
    Vulnerable_range = "6.1.7601.23000 - 6.1.7601.23016";
    VULN = TRUE ;
  }
}

## Win 8 and 2012
if(hotfix_check_sp(win8:1, win8x64:1, win2012:1) > 0)
{
  ## Check for Schannel.dll version
  if(version_is_less(version:dllVer, test_version:"6.2.9200.17293"))
  {
    Vulnerable_range = "Version Less than - 6.2.9200.17293";
    VULN = TRUE ;
  }

 else if(version_in_range(version:dllVer, test_version:"6.2.9200.21000", test_version2:"6.2.9200.21409"))
  {
    Vulnerable_range = "6.2.9200.21000 - 6.2.9200.21409";
    VULN = TRUE ;
  }
}

## Win 8.1 and 2012R2
if(hotfix_check_sp(win8_1:1, win8_1x64:1, win2012R2:1) > 0)
{
  ## Check for Schannel.dll version
  if(version_is_less(version:dllVer, test_version:"6.3.9600.17728"))
  {
    Vulnerable_range = "Version Less than - 6.3.9600.17728";
    VULN = TRUE ;
  }
}

if(VULN)
{
  report = 'File checked:     ' + sysPath + "\system32\schannel.dll" + "\n" +
           'File version:     ' + dllVer  + '\n' +
           'Vulnerable range: ' + Vulnerable_range + '\n' ;
  security_message(data:report);
  exit(0);
}