VDB
Sign up
MEDIUM

GHSA-c3vx-v4x8-x894

Moodle does not check for the moodle/course:viewhiddencourses capability

Quick fix

GHSA-c3vx-v4x8-x894 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.6.3

Details

enrol/index.php in Moodle 2.6.x before 2.6.3 does not check for the moodle/course:viewhiddencourses capability before listing hidden courses, which allows remote attackers to obtain sensitive name and summary information about these courses by leveraging the guest role and visiting a crafted URL.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.6.0Fixed in: 2.6.3
Fixcomposer require moodle/moodle:^2.6.3

References