Lucene search

K
openvasThis script is Copyright (C) 2009 Greenbone Networks GmbHOPENVAS:100059
HistoryMar 18, 2009 - 12:00 a.m.

TangoCMS 'listeners.php' Cross Site Scripting Vulnerability

2009-03-1800:00:00
This script is Copyright (C) 2009 Greenbone Networks GmbH
plugins.openvas.org
9

0.002 Low

EPSS

Percentile

60.2%

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.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: TangoCMS_xss.nasl 7573 2017-10-26 09:18:50Z cfischer $
#
# TangoCMS 'listeners.php' Cross Site Scripting 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.
###############################################################################

tag_summary = "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.";

tag_solution = "The vendor has released updates. Please see http://tangocms.org for more
  Information.

 See Also:
  http://www.securityfocus.com/bid/33833";

if(description)
{
 script_id(100059);
 script_version("$Revision: 7573 $");
 script_tag(name:"last_modification", value:"$Date: 2017-10-26 11:18:50 +0200 (Thu, 26 Oct 2017) $");
 script_tag(name:"creation_date", value:"2009-03-18 12:46:43 +0100 (Wed, 18 Mar 2009)");
 script_bugtraq_id(33833);
 script_cve_id("CVE-2009-0862");
 script_tag(name:"cvss_base", value:"4.3");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
 script_name("TangoCMS 'listeners.php' Cross Site Scripting Vulnerability");
 script_category(ACT_GATHER_INFO);
 script_tag(name:"qod_type", value:"remote_banner");
 script_family("Web application abuses");
 script_copyright("This script is Copyright (C) 2009 Greenbone Networks GmbH");
 script_dependencies("find_service.nasl", "http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("version_func.inc");

port = get_http_port(default:80);
if(!can_host_php(port:port)) exit(0);

foreach dir( make_list_unique( "/tangocms", "/cms", cgi_dirs( port:port ) ) ) {

  if( dir == "/" ) dir = "";
  url = string(dir, '/README');
  buf = http_get_cache(item:url, port:port);
  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_message(port:port);
        exit(0);
      }
    }
  }
}
 
exit( 99 );

0.002 Low

EPSS

Percentile

60.2%

Related for OPENVAS:100059