Lucene search
K

OpenCart Cross-Site Request Forgery Vulnerability

🗓️ 16 Jun 2010 00:00:00Reported by Copyright (C) 2010 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 16 Views

OpenCart Cross-Site Request Forgery Vulnerability affecting OpenCart Version 1.4.7 and prior. Allows remote attackers to hijack authentication and create administrative accounts

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2010-1610
29 Apr 201019:00
cve
Cvelist
CVE-2010-1610
29 Apr 201019:00
cvelist
EUVD
EUVD-2010-1636
7 Oct 202500:30
euvd
NVD
CVE-2010-1610
29 Apr 201019:30
nvd
OpenVAS
OpenCart < 1.4.8 CSRF Vulnerability
16 Jun 201000:00
openvas
Prion
Cross site request forgery (csrf)
29 Apr 201019:30
prion
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_opencart_csrf_vuln.nasl 5323 2017-02-17 08:49:23Z teissa $
#
# OpenCart Cross-Site Request Forgery Vulnerability
#
# Authors:
# Sooraj KS <[email protected]>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
#
# 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_impact = "Successful exploitation will allow attackers to perform CSRF attacks,
  which will aid in further attacks.
  Impact Level: Application";
tag_affected = "OpenCart Version 1.4.7 and prior.";
tag_insight = "The flaw is caused by improper validation of user-supplied input in index.php,
  that allows remote attackers to hijack the authentication of an application
  administrator for requests that create an administrative account via a POST
  request with the route parameter set to 'user/user/insert'.";
tag_solution = "Upgrade to OpenCart version 1.4.8 or later,
  For updates refer to http://www.opencart.com";
tag_summary = "The host is running OpenCart and is prone to cross-site request
  forgery vulnerability.";

if(description)
{
  script_id(801227);
  script_version("$Revision: 5323 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-17 09:49:23 +0100 (Fri, 17 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-06-16 08:26:33 +0200 (Wed, 16 Jun 2010)");
  script_cve_id("CVE-2010-1610");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_name("OpenCart Cross-Site Request Forgery Vulnerability");


  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("opencart_detect.nasl");
  script_require_ports("Services/www", 80);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_xref(name : "URL" , value : "http://www.securityfocus.com/archive/1/archive/1/509313/100/0/threaded");
  script_xref(name : "URL" , value : "http://forum.opencart.com/viewtopic.php?f=16&t=10203&p=49654&hilit=csrf#p49654");
  script_xref(name : "URL" , value : "http://blog.visionsource.org/2010/01/28/opencart-csrf-vulnerability/");
  exit(0);
}


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

## Get HTTP Port
port = get_http_port(default:80);
if(!port){
  exit(0);
}

## Get version from KB
ver = get_kb_item("www/" + port + "/opencart");
cartVer = eregmatch(pattern:"^(.+) under (/.*)$", string:ver);

if(cartVer[1])
{
   ## Check for OpenCart Version prior to 1.4.8
   if(version_is_less(version:cartVer[1], test_version:"1.4.8")) {
     security_message(port);
   }
}

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