Skip to content
OpenAdvisories
Medium · 6.5 Public exploit CVE-2018-16854 EUVD-2022-5805GHSA-xj5f-qv37-r9jc

Moodle Login CSRF vulnerability in login form

Published Nov 26, 2018 · Updated Aug 5, 2024 · Assigned by redhat

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

VendorProductAffectedFixed
[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.

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References