CVE-2018-1135:
Moodle Portfolio forum caller class allows a user to download any file
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56728%
CWE
Published
5/14/2022
Updated
4/23/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 3.1, < 3.1.12 | 3.1.12 |
moodle/moodle | composer | >= 3.2, < 3.2.9 | 3.2.9 |
moodle/moodle | composer | >= 3.3, < 3.3.6 | 3.3.6 |
moodle/moodle | composer | >= 3.4, < 3.4.3 | 3.4.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper authorization checks in the forum portfolio export functionality. The portfolio_caller class handles file references when exporting forum posts but didn't properly validate if the user had permission to access each referenced file. The get_sha1 function's hash generation and prepare_package's file bundling process would be natural points where file references are processed without adequate permission checks, allowing URL parameter manipulation to access arbitrary files. These functions are core to the portfolio export mechanism and align with the described attack vector of modifying download URLs after post export.