VDB
Sign up
MEDIUM4.3

GHSA-r3fc-hx6q-g6cq

Moodle allows attackers to discover student e-mail addresses

Quick fix

GHSA-r3fc-hx6q-g6cq — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.7.13

Details

user/index.php in Moodle through 2.6.11, 2.7.x before 2.7.13, 2.8.x before 2.8.11, 2.9.x before 2.9.5, and 3.0.x before 3.0.3 grants excessive authorization on the basis of the moodle/course:viewhiddenuserfields capability, which allows remote authenticated users to discover student e-mail addresses by leveraging the teacher role and reading a Participants list.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 2.7.13
Fixcomposer require moodle/moodle:^2.7.13
Packagist/moodle/moodle
Introduced in: 2.8.0Fixed in: 2.8.11
Fixcomposer require moodle/moodle:^2.8.11
Packagist/moodle/moodle
Introduced in: 2.9.0Fixed in: 2.9.5
Fixcomposer require moodle/moodle:^2.9.5
Packagist/moodle/moodle
Introduced in: 3.0.0Fixed in: 3.0.3
Fixcomposer require moodle/moodle:^3.0.3

References