VDB
Sign up
MEDIUM5.4

GHSA-xfv7-h2qg-rjm7

Moodle Lesson activity password bypass through PHP loose comparison

Quick fix

GHSA-xfv7-h2qg-rjm7 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^4.1.13

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 4.1.13
Fixcomposer require moodle/moodle:^4.1.13
Packagist/moodle/moodle
Introduced in: 4.2.0-betaFixed in: 4.2.10
Fixcomposer require moodle/moodle:^4.2.10
Packagist/moodle/moodle
Introduced in: 4.3.0-betaFixed in: 4.3.7
Fixcomposer require moodle/moodle:^4.3.7
Packagist/moodle/moodle
Introduced in: 4.4.0-betaFixed in: 4.4.3
Fixcomposer require moodle/moodle:^4.4.3

References