Miggo Logo

CVE-2021-40695:
Moodle Exposure of Sensitive Information to an Unauthorized Actor

4.3

CVSS Score
3.1

Basic Information

EPSS Score
0.43048%
Published
9/30/2022
Updated
4/23/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
moodle/moodlecomposer>= 3.11, < 3.11.33.11.3
moodle/moodlecomposer>= 3.10, < 3.10.73.10.7
moodle/moodlecomposer>= 3.9, < 3.9.103.9.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly mentions unauthorized grade disclosure via a quiz web service. Moodle's architecture typically implements web service handlers in external.php files within module directories. The most logical candidate is the quiz grade retrieval web service function that lacked proper release status validation before returning grades. This matches the CWE-200 pattern of missing authorization checks for sensitive data exposure.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

It w*s possi*l* *or * stu**nt to vi*w t**ir quiz *r*** ***or* it *** ***n r*l**s**, usin* * quiz w** s*rvi**.

Reasoning

T** vuln*r**ility **s*ription *xpli*itly m*ntions un*ut*oriz** *r*** *is*losur* vi* * quiz w** s*rvi**. Moo*l*'s *r**it**tur* typi**lly impl*m*nts w** s*rvi** **n*l*rs in `*xt*rn*l.p*p` *il*s wit*in mo*ul* *ir**tori*s. T** most lo*i**l **n*i**t* is t