moodle/moodle · Security
Moodle HTTP authorization header is preserved between "emulated redirects"
- GHSA ID
- GHSA-p2cj-86v4-7782
- CVE ID
- CVE-2024-38275
- Severity
- medium
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v4
- 5.3 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Description
The cURL wrapper in Moodle retained the original request headers when following redirects, so HTTP authorization header information could be unintentionally sent in requests to redirect URLs.
CWEs
- CWE-226 · Sensitive Information in Resource Not Removed Before Reuse
- CWE-459 · Incomplete Cleanup
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-38275 ↗
- https://moodle.org/mod/forum/discuss.php?d=459500 ↗
- https://github.com/moodle/moodle/commit/0df3c5837a592e6663c4d531ff6a1f776bc2f785 ↗
- https://github.com/moodle/moodle/commit/3e38c84315a7991ce5ef5f241f5e873b5ca24f01 ↗
- https://github.com/moodle/moodle/commit/836b2c23a210317d130017d77bb64e3b510869a9 ↗
- https://github.com/moodle/moodle/commit/f7988538b2208c55f2c40ce4f0815901dc88049b ↗
- https://github.com/advisories/GHSA-p2cj-86v4-7782 ↗