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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Dec 9 13:16:54 CET 2009


Author: mime
Date: 2009-12-09 13:16:50 +0100 (Wed, 09 Dec 2009)
New Revision: 6116

Added:
   trunk/openvas-plugins/scripts/rt_37162.nasl
   trunk/openvas-plugins/scripts/rt_detect.nasl
Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/cve_current.txt
Log:
Added new plugins

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2009-12-09 12:01:52 UTC (rev 6115)
+++ trunk/openvas-plugins/ChangeLog	2009-12-09 12:16:50 UTC (rev 6116)
@@ -1,3 +1,9 @@
+009-12-09 Michael Meyer <michael.meyer at intevation.de>
+
+	* scripts/rt_37162.nasl,
+	scripts/rt_detect.nasl:
+	Added new plugins.
+
 2009-12-09 Michael Meyer <michael.meyer at intevation.de>
 
 	* scripts/moodle_37244.nasl:

Modified: trunk/openvas-plugins/cve_current.txt
===================================================================
--- trunk/openvas-plugins/cve_current.txt	2009-12-09 12:01:52 UTC (rev 6115)
+++ trunk/openvas-plugins/cve_current.txt	2009-12-09 12:16:50 UTC (rev 6116)
@@ -361,4 +361,5 @@
 CVE-2009-4204			SecPod		svn		R
 CVE-2009-4205			SecPod		svn		R
 37244				Greenbone	svn		R
+CVE-2009-3585			Greenbone	svn		R
 

Added: trunk/openvas-plugins/scripts/rt_37162.nasl
===================================================================
--- trunk/openvas-plugins/scripts/rt_37162.nasl	2009-12-09 12:01:52 UTC (rev 6115)
+++ trunk/openvas-plugins/scripts/rt_37162.nasl	2009-12-09 12:16:50 UTC (rev 6116)
@@ -0,0 +1,87 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# RT Session Fixation Vulnerability
+#
+# Authors:
+# Michael Meyer
+#
+# Copyright:
+# Copyright (c) 2009 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(100386);
+ script_bugtraq_id(37162);
+ script_cve_id("CVE-2009-3585");
+ script_version ("1.0-$Revision$");
+
+ script_name("RT Session Fixation Vulnerability");
+
+desc = "Overview:
+RT is prone to a session-fixation vulnerability.
+
+Attackers can exploit this issue to hijack a user's session and gain
+unauthorized access to the affected application.
+
+The issue affects RT 3.0.0 through 3.8.5.
+
+Solution:
+Updates are available. Please see the references for more information.
+
+References:
+http://www.securityfocus.com/bid/37162
+http://lists.bestpractical.com/pipermail/rt-announce/2009-November/000177.html
+http://lists.bestpractical.com/pipermail/rt-announce/2009-November/000176.html
+http://www.bestpractical.com/rt/
+
+Risk factor : Low";
+
+ script_description(desc);
+ script_summary("Determine if RT is prone to a session-fixation	vulnerability.");
+ script_category(ACT_GATHER_INFO);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2009 Greenbone Networks GmbH");
+ script_dependencies("rt_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(!version = get_kb_item(string("www/", port, "/rt_tracker")))exit(0);
+if(!matches = eregmatch(string:version, pattern:"^(.+) under (/.*)$"))exit(0);
+
+vers = matches[1];
+
+if(!isnull(vers) && vers >!< "unknown") {
+
+  if(version_in_range(version: vers, test_version: "3", test_version2: "3.8.5")) {
+      security_warning(port:port);
+      exit(0);
+  }
+
+}
+
+exit(0);


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

Added: trunk/openvas-plugins/scripts/rt_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/rt_detect.nasl	2009-12-09 12:01:52 UTC (rev 6115)
+++ trunk/openvas-plugins/scripts/rt_detect.nasl	2009-12-09 12:16:50 UTC (rev 6116)
@@ -0,0 +1,108 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# RT: Request Tracker Detection
+#
+# Authors:
+# Michael Meyer
+#
+# Copyright:
+# Copyright (c) 2009 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 RT: Request Tracker, an open-source
+issue-tracking system.
+
+See also:
+http://www.bestpractical.com/
+
+Risk factor : None";
+
+if (description)
+{
+ script_id(100385);
+ script_version ("1.0-$Revision$");
+
+ script_name("RT: Request Tracker Detection");
+ script_description(desc);
+ script_summary("Checks for the presence of RT: Request Tracker");
+ script_category(ACT_GATHER_INFO);
+ script_family("Service detection");
+ script_copyright("This script is Copyright (C) 2009 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);
+
+dirs = make_list("/rt","/tracker",cgi_dirs());
+
+foreach dir (dirs) {
+
+ url = string(dir, "/index.html");
+ req = http_get(item:url, port:port);
+ buf = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
+ if( buf == NULL )continue;
+
+ if(egrep(pattern: "&#187;&#124;&#171; RT.*Best Practical Solutions, LLC", string: buf, icase: TRUE))
+ {
+     if(strlen(dir)>0) {
+        install=dir;
+     } else {
+        install=string("/");
+     }
+
+    vers = string("unknown");
+    ### try to get version 
+    version = eregmatch(string: buf, pattern: "&#187;&#124;&#171; RT ([0-9.]+)",icase:TRUE);
+
+    if ( !isnull(version[1]) ) {
+       vers=chomp(version[1]);
+    }
+
+    set_kb_item(name: string("www/", port, "/rt_tracker"), value: string(vers," under ",install));
+
+    info = string("None\n\nRT: Request Tracker 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:"None$",
+        replace:info
+    );
+
+       if(report_verbosity > 0) {
+         security_note(port:port,data:desc);
+       }
+       exit(0);
+
+ }
+}
+exit(0);
+


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



More information about the Openvas-commits mailing list