Microsoft Lync Buffer Overflow Vulnerability (3089656)

2015-09-09T00:00:00
ID OPENVAS:1361412562310806117
Type openvas
Reporter Copyright (C) 2015 Greenbone Networks GmbH
Modified 2018-09-18T00:00:00

Description

This host is missing a critical security update according to Microsoft Bulletin MS15-097.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_lync_ms15-097.nasl 11452 2018-09-18 11:24:16Z mmartin $
#
# Microsoft Lync Buffer Overflow Vulnerability (3089656)
#
# Authors:
# Antu Sanadi <santu@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.806117");
  script_version("$Revision: 11452 $");
  script_cve_id("CVE-2015-2510");
  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: 2018-09-18 13:24:16 +0200 (Tue, 18 Sep 2018) $");
  script_tag(name:"creation_date", value:"2015-09-09 14:26:26 +0530 (Wed, 09 Sep 2015)");
  script_name("Microsoft Lync Buffer Overflow Vulnerability (3089656)");

  script_tag(name:"summary", value:"This host is missing a critical security
  update according to Microsoft Bulletin MS15-097.");

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

  script_tag(name:"insight", value:"The flaws exist due to improper handling of
  TrueType fonts.");

  script_tag(name:"impact", value:"Successful exploitation will allow a
  remote attacker to execute arbitrary code on the affected system.");

  script_tag(name:"affected", value:"Microsoft Lync 2010
  Microsoft Lync 2013");

  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/MS15-097");

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

  script_tag(name:"qod_type", value:"executable_version");

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

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("smb_reg_service_pack.nasl", "secpod_ms_lync_detect_win.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("MS/Lync/Installed");

  exit(0);
}


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

if(get_kb_item("MS/Lync/Ver"))
{
  path = get_kb_item("MS/Lync/path");

  ## For MS Lync Basic
  if(!path){
    path = get_kb_item("MS/Lync/Basic/path");
  }

  if(path)
  {
    foreach ver (make_list("", "OFFICE14", "OFFICE15"))
    {
      commVer = fetch_file_version(sysPath:path + ver, file_name:"Rtmpltfm.dll");
      if(commVer)
      {
        if(commVer =~ "^4"){
           Vulnerable_range  =  "4..0 - 4.0.7577.4477";
        }
        else if(commVer =~ "^5"){
          Vulnerable_range  =  "5 - 5.0.8687.138";
        }

        if(version_in_range(version:commVer, test_version:"5.0", test_version2:"5.0.8687.138") ||
           version_in_range(version:commVer, test_version:"4.0", test_version2:"4.0.7577.4477"))
        {
          report = 'File checked:     ' + path + ver + "\Rtmpltfm.dll" + '\n' +
                   'File version:     ' + commVer  + '\n' +
                   'Vulnerable range: ' + Vulnerable_range + '\n' ;
          security_message(data:report);
          exit(0);
        }
      }
    }
  }
}