Lucene search
K

Multiple CubeCart XSS vulnerabilities

🗓️ 26 Mar 2006 00:00:00Reported by Copyright (C) 2005 Josh Zlatin-AmishavType 
openvas
 openvas
🔗 plugins.openvas.org👁 18 Views

CubeCart contains multiple cross-site scripting vulnerabilities due to failure to properly sanitize user input in 'index.php' and 'cart.php'

Related
Refs
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
Brooky CubeCart < 3.0.4 Multiple XSS
29 Sep 200500:00
nessus
Tenable Nessus
CubeCart < 3.0.4 Multiple Script XSS
6 Oct 200500:00
nessus
CVE
CVE-2005-3152
5 Oct 200504:00
cve
Cvelist
CVE-2005-3152
5 Oct 200504:00
cvelist
EUVD
EUVD-2005-3152
7 Oct 202500:30
euvd
NVD
CVE-2005-3152
5 Oct 200522:02
nvd
OpenVAS
CubeCart < 3.0.4 Multiple XSS Vulnerabilities
26 Mar 200600:00
openvas
Prion
Cross site scripting
18 Jan 200601:51
prion
# 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 );

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

30 Mar 2017 00:00Current
0.1Low risk
Vulners AI Score0.1
EPSS0.06398
18