Miggo Logo

CVE-2021-36397: Moodle has Incorrect Default Permissions

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.63187%
Published
3/7/2023
Updated
3/13/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
moodle/moodlecomposer>= 3.11.0-beta, < 3.11.13.11.1
moodle/moodlecomposer>= 3.10.0-beta, < 3.10.53.10.5
moodle/moodlecomposer< 3.9.83.9.8

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from insufficient capability checks in message deletion via web services. The advisory explicitly mentions the messaging web service (MSA-21-0025) and references MDL-71917. Moodle's message deletion web service endpoint is typically implemented in core_message_external::delete_message, which would require capability checks to prevent cross-user deletions. The lack of these checks in vulnerable versions aligns with the CWE-276 description of incorrect permission validations.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In Moo*l*, insu**i*i*nt **p**ility ****ks m**nt m*ss*** **l*tions w*r* not limit** to t** *urr*nt us*r.

Reasoning

T** vuln*r**ility st*ms *rom insu**i*i*nt **p**ility ****ks in m*ss*** **l*tion vi* w** s*rvi**s. T** **visory *xpli*itly m*ntions t** m*ss**in* w** s*rvi** (MS*-**-****) *n* r***r*n**s M*L-*****. Moo*l*'s m*ss*** **l*tion w** s*rvi** *n*point is typ
CVE-2021-36397: Moodle Msg Deletion Auth Bypass | Miggo