CVE-2014-0217:
Moodle does not check for the moodle/course:viewhiddencourses capability
4.3
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51334%
CWE
Published
5/13/2022
Updated
1/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
AV:N/AC:M/Au:N/C:P/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 2.6.0, < 2.6.3 | 2.6.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the absence of a capability check in enrol/index.php
. The patch adds a check using has_capability()
to prevent unauthorized access. The original code lacked this check, making the main script in enrol/index.php
the entry point for the vulnerability. The script directly handles course enrollment page logic, and the missing check allowed guests to view hidden course names and summaries. The commit diff confirms the fix was applied in this file, directly addressing the missing capability check.