ADVISORIES

GitHub Advisory Database

GHSA-7wmp-2xmx-g6h8

Moodle authorization headers preserved between "emulated redirects"

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.

Affected packages

EcosystemPackageAffected versions
Packagistmoodle/moodle
From 4.4.0 before 4.4.2 (fixed in 4.4.2)
Packagistmoodle/moodle
From 4.3.0 before 4.3.6 (fixed in 4.3.6)
Packagistmoodle/moodle
From 4.2.0 before 4.2.9 (fixed in 4.2.9)
Packagistmoodle/moodle
All versions before 4.1.12 (fixed in 4.1.12)

References