VDB
Sign up
LOW

GHSA-vrf6-q7qj-69v5

Moodle allows attackers to upload files containing JavaScript

Quick fix

GHSA-vrf6-q7qj-69v5 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.6.6

Details

webservice/upload.php in Moodle 2.6.x before 2.6.6 and 2.7.x before 2.7.3 does not ensure that a file upload is for a private or draft area, which allows remote authenticated users to upload files containing JavaScript, and consequently conduct cross-site scripting (XSS) attacks, by specifying the profile-picture area.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.6.0Fixed in: 2.6.6
Fixcomposer require moodle/moodle:^2.6.6
Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.3
Fixcomposer require moodle/moodle:^2.7.3

References