Lucene search

K
openvasCopyright (C) 2011 SecPodOPENVAS:902445
HistoryJun 21, 2011 - 12:00 a.m.

Microsoft XML Editor Information Disclosure Vulnerability (2543893)

2011-06-2100:00:00
Copyright (C) 2011 SecPod
plugins.openvas.org
108

0.009 Low

EPSS

Percentile

82.7%

This host is missing an important security update according to
Microsoft Bulletin MS11-049.

##############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ms11-049.nasl 5362 2017-02-20 12:46:39Z cfi $
#
# Microsoft XML Editor Information Disclosure Vulnerability (2543893)
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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.
###############################################################################

tag_impact = "Successful exploitation could allow attackers to gain access to sensitive
  information that may aid in further attacks.
  Impact Level: Application";
tag_affected = "Microsoft SQL Server 2005/2008
  Microsoft Visual Studio 2005/2008/2010
  Microsoft SQL Server 2005 Management Studio Express";
tag_insight = "The flaw is due to an error when resolving XML external entities in
  a Web Service Discovery file ('.disco') and can be exploited to disclose the
  contents of arbitrary files.";
tag_solution = "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/ms11-049.mspx";
tag_summary = "This host is missing an important security update according to
  Microsoft Bulletin MS11-049.";

if(description)
{
  script_id(902445);
  script_version("$Revision: 5362 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-20 13:46:39 +0100 (Mon, 20 Feb 2017) $");
  script_tag(name:"creation_date", value:"2011-06-21 13:52:36 +0200 (Tue, 21 Jun 2011)");
  script_cve_id("CVE-2011-1280");
  script_bugtraq_id(48196);
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_name("Microsoft XML Editor Information Disclosure Vulnerability (2543893)");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/44912/");
  script_xref(name : "URL" , value : "http://www.microsoft.com/technet/security/Bulletin/MS11-049.mspx");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 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 : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name:"qod_type", value:"registry");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


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


## Microsoft SQL Server
## Check the server installation
key = "SOFTWARE\Microsoft\Microsoft SQL Server\";
if(registry_key_exists(key:key))
{
  foreach item (registry_enum_keys(key:key))
  {
    ## Get the exe file path from registry
    sysPath = registry_get_sz(key:key + item + "\Setup", item:"SQLBinRoot");
    if("Microsoft SQL Server" >< sysPath)
    {
      ## Get the version from registry
      sysVer = fetch_file_version(sysPath, file_name:"sqlservr.exe");
      if(sysVer)
      {
        ## SQL Server 2005 Service Pack 3 GDR/QFE, SQL Server 2005 Service Pack 4 GDR/QFE
        ## SQL Server 2008 Service Pack 1 GDR/QFE,  SQL Server 2008 Service Pack 2 GDR/QFE
        ##  SQL Server 2008 R2 QFE/GDR
        if(version_in_range(version:sysVer, test_version:"2005.90.4000", test_version2:"2005.90.4059.0")||
           version_in_range(version:sysVer, test_version:"2005.90.4300", test_version2:"2005.90.4339.0")||
           version_in_range(version:sysVer, test_version:"2005.90.5000", test_version2:"2005.90.5056.0")||
           version_in_range(version:sysVer, test_version:"2005.90.5200", test_version2:"2005.90.5291.0")||
           version_in_range(version:sysVer, test_version:"2007.100.2500", test_version2:"2007.100.2572.0")||
           version_in_range(version:sysVer, test_version:"2007.100.2800", test_version2:"2007.100.2840.0")||
           version_in_range(version:sysVer, test_version:"2007.100.4000", test_version2:"2007.100.4063.0")||
           version_in_range(version:sysVer, test_version:"2007.100.4300", test_version2:"2007.100.4310.0")||
           version_in_range(version:sysVer, test_version:"2009.100.1600", test_version2:"2009.100.1616.0")||
           version_in_range(version:sysVer, test_version:"2009.100.1700", test_version2:"2009.100.1789.0"))
        {
          security_message(0);
          exit(0);
        }
      }
    }
  }
}

## SQL Server 2005 Management Studio Express
if(registry_key_exists(key:key))
{
  foreach item (registry_enum_keys(key:key))
  {
    ## Get the exe path from registry
    sysPath = registry_get_sz(key:key + item + "\Tools\ShellSEM", item:"InstallDir");
    if("Microsoft SQL Server" >< sysPath)
    {
      ## Get the file version
      sysVer = fetch_file_version(sysPath, file_name:"\xml\microsoft.xmleditor.dll");
      if(sysVer)
      {
        if(version_is_less(version:sysVer, test_version:"2.0.50727.5065"))
        {
          security_message(0);
          exit(0);
        }
      }
    }
  }
}


## Visual Studio
key = "SOFTWARE\Microsoft\VisualStudio\";
if(registry_key_exists(key:key))
{
  foreach item (registry_enum_keys(key:key))
  {
    sysPath = registry_get_sz(key:key + item, item:"InstallDir");
    if("Microsoft Visual Studio" >< sysPath)
    {
      sysVer = fetch_file_version(sysPath, file_name:"xml\microsoft.xmleditor.dll");
      if(sysVer)
      {
        ## Visual Studio 2010
        ## Visual Studio 2005 SP1
        ## Visual Studio 2008 SP1
        if(version_in_range(version:sysVer, test_version:"2.0", test_version2:"2.0.50727.5064")||
           version_in_range(version:sysVer, test_version:"3.5", test_version2:"3.5.30729.5664")||
           version_in_range(version:sysVer, test_version:"10.0", test_version2:"10.0.30319.461"))
        {
          security_message(0);
          exit(0);
        }
      }
    }
  }
}