VDB
Sign up
MEDIUM5.4

GHSA-8v23-w4w5-w83c

Cross-Site Request Forgery in Moodle

Quick fix

GHSA-8v23-w4w5-w83c — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^3.9.18

Details

A vulnerability was found in Moodle which exists due to insufficient validation of the HTTP request origin in course redirect URL. A user's CSRF token was unnecessarily included in the URL when being redirected to a course they have just restored. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website. This flaw allows an attacker to perform cross-site request forgery attacks.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 3.9.0Fixed in: 3.9.18
Fixcomposer require moodle/moodle:^3.9.18
Packagist/moodle/moodle
Introduced in: 3.11.0Fixed in: 3.11.11
Fixcomposer require moodle/moodle:^3.11.11
Packagist/moodle/moodle
Introduced in: 4.0.0Fixed in: 4.0.5
Fixcomposer require moodle/moodle:^4.0.5

References