GitHub Advisory Database
GHSA-xfv7-h2qg-rjm7
Moodle Lesson activity password bypass through PHP loose comparison
Details
A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to "magic hash" values.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | moodle/moodle | All versions before 4.1.13 (fixed in 4.1.13) |
| Packagist | moodle/moodle | From 4.2.0-beta before 4.2.10 (fixed in 4.2.10) |
| Packagist | moodle/moodle | From 4.3.0-beta before 4.3.7 (fixed in 4.3.7) |
| Packagist | moodle/moodle | From 4.4.0-beta before 4.4.3 (fixed in 4.4.3) |