VDB
Sign up
MEDIUM5.4

GHSA-hcm6-q6pc-xfhm

Moodle has an authorization logic flaw

Quick fix

GHSA-hcm6-q6pc-xfhm — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^4.1.22

Details

A flaw was found in Moodle. An authorization logic flaw, specifically due to incomplete role checks during the badge awarding process, allowed badges to be granted without proper verification. This could enable unauthorized users to obtain badges they are not entitled to, potentially leading to privilege escalation or unauthorized access to certain features.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 4.1.22
Fixcomposer require moodle/moodle:^4.1.22
Packagist/moodle/moodle
Introduced in: 4.4.0-betaFixed in: 4.4.12
Fixcomposer require moodle/moodle:^4.4.12
Packagist/moodle/moodle
Introduced in: 4.5.0-betaFixed in: 4.5.8
Fixcomposer require moodle/moodle:^4.5.8
Packagist/moodle/moodle
Introduced in: 5.0.0-betaFixed in: 5.0.4
Fixcomposer require moodle/moodle:^5.0.4
Packagist/moodle/moodle
Introduced in: 5.1.0-betaFixed in: 5.1.1
Fixcomposer require moodle/moodle:^5.1.1

References