Lucene search
K

Mini-Redirector Heap Overflow Vulnerability

🗓️ 17 Jun 2008 00:00:00Reported by Copyright (C) 2008 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 15 Views

Mini-Redirector Heap Overflow Vulnerability description about a boundary error in the WebDAV Mini-Redirector when handling long pathnames in WebDAV responses

Related
Refs
Code
# OpenVAS Vulnerability Test
# $Id: win_CVE-2008-0080.nasl 5661 2017-03-21 11:39:13Z cfi $
# Description: Mini-Redirector Heap Overflow Vulnerability
#
# Authors:
# Carsten Koch-Mauthe <c.koch-mauthe at dn-systems.de>
# Modified to Implement 'smb_nt.inc'
#  - By Nikita MR <[email protected]> On 2009-09-18
# Updated By: Madhuri D <[email protected]> on 2011-01-05
#     - To get the required file version on windows vista
#
# Copyright:
# Copyright (C) 2008 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# 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 allow attackers to execute arbitrary code and
  completely compromise the affected computer.


  Workarounds:
  Disable the WebClient Service.";

tag_insight = "A boundary error occurs in the WebDAV Mini-Redirector when handling long
  pathnames in WebDAV responses.";
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/ms08-007.mspx";
tag_summary = "This host is missing a critical security update according to
  Microsoft Bulletin MS008-007";

# $Revision: 5661 $

if(description)
{
  script_id(90015);
  script_version("$Revision: 5661 $");
  script_tag(name:"last_modification", value:"$Date: 2017-03-21 12:39:13 +0100 (Tue, 21 Mar 2017) $");
  script_tag(name:"creation_date", value:"2008-06-17 20:22:38 +0200 (Tue, 17 Jun 2008)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2008-0080");
  script_bugtraq_id(27670);
  script_name("Mini-Redirector Heap Overflow Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/28894");
  script_xref(name : "URL" , value : "http://www.microsoft.com/technet/security/bulletin/ms08-007.mspx");

  script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"executable_version");
  script_copyright("Copyright (C) 2008 Greenbone Networks GmbH");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("secpod_reg_enum.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("SMB/WindowsVersion");

  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "impact" , value : tag_impact);
  exit(0);
}


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

if(hotfix_check_sp(xp:3, win2003:3, winVista:3) <= 0)
{
  exit(0);
}

# MS08-007 Hotfix check
if(hotfix_missing(name:"946026") == 0)
{
  exit(0);
}

sysPath = registry_get_sz(item:"Install Path",
                          key:"SOFTWARE\Microsoft\COM3\Setup");
if(!sysPath)
{
  exit(0);
}

share = ereg_replace(pattern:"([A-Z]):.*", replace:"\1$", string:sysPath);
file = ereg_replace(pattern:"[A-Z]:(.*)", replace:"\1",
                    string:sysPath + "\drivers\mrxdav.sys");
sysVer = GetVer(file:file, share:share);
if(!sysVer)
{
  exit(0);
}

# Windows XP
if(hotfix_check_sp(xp:3) > 0)
{
  SP = get_kb_item("SMB/WinXP/ServicePack");
  if("Service Pack 2" >< SP)
  {
    # Grep for mrxdav.sys version < 5.1.2600.3276
    if(version_in_range(version:sysVer, test_version:"5.1",
                                       test_version2:"5.1.2600.3275")){
      security_message(0);
    }
  }
  else
    security_message(0);
}

# Windows 2003
else if(hotfix_check_sp(win2003:3) > 0)
{
  SP = get_kb_item("SMB/Win2003/ServicePack");
  if("Service Pack 2" >< SP)
  {
    # Grep for mrxdav.sys version < 5.2.3790.4206
    if(version_in_range(version:sysVer, test_version:"5.2",
                                       test_version2:"5.2.3790.4205")){
      security_message(0);
    }
  }
  else if("Service Pack 1" >< SP)
  {
    # Grep for mrxdav.sys version < 5.2.3790.3060
    if(version_in_range(version:sysVer, test_version:"5.2",
                                       test_version2:"5.2.3790.3059")){
      security_message(0);
    }
  }
  else
    security_message(0);
}

sysPath = registry_get_sz(item:"PathName",
                          key:"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
if(!sysPath){
  exit(0);
}

share = ereg_replace(pattern:"([A-Z]):.*", replace:"\1$", string:sysPath);
file = ereg_replace(pattern:"[A-Z]:(.*)", replace:"\1",
                    string:sysPath + "\System32\drivers\mrxdav.sys");
sysVer = GetVer(file:file, share:share);
if(!sysVer)
{
  exit(0);
}

# Windows Vista
if(hotfix_check_sp(winVista:2) > 0)
{
  # Grep for mrxdav.sys version < 6.0.6000.16626
  if(version_is_less(version:sysVer, test_version:"6.0.6000.16626")){
       security_message(0);
  }
     exit(0);
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

21 Mar 2017 00:00Current
0.2Low risk
Vulners AI Score0.2
EPSS0.40569
15