[Openvas-commits] r2831 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Mar 18 12:46:47 CET 2009
Author: mime
Date: 2009-03-18 12:46:43 +0100 (Wed, 18 Mar 2009)
New Revision: 2831
Added:
trunk/openvas-plugins/scripts/TangoCMS_xss.nasl
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/Cryptographp_local_file_include.nasl
Log:
Addressed conflicting script IDs, Added new plugin
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2009-03-18 11:32:48 UTC (rev 2830)
+++ trunk/openvas-plugins/ChangeLog 2009-03-18 11:46:43 UTC (rev 2831)
@@ -1,4 +1,11 @@
2008-03-18 Michael Meyer <mime at gmx.de>
+ * scripts/Cryptographp_local_file_include.nasl:
+ Addressed conflicting script ID's
+
+ * scripts/TangoCMS_xss.nasl:
+ Added new plugin
+
+2008-03-18 Michael Meyer <mime at gmx.de>
* scripts/chipmunk_forum_xss.nasl
scripts/zeroblog_xss.nasl:
Fix error "Too many args for function 'get_kb_item'"
Modified: trunk/openvas-plugins/scripts/Cryptographp_local_file_include.nasl
===================================================================
--- trunk/openvas-plugins/scripts/Cryptographp_local_file_include.nasl 2009-03-18 11:32:48 UTC (rev 2830)
+++ trunk/openvas-plugins/scripts/Cryptographp_local_file_include.nasl 2009-03-18 11:46:43 UTC (rev 2831)
@@ -26,7 +26,7 @@
if (description)
{
- script_id(100056);
+ script_id(100060);
script_bugtraq_id(34122);
script_version ("1.0");
Added: trunk/openvas-plugins/scripts/TangoCMS_xss.nasl
===================================================================
--- trunk/openvas-plugins/scripts/TangoCMS_xss.nasl 2009-03-18 11:32:48 UTC (rev 2830)
+++ trunk/openvas-plugins/scripts/TangoCMS_xss.nasl 2009-03-18 11:46:43 UTC (rev 2831)
@@ -0,0 +1,99 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# TangoCMS 'listeners.php' Cross Site Scripting Vulnerability
+#
+# Authors:
+# Michael Meyer
+#
+# Copyright:
+# Copyright (c) 2009 Michael Meyer
+#
+# 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(100059);
+ script_bugtraq_id(33833);
+ script_cve_id("CVE-2009-0862");
+ script_version ("1.0");
+
+ desc["english"] = "
+
+ Overview:
+ TangoCMS is prone to a cross-site scripting vulnerability because it fails to
+ sufficiently sanitize user-supplied data.
+
+ 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 may
+ allow the attacker to steal cookie-based authentication credentials and to
+ launch other attacks.
+
+ Versions prior to TangoCMS 2.2.4 are vulnerable.
+
+ Solution:
+ The vendor has released updates. Please see http://tangocms.org for more
+ Information.
+
+ See Also:
+ http://www.securityfocus.com/bid/33833
+
+ Risk factor : Medium";
+
+ script_name(english:"TangoCMS 'listeners.php' Cross Site Scripting Vulnerability");
+ script_description(english:desc["english"]);
+ script_summary(english:"Determine if TangoCMS 'listeners.php' is prone to Cross Site Scripting vulnerabilities");
+ script_category(ACT_GATHER_INFO);
+ script_family(english:"Web application abuses");
+ script_copyright(english:"This script is Copyright (C) 2009 Michael Meyer");
+ script_dependencie("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("version_func.inc");
+
+port = get_http_port(default:80);
+
+if(!get_port_state(port))exit(0);
+if(!can_host_php(port:port)) exit(0);
+
+dir = make_list("/tangocms","/cms",cgi_dirs());
+
+foreach d (dir)
+{
+
+ url = string(d, '/README');
+ req = http_get(item:url, port:port);
+ buf = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
+ if( buf == NULL )continue;
+
+ if (egrep(pattern:".*TangoCMS.*", string: buf, icase: true) )
+ {
+ version = eregmatch(string: buf, pattern: "\* Version, ([0-9]+\.*[0-9]*\.*[0-9]*)");
+ if(!isnull(version[1])) {
+ if(version_is_less(version:version[1], test_version:"2.2.4")){
+ security_warning(port:port,data:desc);
+ exit(0);
+ }
+ }
+ }
+}
+
+exit(0);
More information about the Openvas-commits
mailing list