VDB
Sign up
MEDIUM

GHSA-jcrj-gmr6-p5j8

Moodle Allows Modification of Constants

Quick fix

GHSA-jcrj-gmr6-p5j8 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^1.9.14

Details

The `MoodleQuickForm` class in the Forms Library in `lib/formslib.php` in Moodle 1.9.x before 1.9.14, 2.0.x before 2.0.5, and 2.1.x before 2.1.2 does not recognize Forms API `setConstant` operations, which allows remote attackers to submit unexpected form content by modifying the values of constant fields.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 1.9.14
Fixcomposer require moodle/moodle:^1.9.14
Packagist/moodle/moodle
Introduced in: 2.0Fixed in: 2.0.5
Fixcomposer require moodle/moodle:^2.0.5
Packagist/moodle/moodle
Introduced in: 2.1Fixed in: 2.1.2
Fixcomposer require moodle/moodle:^2.1.2

References