CVE-2021-20282: Moodle Bypass email verification secret when confirming account registration
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53219%
CWE
Published
5/24/2022
Updated
4/23/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | >= 3.5, < 3.5.17 | 3.5.17 |
| moodle/moodle | composer | >= 3.8, < 3.8.8 | 3.8.8 |
| moodle/moodle | composer | >= 3.9, < 3.9.5 | 3.9.5 |
| moodle/moodle | composer | >= 3.10, < 3.10.2 | 3.10.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers around improper authorization (CWE-863) in email verification. Moodle's account confirmation process typically involves verifying a secret token sent via email. The core_user::confirm_user function in user/lib.php is responsible for handling this verification. The vulnerability suggests this function did not adequately validate the secret parameter against stored values, potentially allowing empty/arbitrary values or parameter manipulation. This aligns with the pattern where confirmation endpoints might accept requests without proper secret validation. While exact code isn't available, this function's role in user confirmation and the CWE classification make it the most probable candidate.