VDB
Sign up
MEDIUM

GHSA-p5j7-26wj-423j

Moodle allows discovery of an author's username

Quick fix

GHSA-p5j7-26wj-423j — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.5.8

Details

The forum_print_latest_discussions function in mod/forum/lib.php in Moodle through 2.4.11, 2.5.x before 2.5.8, 2.6.x before 2.6.5, and 2.7.x before 2.7.2 allows remote authenticated users to bypass the individual answer-posting requirement without the mod/forum:viewqandawithoutposting capability, and discover an author's username, by leveraging the student role and visiting a Q&A forum.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 2.5.8
Fixcomposer require moodle/moodle:^2.5.8
Packagist/moodle/moodle
Introduced in: 2.6.0Fixed in: 2.6.5
Fixcomposer require moodle/moodle:^2.6.5
Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.2
Fixcomposer require moodle/moodle:^2.7.2

References