VDB
Sign up
MEDIUM

GHSA-cr78-rphw-w73p

Moodle Arbitrary File Read via Backup Functionality

Quick fix

GHSA-cr78-rphw-w73p — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.4.1

Details

The moodle1 backup converter in `backup/converter/moodle1/lib.php` in Moodle 2.1.x before 2.1.10, 2.2.x before 2.2.7, 2.3.x before 2.3.4, and 2.4.x before 2.4.1 does not properly validate pathnames, which allows remote authenticated users to read arbitrary files by leveraging the backup-restoration feature.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.4Fixed in: 2.4.1
Fixcomposer require moodle/moodle:^2.4.1
Packagist/moodle/moodle
Introduced in: 2.3Fixed in: 2.3.4
Fixcomposer require moodle/moodle:^2.3.4
Packagist/moodle/moodle
Introduced in: 2.2Fixed in: 2.2.7
Fixcomposer require moodle/moodle:^2.2.7
Packagist/moodle/moodle
Introduced in: 2.1Fixed in: 2.1.10
Fixcomposer require moodle/moodle:^2.1.10

References