CVE-2024-29374: Moodle XSS Vulnerability in User Input Handling
Summary
CVE-2024-29374: A Cross-Site Scripting (XSS) vulnerability exists in the way MOODLE 3.10.9 handles user input within the "GET /?lang=" URL parameter. Affects moodle versions >= 3.10.9, < 4.1.10. Fixed in 4.1.10. How to fix ↓
Also tracked for
- moodle/moodle · Packagist
The same CVE-2024-29374 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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 platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. It is widely used in educational institutions for course management, content delivery, and student engagement. The platform's flexibility and extensibility make it a popular choice, but like any software, it is susceptible to vulnerabilities that can compromise its security.
Vulnerability Detail
A Cross-Site Scripting (XSS) vulnerability exists in Moodle version 3.10.9, specifically in the handling of user input within the 'GET /?lang=' URL parameter. This vulnerability allows an attacker to inject malicious scripts into web pages viewed by other users, potentially leading to data theft, session hijacking, or other malicious actions. The vulnerability arises from inadequate input validation, which fails to sanitize user input properly.
How To Fix
Minimum fixed version
4.1.10
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can restrict access to the affected URL parameter or implement input validation measures on their own to sanitize user inputs until the patch is applied.
Conclusion
The XSS vulnerability in Moodle 3.10.9 poses significant risks to users by allowing the injection of malicious scripts. It is crucial for users to update to version 4.1.9 or later to mitigate these risks. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for moodle →
FAQ
The vulnerability is a Cross-Site Scripting (XSS) issue that allows attackers to inject malicious scripts into web pages.
Moodle version 3.10.9 is specifically affected by this vulnerability.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If exploited, this vulnerability can lead to data theft, session hijacking, and other malicious actions against users.
Using Vulert, you can monitor and receive alerts in real-time for open-source vulnerabilities in your software by simply using a manifest file like package-lock.json.
References
Related vulnerabilities
Recent vulnerabilities recorded for moodle.