VDB
Sign up
MEDIUM5.3

GHSA-7wmp-2xmx-g6h8

Moodle authorization headers preserved between "emulated redirects"

Quick fix

GHSA-7wmp-2xmx-g6h8 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^4.4.2

Details

A flaw was found in moodle. The cURL wrapper in Moodle strips HTTPAUTH and USERPWD headers during emulated redirects, but retains other original request headers, so HTTP authorization header information could be unintentionally sent in requests to redirect URLs.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 4.4.0Fixed in: 4.4.2
Fixcomposer require moodle/moodle:^4.4.2
Packagist/moodle/moodle
Introduced in: 4.3.0Fixed in: 4.3.6
Fixcomposer require moodle/moodle:^4.3.6
Packagist/moodle/moodle
Introduced in: 4.2.0Fixed in: 4.2.9
Fixcomposer require moodle/moodle:^4.2.9
Packagist/moodle/moodle
Introduced in: 0Fixed in: 4.1.12
Fixcomposer require moodle/moodle:^4.1.12

References