Lucene search

K
openvasCopyright (C) 2016 Greenbone AGOPENVAS:1361412562310107024
HistoryJul 07, 2016 - 12:00 a.m.

Joomla J2Store 3.1.6 Multiple SQL Injection Vulnerabilities

2016-07-0700:00:00
Copyright (C) 2016 Greenbone AG
plugins.openvas.org
30

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7.8 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

51.9%

Jommla J2Store is prone to multiple SQL injection vulnerabilities.

# SPDX-FileCopyrightText: 2016 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.107024");
  script_version("2023-07-20T05:05:17+0000");
  script_cve_id("CVE-2015-6513");
  script_tag(name:"last_modification", value:"2023-07-20 05:05:17 +0000 (Thu, 20 Jul 2023)");
  script_tag(name:"qod_type", value:"remote_banner");
  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"creation_date", value:"2016-07-07 06:40:16 +0200 (Thu, 07 Jul 2016)");
  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_name("Joomla J2Store 3.1.6 Multiple SQL Injection Vulnerabilities");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("joomla_detect.nasl");
  script_mandatory_keys("joomla/installed");
  script_require_ports("Services/www", 80);

  script_tag(name:"summary", value:"Jommla J2Store is prone to multiple SQL injection vulnerabilities.");
  script_tag(name:"insight", value:"The first vulnerability was in the sortby parameter within a request made
  while searching for products. The second vulnerability was in an advanced search multipart form request,
  within the manufacturer_ids parameters.");
  script_tag(name:"vuldetect", value:"The script detects the version of joomla J2Store component on remote host and tells whether it is vulnerable or not.");
  script_tag(name:"impact", value:"Successful exploitation will allow an
  unauthenticated remote attacker to execute arbitrary SQL commands via the (1) sortby or (2) manufacturer_ids[] parameter to index.php.");
  script_tag(name:"affected", value:"J2Store v3.1.6 and previous versions.");
  script_tag(name:"solution", value:"Fixed in J2Store v3.1.7 version.");

  script_xref(name:"URL", value:"https://packetstormsecurity.com/files/132658/Joomla-J2Store-3.1.6-SQL-Injection.html");
  script_xref(name:"URL", value:"http://j2store.org/download-j2store/j2store-v3-3-1-7.html");

  exit(0);
}

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

if(!appPort = get_app_port(cpe:CPE)){
  exit(0);
}

if(!dir = get_app_location(cpe:CPE, port:appPort)){
  exit(0);
}

url = dir + '/Joomla/administrator/components/com_j2store/com_j2store.xml';
sndReq = http_get( item: url, port:appPort );
rcvRes = http_keepalive_send_recv( port: appPort, data:sndReq, bodyonly:FALSE );
if ( rcvRes !~ "<extension version" && "J2Store" >!< rcvRes && "Joomla" >!< rcvRes) exit ( 0 );

if(ve = egrep( pattern:'<version>([0-9])+', string:rcvRes) ) {
  tmpVer = eregmatch ( pattern:'<version>(([0-9])[.]([0-9])[.]([0-9]))', string: ve);
}

if(tmpVer[1] ) {
  jstrVer = tmpVer[1];
}

if(version_is_less (version: jstrVer, test_version: "3.1.7")) {
  report = report_fixed_ver(installed_version:jstrVer, fixed_version:"3.1.7 or higher");
  security_message(data:report, port:appPort);
  exit(0);
}

exit(99);

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7.8 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

51.9%

Related for OPENVAS:1361412562310107024