Moodle <= 3.11.4 XSS Vulnerability. Cross-site scripting via 'GET /?lang' URL paramete
Reporter | Title | Published | Views | Family All 8 |
---|---|---|---|---|
![]() | CVE-2024-29374 | 21 Mar 202400:00 | – | vulnrichment |
![]() | Moodle cross-site scripting vulnerability (CNVD-2024-21664) | 26 Mar 202400:00 | – | cnvd |
![]() | Cross site scripting in moodle | 21 Mar 202421:31 | – | github |
![]() | CVE-2024-29374 | 21 Mar 202400:00 | – | cvelist |
![]() | CVE-2024-29374 | 21 Mar 202419:15 | – | cve |
![]() | CVE-2024-29374 | 21 Mar 202400:00 | – | ubuntucve |
![]() | CVE-2024-29374 | 21 Mar 202419:15 | – | nvd |
![]() | CVE-2024-29374 | 21 Mar 202421:44 | – | redhatcve |
# SPDX-FileCopyrightText: 2024 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:moodle:moodle";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.126656");
script_version("2024-12-20T05:05:51+0000");
script_tag(name:"last_modification", value:"2024-12-20 05:05:51 +0000 (Fri, 20 Dec 2024)");
script_tag(name:"creation_date", value:"2024-03-22 10:00:26 +0000 (Fri, 22 Mar 2024)");
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_cve_id("CVE-2024-29374");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_tag(name:"solution_type", value:"NoneAvailable");
script_name("Moodle <= 3.11.4 XSS Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2024 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_moodle_cms_detect.nasl");
script_mandatory_keys("moodle/detected");
script_tag(name:"summary", value:"Moodle is prone to a cross-site scripting (XSS)
vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"Moodle allows to perform XSS via the 'GET /?lang' URL parameter.
This parameter is likely used to specify the user's preferred language for the MOODLE
interface.");
script_tag(name:"affected", value:"Moodle version 3.11.4 and prior.");
# nb: You can check e.g. here if there are any updates available:
# - https://moodle.org/search/index.php?q=%22CVE-2024-29374%22
# - https://moodle.org/mod/forum/view.php?id=7128
# - https://moodle.org/mod/forum/search.php?id=1&words=CVE-2024-29374
script_tag(name:"solution", value:"No known solution is available as of 19th December, 2024.
Information regarding this issue will be updated once solution details are available.");
script_xref(name:"URL", value:"https://gist.github.com/fir3storm/f9c7f3ec1a6496498517ed216d2640b2");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!port = get_app_port(cpe: CPE))
exit(0);
if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
exit(0);
version = infos["version"];
location = infos["location"];
if (version_is_less_equal(version: version, test_version: "3.11.4")) {
report = report_fixed_ver(installed_version: version, fixed_version: "None", install_path: location);
security_message(port: port, data: report);
exit(0);
}
exit(0);
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo