Microsoft Internet Explorer Multiple Vulnerabilities (982381)

2010-06-09T00:00:00
ID OPENVAS:1361412562310902191
Type openvas
Reporter Copyright (C) 2010 SecPod
Modified 2018-11-19T00:00:00

Description

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

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ms10-035.nasl 12404 2018-11-19 08:40:38Z cfischer $
#
# Microsoft Internet Explorer Multiple Vulnerabilities (982381)
#
# Authors:
# Antu Sanadi <santu@secpod.com>
#
# Updated By: Madhuri D <dmadhuri@secpod.com> on 2010-11-15
#    - To detect required file version on vista, win 2008 and win 7 os
#
# Copyright:
# 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_oid("1.3.6.1.4.1.25623.1.0.902191");
  script_version("$Revision: 12404 $");
  script_tag(name:"last_modification", value:"$Date: 2018-11-19 09:40:38 +0100 (Mon, 19 Nov 2018) $");
  script_tag(name:"creation_date", value:"2010-06-09 17:19:57 +0200 (Wed, 09 Jun 2010)");
  script_cve_id("CVE-2010-0255", "CVE-2010-1257", "CVE-2010-1259", "CVE-2010-1260",
                "CVE-2010-1261", "CVE-2010-1262");
  script_bugtraq_id(38056, 38547, 40410, 40414, 40416, 40417);
  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 Internet Explorer Multiple Vulnerabilities (982381)");
  script_xref(name:"URL", value:"http://support.microsoft.com/kb/982381");
  script_xref(name:"URL", value:"http://www.vupen.com/english/advisories/2010/1392");
  script_xref(name:"URL", value:"http://www.microsoft.com/technet/security/Bulletin/MS10-035.mspx");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 SecPod");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("gb_ms_ie_detect.nasl");
  script_mandatory_keys("MS/IE/Version");
  script_require_ports(139, 445);

  script_tag(name:"impact", value:"Successful exploitation will let remote attackers to bypass security
  restrictions, gain knowledge of sensitive information or compromise a
  vulnerable system.");
  script_tag(name:"affected", value:"Microsoft Internet Explorer version 5.x/6.x/7.x/8.x");
  script_tag(name:"insight", value:"Multiple flaws are due to:

  - An error in the way the browser handles content using specific strings when
    sanitizing HTML via the 'toStaticHTML' API.

  - An uninitialized memory error when processing certain HTML data, which could
    be exploited by attackers to execute arbitrary code via a malicious web page.

  - Caching data and incorrectly allowing the cached content to be rendered as
    HTML, which could allow attackers to bypass domain restrictions.");
  script_tag(name:"solution", value:"Run Windows Update and update the listed hotfixes or download and
  update mentioned hotfixes in the advisory");
  script_tag(name:"summary", value:"This host is missing a critical security update according to
  Microsoft Bulletin MS10-035.");
  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");

if(hotfix_check_sp(xp:4, win2k:5, win2003:3, winVista:3, win7:1, win2008:3) <= 0){
  exit(0);
}

ieVer = get_kb_item("MS/IE/Version");
if(!ieVer){
  exit(0);
}



## MS10-035 Hotfix (982381)
if(hotfix_missing(name:"982381") == 0){
  exit(0);
}

sysPath = smb_get_system32root();
if(sysPath)
{
  dllVer = fetch_file_version(sysPath:sysPath, file_name:"Iepeers.dll");
  if(dllVer)
  {
    if(hotfix_check_sp(win2k:5) > 0)
    {
      if(version_in_range(version: dllVer, test_version:"5.0.0000.0000", test_version2:"5.0.3888.1399")||
         version_in_range(version: dllVer, test_version:"6.0.0000.0000", test_version2:"6.0.2800.1648")){
         security_message( port: 0, data: "The target host was found to be vulnerable" );
      }
      exit(0);
    }

    else if(hotfix_check_sp(xp:4) > 0)
    {
      SP = get_kb_item("SMB/WinXP/ServicePack");
      if("Service Pack 2" >< SP)
      {
        if(version_in_range(version: dllVer, test_version:"6.0.0000.0000", test_version2:"6.0.2900.3697")||
           version_in_range(version: dllVer, test_version:"7.0.0000.00000", test_version2:"7.0.6000.17054")||
           version_in_range(version: dllVer, test_version:"7.0.6000.21000", test_version2:"7.0.6000.21255")||
           version_in_range(version: dllVer, test_version:"8.0.6001.18000", test_version2:"8.0.6001.18922")||
           version_in_range(version: dllVer, test_version:"8.0.6001.23000", test_version2:"8.0.6001.23013")){
           security_message( port: 0, data: "The target host was found to be vulnerable" );
        }
        exit(0);
      }
      else if("Service Pack 3" >< SP)
      {
        ## 8.0 < 8.0.6001.18923
        if(version_in_range(version: dllVer, test_version:"6.0.0000.0000", test_version2:"6.0.2900.5968")||
           version_in_range(version: dllVer, test_version:"7.0.0000.00000", test_version2:"7.0.6000.17054")||
           version_in_range(version: dllVer, test_version:"7.0.6000.21000", test_version2:"7.0.6000.21255")||
           version_in_range(version: dllVer, test_version:"8.0.6001.18000", test_version2:"8.0.6001.18922")||
           version_in_range(version: dllVer, test_version:"8.0.6001.23000", test_version2:"8.0.6001.23013")){
           security_message( port: 0, data: "The target host was found to be vulnerable" );
        }
        exit(0);
      }
      security_message( port: 0, data: "The target host was found to be vulnerable" );
    }

    else if(hotfix_check_sp(win2003:3) > 0)
    {
      SP = get_kb_item("SMB/Win2003/ServicePack");
      if("Service Pack 2" >< SP)
      {
        ## 8.0 < 8.0.6001.18923
        if(version_in_range(version: dllVer, test_version:"6.0.0000.0000", test_version2:"6.0.3790.4695") ||
           version_in_range(version: dllVer, test_version:"7.0.0000.00000", test_version2:"7.0.6000.17054")||
           version_in_range(version: dllVer, test_version:"7.0.6000.21000", test_version2:"7.0.6000.21255")||
           version_in_range(version: dllVer, test_version:"8.0.6001.18000", test_version2:"8.0.6001.18922")||
           version_in_range(version: dllVer, test_version:"8.0.6001.23000", test_version2:"8.0.6001.23013")){
           security_message( port: 0, data: "The target host was found to be vulnerable" );
        }
        exit(0);
      }
      security_message( port: 0, data: "The target host was found to be vulnerable" );
    }
  }
}

sysPath = smb_get_system32root();
if(sysPath)
{
  dllVer = fetch_file_version(sysPath:sysPath, file_name:"Ieframe.dll");
  if(!dllVer){
    exit(0);
  }
}

if(hotfix_check_sp(win7:1) > 0)
{
  if(version_in_range(version:dllVer, test_version:"8.0.7600.16000", test_version2:"8.0.7600.16587")||
     version_in_range(version:dllVer, test_version:"8.0.7600.20000", test_version2:"8.0.7600.20707")){
     security_message( port: 0, data: "The target host was found to be vulnerable" );
  }
}