Miggo Logo

CVE-2020-25629: Moodle incorrect access control

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.62461%
Published
5/24/2022
Updated
8/23/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
moodle/moodlecomposer>= 3.9, <= 3.9.13.9.2
moodle/moodlecomposer>= 3.8, <= 3.8.43.8.5
moodle/moodlecomposer>= 3.7, <= 3.7.73.7.8
moodle/moodlecomposer>= 3.5, <= 3.5.133.5.14

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper access control in the 'loginas' functionality. Moodle's user impersonation system allowed users with course-level 'loginas' capability to switch to site administrators because the function did not enforce context boundaries between course roles and system-wide roles. The fix (referenced in MDL-68974) likely added context hierarchy validation to prevent privilege escalation. The core session manager's loginas function is the logical point where this authorization check would occur, making it the most probable vulnerable component.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* vuln*r**ility w*s *oun* in Moo*l* w**r* us*rs wit* "Lo* in *s" **p**ility in * *ours* *ont*xt (typi**lly, *ours* m*n***rs) m*y **in ****ss to som* sit* **ministr*tion **p**iliti*s *y "lo**in* in *s" * Syst*m m*n***r. T*is *****ts *.* to *.*.*, *.*

Reasoning

T** vuln*r**ility st*ms *rom improp*r ****ss *ontrol in t** 'lo*in*s' *un*tion*lity. Moo*l*'s us*r imp*rson*tion syst*m *llow** us*rs wit* *ours*-l*v*l 'lo*in*s' **p**ility to swit** to sit* **ministr*tors ****us* t** *un*tion *i* not *n*or** *ont*xt