Description
A flaw was found in moodle versions 3.5 to 3.5.2, 3.4 to 3.4.5, 3.3 to 3.3.8, 3.1 to 3.1.14 and earlier. The login form is not protected by a token to prevent login cross-site request forgery. Fixed versions include 3.6, 3.5.3, 3.4.6, 3.3.9 and 3.1.15.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| [UNKNOWN] | moodle | 3.6, 3.5.3, 3.4.6, 3.3.9, 3.1.15 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
danielthatcher/moodle-login-csrf ★ 7 · Apr 4, 2019
Scripts for exploiting MSA-18-0020 (CVE-2018-16854) and MSA-19-0004 (CVE-2019-3847)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 3.1, < 3.1.15 | 3.1.15 | GHSA-xj5f-qv37-r9jc |
| Packagist | moodle/moodle | >= 3.3, < 3.3.9 | 3.3.9 | GHSA-xj5f-qv37-r9jc |
| Packagist | moodle/moodle | >= 3.4, < 3.4.6 | 3.4.6 | GHSA-xj5f-qv37-r9jc |
| Packagist | moodle/moodle | >= 3.5, < 3.5.3 | 3.5.3 | GHSA-xj5f-qv37-r9jc |