[Openvas-commits] r2788 - trunk/openvas-plugins/scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Mar 15 21:56:48 CET 2009


Author: edjenguele
Date: 2009-03-15 21:56:45 +0100 (Sun, 15 Mar 2009)
New Revision: 2788

Added:
   trunk/openvas-plugins/scripts/remote-MS06-033.nasl
Log:
Added NVT:  Microsoft Security Bulletin MS06-033
Vulnerability in ASP.NET Could Allow Information Disclosure 


Added: trunk/openvas-plugins/scripts/remote-MS06-033.nasl
===================================================================
--- trunk/openvas-plugins/scripts/remote-MS06-033.nasl	2009-03-15 20:44:50 UTC (rev 2787)
+++ trunk/openvas-plugins/scripts/remote-MS06-033.nasl	2009-03-15 20:56:45 UTC (rev 2788)
@@ -0,0 +1,138 @@
+# OpenVAS Vulnerability Test
+# $Id$
+# Description: 
+# Microsoft Security Bulletin MS06-033
+# Vulnerability in ASP.NET Could Allow Information Disclosure 
+#
+# Affected Software: 
+#
+# .NET Framework 2.0 for the following operating system versions: 
+# Microsoft Windows 2000 Service Pack 4
+# Microsoft Windows XP Service Pack 1 or Windows XP Service Pack 2
+# Microsoft Windows XP Professional x64 Edition
+# Microsoft Windows XP Tablet PC Edition
+# Microsoft Windows XP Media Center Edition
+# Microsoft Windows Server 2003 or Windows Server 2003 Service Pack 1
+# Microsoft Windows Server 2003 for Itanium-based systems and Microsoft Windows Server with SP1 for Itanium-based Systems
+# Microsoft Windows Server 2003 x64 Edition
+# 
+# Non-Affected Software:
+#
+# Microsoft .NET Framework 1.0
+# Microsoft .NET Framework 1.1
+# Microsoft Windows 98, Microsoft Windows 98 Second Edition (SE), and Microsoft Windows Millennium Edition (Me)
+# 
+# Tested Microsoft Windows Components:
+#
+# Affected Components:
+#
+# ASP.NET
+# 
+#
+# remote-MS06-033.nasl
+#
+# Author:
+# Christian Eric Edjenguele <christian.edjenguele at owasp.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 and later,
+# 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(101009);
+script_bugtraq_id(18920);
+script_cve_id("CVE-2006-1300");
+name["english"] = "Microsoft Security Bulletin MS06-033";
+script_name(english:name["english"]);
+ 
+desc["english"] = "
+This Information Disclosure vulnerability could allow an attacker to bypass ASP.Net security 
+and gain unauthorized access to objects in the Application folders explicitly by name.
+this could be used to produce useful information that could be used to try to further compromise the affected system.
+
+
+
+
+
+Solution :
+Microsoft has released a patch to correct this issue,
+you can download it from the following web site:
+http://www.microsoft.com/technet/security/bulletin/ms06-033.mspx
+ 
+
+
+
+Risk factor : High";
+
+script_description(english:desc["english"]); 
+
+summary["english"] = "Vulnerability in ASP.NET Could Allow Information Disclosure";
+
+script_summary(english:summary["english"]);
+
+script_category(ACT_ATTACK);
+
+script_copyright(english:"This script is Written by Christian Eric Edjenguele <christian.edjenguele at owasp.org> and released under GPL v2 or later");
+family["english"] = "Windows : Microsoft Bulletins";
+script_family(english:family["english"]);
+script_dependencies("find_service.nes", "remote-detect-MSdotNET-version.nasl");
+script_require_ports("Services/www");
+script_require_keys("dotNET/version", "dotNet/port");
+
+
+
+exit(0);
+
+}
+
+
+#
+# The script code starts here
+#
+
+dotnet = get_kb_item("dotNET/version"); 
+port = get_kb_item("dotNet/port");
+
+if(!dotnet)
+	exit(0);
+
+else
+{
+	dotnetlist = split(dotnet, sep:'.');
+
+	# check if this return the list length	
+	l = max_index(dotnetlist) - 1;
+
+	# creates a hash to save
+	dotnetversion = make_array('None', FALSE);
+
+	# Microsoft .NET Framework version 2.0
+    	dotnetversion['2.0.one']  = ( dotnetlist[0] == '2' && dotnetlist[1] == '0' && int(dotnetlist[2]) < 50727 );
+	dotnetversion['2.0.two']  = ( l > 3 && dotnetlist[0] == '2' && dotnetlist[1] == '0' && int(dotnetlist[2]) == 50727 && int(dotnetlist[3]) < 101);
+    	
+
+
+	foreach version (dotnetversion)
+	{
+
+	    	if (version == TRUE)
+			# Report 'Microsoft ASP.NET Application Folder Information Disclosure Vulnerability (MS06-033)'
+		    	report = 'Detected Microsoft .Net Framework version: ' + dotnet;
+			security_hole(port:port, data:report);
+	}
+}
+
+



More information about the Openvas-commits mailing list