Security announcements

MSA-22-0001: SQL injection risk in code fetching h5p activity user attempts

by Michael Hawkins -

An SQL injection risk was identified in the h5p activity web service responsible for fetching user attempt data.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.4
Versions fixed: 3.11.5
Reported by: Paul Holden
CVE identifier: CVE-2022-0332
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72573
Tracker issue: MDL-72573 SQL injection risk in code fetching h5p activity user attempts

MSA-21-0042: IDOR in a calendar web service allows fetching of other users' action events

by Michael Hawkins -

Insufficient capability checks made it possible to fetch other users' calendar action events.


Severity/Risk: Minor
Versions affected: 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions
Versions fixed: 3.11.4, 3.10.8 and 3.9.11
Reported by: 0xkasper
CVE identifier: CVE-2021-43560
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71918
Tracker issue: MDL-71918 IDOR in a calendar web service allows fetching of other users' action events

MSA-21-0041: CSRF risk on delete related badge feature

by Michael Hawkins -

The "delete related badge" functionality did not include the necessary token check to prevent a CSRF risk.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions
Versions fixed: 3.11.4, 3.10.8 and 3.9.11
Reported by: ostapbender
CVE identifier: CVE-2021-43559
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72370
Tracker issue: MDL-72370 CSRF risk on delete related badge feature

MSA-21-0040: Reflected XSS in filetype admin tool

by Michael Hawkins -

A URL parameter in the filetype site administrator tool required extra sanitizing to prevent a reflected XSS risk.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions
Versions fixed: 3.11.4, 3.10.8 and 3.9.11
Reported by: starlabs_sg
CVE identifier: CVE-2021-43558
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72571
Tracker issue: MDL-72571 Reflected XSS in filetype admin tool

MSA-21-0039: Upgrade moodle-mlbackend-python and update its reference in /lib/mlbackend/python/classes/processor.php (upstream)

by Michael Hawkins -

The upstream Moodle machine learning backend and its reference in /lib/mlbackend/python/classes/processor.php were upgraded, which includes some security updates.

Please note: If you are using Moodle Analytics, an upgrade to the mlbackend is required. See the Analytics settings documentation for more information about required versions and how to upgrade.

Severity/Risk: Minor
Versions affected: 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions
Versions fixed: 3.11.4, 3.10.8 and 3.9.11
Reported by: Sara Arjona
CVE identifier: N/A
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-70887
Tracker issue: MDL-70887 Upgrade moodle-mlbackend-python and update its reference in /lib/mlbackend/python/classes/processor.php (upstream)

MSA-21-0038: Remote code execution risk when restoring malformed backup file

by Michael Hawkins -

A remote code execution risk when restoring backup files was identified.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions
Versions fixed: 3.11.4, 3.10.8 and 3.9.11
Reported by: Paul Holden
CVE identifier: CVE-2021-3943
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-70823
Tracker issue: MDL-70823 Remote code execution risk when restoring malformed backup file

MSA-21-0036: Quiz unreleased grade disclosure via web service

by Michael Hawkins -

It was possible for a student to view their quiz grade before it had been released, using a quiz web service.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.2, 3.10 to 3.10.6, 3.9 to 3.9.9 and earlier unsupported versions
Versions fixed: 3.11.3, 3.10.7 and 3.9.10
Reported by: Nadav Kavalerchik
CVE identifier: CVE-2021-40695
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71797
Tracker issue: MDL-71797 Quiz unreleased grade disclosure via web service

MSA-21-0035: Arbitrary file read by site administrators via LaTeX preamble

by Michael Hawkins -

Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.2, 3.10 to 3.10.6, 3.9 to 3.9.9 and earlier unsupported versions
Versions fixed: 3.11.3, 3.10.7 and 3.9.10
Reported by: raisin_bugbounty
Workaround: Hard-code the value of the LaTeX preamble into $CFG->forced_plugin_settings['filter_tex']['latexpreamble'] within the site's config.php file.
CVE identifier: CVE-2021-40694
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71240
Tracker issue: MDL-71240 Arbitrary file read by site administrators via LaTeX preamble

MSA-21-0034: Authentication bypass risk when using external database authentication

by Michael Hawkins -

An authentication bypass risk was identified in the external database authentication functionality, due to a type juggling vulnerability.


Severity/Risk: Serious
Versions affected: 3.11 to 3.11.2, 3.10 to 3.10.6, 3.9 to 3.9.9 and earlier unsupported versions
Versions fixed: 3.11.3, 3.10.7 and 3.9.10
Reported by: Amit Eyal
CVE identifier: CVE-2021-40693
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71160
Tracker issue: MDL-71160 Authentication bypass risk when using external database authentication

MSA-21-0033: Course participants download did not restrict which users could be exported

by Michael Hawkins -

Insufficient capability checks made it possible for teachers to download users outside of their courses.


Severity/Risk: Minor
Versions affected: 3.11 to 3.11.2, 3.10 to 3.10.6, 3.9 to 3.9.9 and earlier unsupported versions
Versions fixed: 3.11.3, 3.10.7 and 3.9.10
Reported by: Paul Holden
CVE identifier: CVE-2021-40692
Changes (master): http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71726
Tracker issue: MDL-71726 Course participants download did not restrict which users could be exported