Lucene search

K
openvasCopyright (C) 2005 Josh Zlatin-AmishavOPENVAS:19945
HistoryMar 26, 2006 - 12:00 a.m.

Multiple CubeCart XSS vulnerabilities

2006-03-2600:00:00
Copyright (C) 2005 Josh Zlatin-Amishav
plugins.openvas.org
7

0.009 Low

EPSS

Percentile

80.9%

Description :
The remote version of CubeCart contains several cross-site scripting
vulnerabilities to due to its failure to properly sanitize user-supplied
input of certain variables to the ‘index.php’ and ‘cart.php’ scripts.

# OpenVAS Vulnerability Test
# $Id: cubecart_xss.nasl 5781 2017-03-30 08:15:57Z cfi $
# Description: Multiple CubeCart XSS vulnerabilities
#
# Authors:
# Josh Zlatin-Amishav <josh at ramat dot cc>
# Updated: 04/07/2009 Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (C) 2005 Josh Zlatin-Amishav
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# 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 = "Description :
  The remote version of CubeCart contains several cross-site scripting
  vulnerabilities to due to its failure to properly sanitize user-supplied
  input of certain variables to the 'index.php' and 'cart.php' scripts.";

tag_solution = "Upgrade to CubeCart version 3.0.4 or later.";

if(description)
{
  script_id(19945);
  script_version("$Revision: 5781 $");
  script_tag(name:"last_modification", value:"$Date: 2017-03-30 10:15:57 +0200 (Thu, 30 Mar 2017) $");
  script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
  script_cve_id("CVE-2005-3152");
  script_bugtraq_id(14962);
  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("Multiple CubeCart XSS vulnerabilities");
  script_category(ACT_MIXED_ATTACK);
  script_tag(name:"qod_type", value:"remote_banner");
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2005 Josh Zlatin-Amishav");
  script_dependencies("secpod_cubecart_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("cubecart/installed");

  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_xref(name : "URL" , value : "http://lostmon.blogspot.com/2005/09/cubecart-303-multiple-variable-cross.html");
  exit(0);
}

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

port = get_http_port(default:80);

version = get_kb_item(string("www/", port, "/cubecart"));
if(!version) exit(0);

if(!safe_checks())
{
  foreach dir( make_list_unique( "/cubecart/upload", "/upload", cgi_dirs( port:port ) ) ) {

  if( dir == "/" ) dir = "";

    xss = "<script>alert('" + SCRIPT_NAME + "');</script>";
    exss = urlencode(str:xss);
    req = http_get(item:string(dir, "/index.php?",'searchStr=">', exss, "&act=viewCat&Submit=Go"),port:port);
    res = http_keepalive_send_recv(port:port, data:req);
    if(res =~ "HTTP/1\.. 200" && xss >< res) {
      security_message( port:port );
      exit( 0 );
    }
  }
}

if(version_is_less_equal(version:version, test_version:"3.0.3")){
  security_message( port:port);
  exit( 0 );
}

exit( 99 );

0.009 Low

EPSS

Percentile

80.9%

Related for OPENVAS:19945