SB2022091919 - Multiple vulnerabilities in Moodle
Published: September 19, 2022
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 secuirty vulnerabilities.
1) Permissions, Privileges, and Access Controls (CVE-ID: CVE-2022-40316)
The vulnerability allows a remote user to gain access to sensitive information.
The vulnerability exists due to the H5P activity attempts report does not respect group permissions when displaying information to non-editing teachers about attempts/users in groups they should not have access to. A remote user can gain access to sensitive information.
2) SQL injection (CVE-ID: CVE-2022-40315)
The vulnerability allows a remote user to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data in the "browse list of users" site administration page. A remote user can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.
3) Deserialization of Untrusted Data (CVE-ID: CVE-2022-40314)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to insecure input validation when restoring backup files originating from Moodle. A remote attacker can trick the victim into restoring the website from a malformed backup and execute arbitrary code on the target system.
4) Cross-site scripting (CVE-ID: CVE-2022-40313)
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data within Mustache template helpers. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
Remediation
Install update from vendor's website.
References
- https://moodle.org/mod/forum/discuss.php?d=438395
- https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71662
- https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72012
- https://moodle.org/mod/forum/discuss.php?d=438394
- https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75283
- https://moodle.org/mod/forum/discuss.php?d=438393
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75405
- https://moodle.org/mod/forum/discuss.php?d=438392
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-68066