Vulnerability · Published Nov 23, 2022 · Assigned by fedora
CVE-2022-45149
Medium 5.4
In plain English
A medium-severity cross-site request forgery in Moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 3.9.18 | GHSA-8v23-w4w5-w83c |
| Packagist | moodle/moodle | 3.11.11 | GHSA-8v23-w4w5-w83c |
| Packagist | moodle/moodle | 4.0.5 | GHSA-8v23-w4w5-w83c |
Affected products (as reported)
Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N