CVE-2014-3548: Moodle multiple cross-site scripting (XSS) vulnerabilities
Summary
CVE-2014-3548: Moodle multiple cross-site scripting (XSS) vulnerabilities. Affects moodle/moodle across 4 version ranges.
< 2.4.11
>= 2.5.0, < 2.5.7
>= 2.6.0, < 2.6.4
>= 2.7.0, < 2.7.1
Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Moodle is an open-source learning management system (LMS) used by educational institutions to create and deliver online courses. It provides a platform for educators to create interactive learning materials, manage course content, and facilitate communication between students and teachers. Moodle is written in PHP and utilizes a database backend for storing course data and user information. This vulnerability affects Moodle versions 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1.
Vulnerability Detail
Multiple cross-site scripting (XSS) vulnerabilities have been discovered in Moodle. These vulnerabilities allow remote attackers to inject arbitrary web script or HTML into Moodle pages. The vulnerabilities are triggered by vectors that cause an AJAX exception dialog to be displayed. An attacker can exploit these vulnerabilities by crafting malicious input that is not properly sanitized and executing it within the context of a user's browser. This can lead to various attacks, including session hijacking, defacement of Moodle pages, and the theft of sensitive information.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.4.112.4.11composer require moodle/moodle:2.4.11 -
>= 2.5.0, < 2.5.72.5.7composer require moodle/moodle:2.5.7 -
>= 2.6.0, < 2.6.42.6.4composer require moodle/moodle:2.6.4 -
>= 2.7.0, < 2.7.12.7.1composer require moodle/moodle:2.7.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
If upgrading to the latest version is not immediately feasible, administrators can implement a temporary workaround by disabling the display of AJAX exception dialogs. This can be done by modifying the Moodle configuration settings to suppress the dialogs. However, this workaround may impact the user experience and should only be considered as a temporary measure until the upgrade can be performed.
Conclusion
Multiple cross-site scripting (XSS) vulnerabilities have been discovered in Moodle versions 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1. These vulnerabilities allow remote attackers to inject arbitrary web script or HTML into Moodle pages, potentially leading to session hijacking, defacement, and data theft. It is crucial for Moodle administrators to upgrade their installations to the latest patched versions to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for moodle/moodle →
FAQ
Moodle is an open-source learning management system used by educational institutions to create and deliver online courses.
This vulnerability affects Moodle versions 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1.
An attacker can exploit these vulnerabilities by crafting malicious input that is not properly sanitized and executing it within the context of a user's browser.
The potential consequences of these vulnerabilities include session hijacking, defacement of Moodle pages, and the theft of sensitive information.
The recommended mitigation for this vulnerability is to upgrade to the latest version of Moodle.
References
Related vulnerabilities
Recent vulnerabilities recorded for moodle/moodle.