Joomla Com_Memorix Component SQL Injection Vulnerability

2015-08-24T00:00:00
ID OPENVAS:1361412562310806031
Type openvas
Reporter Copyright (C) 2015 Greenbone Networks GmbH
Modified 2017-07-04T00:00:00

Description

The host is installed with Joomla

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_joomla_com_memorix_sql_vuln.nasl 6513 2017-07-04 09:59:28Z teissa $
#
# Joomla Com_Memorix Component SQL Injection Vulnerability
#
# Authors:
# Rinu Kuriakose <krinu@secpod.com>
#
# Copyright:
# Copyright (C) 2015 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.
###############################################################################

CPE = "cpe:/a:joomla:joomla";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.806031");
  script_version("$Revision: 6513 $");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"$Date: 2017-07-04 11:59:28 +0200 (Tue, 04 Jul 2017) $");
  script_tag(name:"creation_date", value:"2015-08-24 15:13:35 +0530 (Mon, 24 Aug 2015)");
  script_tag(name:"qod_type", value:"remote_vul");
  script_name("Joomla Com_Memorix Component SQL Injection Vulnerability");

  script_tag(name: "summary" , value:"The host is installed with Joomla
  'Com_Memorix' component and is prone to sql injection vulnerability.");

  script_tag(name: "vuldetect" , value:"Send a crafted request via HTTP GET and
  check whether it is able to execute sql query or not.");

  script_tag(name: "insight" , value:"Flaw is due to an input sanitization
  error in com_memorix component.");

  script_tag(name: "impact" , value:"Successful exploitation will allow remote
  attackers to inject or manipulate SQL queries in the back-end database,
  allowing for the manipulation or disclosure of arbitrary data.

  Impact Level: Application");

  script_tag(name: "affected" , value:"Joomla Com_Memorix Component all
  versions.");

  script_tag(name: "solution" , value:"No solution or patch was made available for
  at least one year since disclosure of this vulnerability. Likely none will be
  provided anymore. General solution options are to upgrade to a newer release,
  disable respective features, remove the product or replace the product by another
  one.");

  script_tag(name:"solution_type", value:"WillNotFix");
  script_xref(name : "URL" , value : "https://www.exploit-db.com/exploits/37773");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("joomla_detect.nasl");
  script_mandatory_keys("joomla/installed");
  script_require_ports("Services/www", 80);
  exit(0);
}


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

## Variable Initialization
dir = "";
url = "";
http_port = "";

## Get HTTP Port
if(!http_port = get_app_port(cpe:CPE)){
  exit(0);
}

## Get WordPress Location
if(!dir = get_app_location(cpe:CPE, port:http_port)){
  exit(0);
}

##Construct Attack Request
url = dir + '/index.php?option=com_memorix&Itemid=2&task=result&searchplugin'+
            '=categorie&cp=CONCAT(1,SQL-INJECTION-TEST)&lang=en&rpp=15';

if(http_vuln_check(port:http_port, url:url, check_header:TRUE,
                   pattern:"You have an error in your SQL syntax",
                   extra_check:make_list("SQL-INJECTION-TEST", "Joomla")))
{
  security_message(port:http_port);
  exit(0);
}