VDB
Sign up
MEDIUM6.6

GHSA-62wv-866c-rh86

Moodle does not properly restrict comment capabilities

Quick fix

GHSA-62wv-866c-rh86 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.0.4

Details

comment/lib.php in Moodle 2.0.x before 2.0.4 and 2.1.x before 2.1.1 does not properly restrict comment capabilities, which allows remote attackers to post a comment by leveraging the guest role and operating on a front-page activity.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.0.0Fixed in: 2.0.4
Fixcomposer require moodle/moodle:^2.0.4
Packagist/moodle/moodle
Introduced in: 2.1.0Fixed in: 2.1.1
Fixcomposer require moodle/moodle:^2.1.1

References