CSRF in Moodle
CVE-2022-45149
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.
Vulnerability class: CSRF (Cross-Site Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.004, 38.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Moodle
- Fedoraproject Fedora — versions 35, 36, 37
- Moodle — versions Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (jev770/badmoodle-scan). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi
- moodle.org/mod/forum/discuss.php
- git.moodle.org/gw
- FEDORA-2022-f7fdcb1820 (vendor-advisory)
- FEDORA-2022-cb7084ae1c (vendor-advisory)
- FEDORA-2022-74a9c8e95f (vendor-advisory)