CVE-2024-45691
PHP vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2024-45691) was identified in Moodle affecting the lesson activity password functionality. The vulnerability allows certain passwords to be bypassed or become less secure due to a loose comparison in the password-checking logic. This issue specifically affects passwords that are set to "magic hash" values, where the loose comparison in the code can result in multiple values matching the password instead of requiring an exact match (NVD, Redhat Bugzilla).

Technical details

The vulnerability stems from a PHP loose comparison implementation in the password-checking logic of Moodle's lesson activity feature. The issue specifically manifests when passwords are set to "magic hash" values, which can cause the system to incorrectly validate multiple password values as valid matches. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.4 (MEDIUM) with the vector string: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N (NVD).

Impact

The vulnerability compromises the security of password-protected lesson activities in Moodle by potentially allowing unauthorized access when certain password values are used. This could lead to unauthorized users gaining access to restricted lesson content when the password is set to specific "magic hash" values (Redhat Bugzilla).

Mitigation and workarounds

The vulnerability has been identified and reported, with fixes being developed. Organizations using Moodle should monitor for updates and apply them when available. In the meantime, administrators should avoid using passwords that could be interpreted as "magic hash" values for lesson activities (Moodle Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management