VDB
Sign up
MEDIUM4.3

GHSA-cw72-69wq-f9f2

Moodle External function mod_assign_save_submission does not check due dates

Quick fix

GHSA-cw72-69wq-f9f2 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.7.13

Details

The save_submission function in mod/assign/externallib.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 allows remote authenticated users to bypass intended due-date restrictions by leveraging the student role for a web-service request.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.7Fixed in: 2.7.13
Fixcomposer require moodle/moodle:^2.7.13
Packagist/moodle/moodle
Introduced in: 2.8Fixed in: 2.8.11
Fixcomposer require moodle/moodle:^2.8.11
Packagist/moodle/moodle
Introduced in: 2.9Fixed in: 2.9.5
Fixcomposer require moodle/moodle:^2.9.5
Packagist/moodle/moodle
Introduced in: 3.0Fixed in: 3.0.3
Fixcomposer require moodle/moodle:^3.0.3

References