VDB
Sign up
MEDIUM

GHSA-468q-9cmp-76wc

Moodle does not consider the moodle/tag:edit capability before adding a tag

Quick fix

GHSA-468q-9cmp-76wc — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.5.9

Details

tag/tag_autocomplete.php in Moodle through 2.4.11, 2.5.x before 2.5.9, 2.6.x before 2.6.6, and 2.7.x before 2.7.3 does not consider the moodle/tag:edit capability before adding a tag, which allows remote authenticated users to bypass intended access restrictions via an AJAX request.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 2.5.9
Fixcomposer require moodle/moodle:^2.5.9
Packagist/moodle/moodle
Introduced in: 2.6.0Fixed in: 2.6.6
Fixcomposer require moodle/moodle:^2.6.6
Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.3
Fixcomposer require moodle/moodle:^2.7.3

References