Lucene search

K
openvasCopyright (C) 2011 SecPodOPENVAS:900299
HistoryAug 11, 2011 - 12:00 a.m.

Microsoft Report Viewer Information Disclosure Vulnerability (2578230)

2011-08-1100:00:00
Copyright (C) 2011 SecPod
plugins.openvas.org
21

0.96 High

EPSS

Percentile

99.3%

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

###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_ms11-067.nasl 6532 2017-07-05 07:42:05Z cfischer $
#
# Microsoft Report Viewer Information Disclosure Vulnerability (2578230)
#
# Authors:
# Veerendra GG <[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 will let the attacker execute arbitrary HTML and
  script code in a user's browser session in context of an affected site.
  Impact Level: Application";
tag_affected = "Microsoft Visual Studio 2005 Service Pack 1
  Microsoft Report Viewer 2005 Service Pack 1 Re-distributable Package";
tag_insight = "A flaw is due to an unspecified input passed to the Microsoft Report
  Viewer Control is not properly sanitised before being returned to the user.";
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-067.mspx";
tag_summary = "This host is missing an important security update according to
  Microsoft Bulletin MS11-067.";

if(description)
{
  script_id(900299);
  script_version("$Revision: 6532 $");
  script_tag(name:"last_modification", value:"$Date: 2017-07-05 09:42:05 +0200 (Wed, 05 Jul 2017) $");
  script_tag(name:"creation_date", value:"2011-08-11 06:41:03 +0200 (Thu, 11 Aug 2011)");
  script_bugtraq_id(49033);
  script_cve_id("CVE-2011-1976");
  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_name("Microsoft Report Viewer Information Disclosure Vulnerability (2578230)");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/45514");
  script_xref(name : "URL" , value : "http://support.microsoft.com/kb/2548826");
  script_xref(name : "URL" , value : "http://support.microsoft.com/kb/2579115");
  script_xref(name : "URL" , value : "http://www.microsoft.com/technet/security/bulletin/ms11-067.mspx");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 SecPod");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("secpod_ms_visual_prdts_detect.nasl");
  script_mandatory_keys("Microsoft/VisualStudio/Ver");
  script_require_ports(139, 445);

  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("secpod_reg.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

## Check for Visual Studio 2005 SP1
if(egrep(pattern:"^8\..*", string:get_kb_item("Microsoft/VisualStudio/Ver")))
{
  ## MS11-067 Hotfix check
  if((hotfix_missing(name:"2548826") == 1))
  {
    ## Get Visual Studio 2005 Path
    studioPath = registry_get_sz(key:"SOFTWARE\Microsoft\VisualStudio\8.0",
                                 item:"InstallDir");
    if(studioPath){
      ## Construct complete path and get version
      reportViewPath = studioPath - "\Common7\IDE\" + "\ReportViewer";
      sysVer = fetch_file_version(sysPath:reportViewPath,
               file_name:"Microsoft.ReportViewer.WebForms.dll");

      if(sysVer)
      {
        ## Check version range from 8.0 <= 8.0.50727.5677
        if(version_in_range(version:sysVer, test_version:"8.0", test_version2:"8.0.50727.5676")){
          security_message(0);
        }
      }
    }
  }
}

## Check Microsoft Report Viewer 2005 Service Pack 1 Re-distributable Package
## Check Microsoft Report Viewer Installed or not
key = "SOFTWARE\Microsoft\ReportViewer";
if(!registry_key_exists(key:key)){
  exit(0);
}

## MS11-067 Hotfix check
if((hotfix_missing(name:"2579115") == 0)){
  exit(0);
}

## Get the path for Microsoft Report Viewer 2005
key = "SOFTWARE\Microsoft\ASP.NET\";
if(!registry_key_exists(key:key)){
  exit(0);
}

## Get Microsoft Report Viewer Installed Path
foreach item (registry_enum_keys(key:key))
{
  path = registry_get_sz(key:key + item, item:"Path");
  if("\Microsoft.NET\Framework" >< path)
  {
    ## Construct complete path and get version
    reportViewPath =  path + "\Microsoft Report Viewer Redistributable 2005";
    sysVer = fetch_file_version(sysPath:reportViewPath,
             file_name:"Install.res.1025.dll");

    if(sysVer)
    {
      ## Check version range from 8.0 <= 8.0.50727.5677
      if(version_in_range(version:sysVer, test_version:"8.0.50727", test_version2:"8.0.50727.5676"))
      {
        security_message(0);
        exit(0);
      }
    }
  }
}