Miggo Logo

CVE-2018-1134: Moodle Improper Privilege Management

6.5

CVSS Score
3.0

Basic Information

EPSS Score
0.45759%
Published
5/13/2022
Updated
4/23/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
moodle/moodlecomposer>= 3.1, < 3.1.123.1.12
moodle/moodlecomposer>= 3.2, < 3.2.93.2.9
moodle/moodlecomposer>= 3.3, < 3.3.63.3.6
moodle/moodlecomposer>= 3.4, < 3.4.33.4.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper privilege management in portfolio export functionality. The advisory explicitly references the portfolio assignment caller class (MDL-62210) and describes URL manipulation to access unauthorized files. The prepare_package method is responsible for preparing submission files for portfolio export. If this method fails to validate() whether the requested files belong to the user's submission context, it would enable the described vulnerability. This aligns with the CWE-269 classification and the attack pattern described (modifying download URLs to access unauthorized resources).

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in Moo*l* *.x. Stu**nts w*o su*mitt** *ssi*nm*nts *n* *xport** t**m to port*olios **n *ownlo** *ny stor** Moo*l* *il* *y ***n*in* t** *ownlo** URL.

Reasoning

T** vuln*r**ility st*ms *rom improp*r privil*** m*n***m*nt in port*olio *xport *un*tion*lity. T** **visory *xpli*itly r***r*n**s t** port*olio *ssi*nm*nt **ll*r *l*ss (M*L-*****) *n* **s*ri**s URL m*nipul*tion to ****ss un*ut*oriz** *il*s. T** `pr*p*