GHSA-xfv7-h2qg-rjm7
Moodle Lesson activity password bypass through PHP loose comparison
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Packagist | moodle/moodle | < 4.1.13 | 4.1.13 |
| Packagist | moodle/moodle | >= 4.2.0-beta, < 4.2.10 | 4.2.10 |
| Packagist | moodle/moodle | >= 4.3.0-beta, < 4.3.7 | 4.3.7 |
| Packagist | moodle/moodle | >= 4.4.0-beta, < 4.4.3 | 4.4.3 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2024-45691
- https://github.com/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92
- https://bugzilla.redhat.com/show_bug.cgi?id=2309940
- https://github.com/moodle/moodle
- https://moodle.org/mod/forum/discuss.php?d=461897#p1854494
- https://moodle.org/security