VDB
Sign up
MEDIUM4.3

GHSA-44xp-wj24-9xxj

Moodle allows attackers to delete files

Quick fix

GHSA-44xp-wj24-9xxj — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.7.10

Details

The wiki component in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 does not consider the mod/wiki:managefiles capability before authorizing file management, which allows remote authenticated users to delete arbitrary files by using a manage-files button in a text editor.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.10
Fixcomposer require moodle/moodle:^2.7.10
Packagist/moodle/moodle
Introduced in: 2.8.0Fixed in: 2.8.8
Fixcomposer require moodle/moodle:^2.8.8
Packagist/moodle/moodle
Introduced in: 2.9.0Fixed in: 2.9.2
Fixcomposer require moodle/moodle:^2.9.2

References