CVE-2015-5265: Moodle allows attackers to delete files
4.3
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53215%
CWE
-
Published
5/13/2022
Updated
1/26/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | >= 2.7.0, < 2.7.10 | 2.7.10 |
| moodle/moodle | composer | >= 2.8.0, < 2.8.8 | 2.8.8 |
| moodle/moodle | composer | >= 2.9.0, < 2.9.2 | 2.9.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from missing capability checks when configuring the text editor's file management options. The commit diff shows the fix added a capability check in mod/wiki/pagelib.php's constructor to conditionally enable the 'enable_filemanagement' option. In vulnerable versions, this check was absent, causing the editor to display the 'managefiles' button regardless of user permissions. The root cause is the insecure initialization of editor options in the page_wiki_edit class constructor.