Microsoft Media Decompression Remote Code Execution Vulnerability (2447961)

2010-12-15T00:00:00
ID OPENVAS:900267
Type openvas
Reporter Copyright (C) 2010 SecPod
Modified 2017-04-11T00:00:00

Description

This host is missing a critical security update according to Microsoft Bulletin MS10-094.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ms10-094.nasl 5934 2017-04-11 12:28:28Z antu123 $
#
# Microsoft Media Decompression Remote Code Execution Vulnerability (2447961)
#
# Authors:
# Veerendra GG <veerendragg@secpod.com>
#
# Copyright (c) 2010 SecPod, http://www.secpod.com
#
# 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(900267);
  script_version("$Revision: 5934 $");
  script_tag(name:"last_modification", value:"$Date: 2017-04-11 14:28:28 +0200 (Tue, 11 Apr 2017) $");
  script_tag(name:"creation_date", value:"2010-12-15 14:53:45 +0100 (Wed, 15 Dec 2010)");
  script_bugtraq_id(42855);
  script_cve_id("CVE-2010-3965");
  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_name("Microsoft Media Decompression Remote Code Execution Vulnerability (2447961)");
  script_xref(name : "URL" , value : "http://support.microsoft.com/kb/2447961");
  script_xref(name : "URL" , value : "http://www.microsoft.com/technet/security/bulletin/MS10-094.mspx");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 SecPod");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("secpod_reg_enum.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("SMB/WindowsVersion");

  script_tag(name : "impact" , value : "Successful exploitation will allow remote attackers to load crafted DLL
  file and execute any code it contained.
  Impact Level: System");
  script_tag(name : "affected" , value : "Windows Media Encoder 9 with
  Microsoft Windows XP Service Pack 3 and prior.
  Microsoft Windows 2003 Service Pack 2 and prior.
  Microsoft Windows Vista Service Pack 1/2 and prior.
  Microsoft Windows Server 2008 Service Pack 1/2 and prior.");
  script_tag(name : "insight" , value : "The flaw is present when the Windows Media Encoder incorrectly restricts
  the path used for loading external libraries. An attacker could convince
  a user to open a legitimate '.prx' file that is located in the same network
  directory as a specially crafted dynamic link library (DLL) file.");
  script_tag(name : "summary" , value : "This host is missing a critical security update according to
  Microsoft Bulletin MS10-094.");
  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,
  http://www.microsoft.com/technet/security/bulletin/MS10-094.mspx");
  script_tag(name:"qod_type", value:"registry");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


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


## OS with Hotfix Check
if(hotfix_check_sp(xp:4, win2003:3, winVista:3, win2008:3) <= 0){
  exit(0);
}

## MS10-094 Hotfix check
if(hotfix_missing(name:"2447961") == 0){
  exit(0);
}

## Windows Media Encoder 9 vulnerability
wme9Installed = registry_key_exists(key:"SOFTWARE\Microsoft\Windows" +
                 "\CurrentVersion\Uninstall\Windows Media Encoder 9");
if(wme9Installed)
{
  wmekey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wmenc.exe";
  wmeitem = "Path";
  wmePath = registry_get_sz(key:wmekey, item:wmeitem);

  dllVer = fetch_file_version(sysPath:wmePath, file_name:"wmenc.exe");

  if(dllVer)
  {
    ## Check wmenc.exe version < 9.0.0.3374
    if(version_in_range(version:dllVer, test_version:"9.0",
                                        test_version2:"9.0.0.3373")){
      security_message(0);
      exit(0);
    }
  }
}