CVE-2021-36399: Moodle Cross-site Scripting vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.70573%
CWE
Published
3/7/2023
Updated
3/13/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 3.11.0-beta, < 3.11.1 | 3.11.1 |
moodle/moodle | composer | >= 3.10.0-beta, < 3.10.5 | 3.10.5 |
moodle/moodle | composer | < 3.9.8 | 3.9.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper sanitization of ID numbers in quiz override screens. Moodle's quiz override functionality handles user/group overrides, and the ID number (user-supplied field) was displayed without adequate escaping. The 'quiz_override_row' function would be responsible for generating table rows in override interfaces, making it the most likely location where raw ID numbers were rendered. The vulnerability type (stored XSS) and affected component (quiz overrides) strongly correlate with this rendering function. While exact code isn't available, Moodle's architecture patterns and the vulnerability description indicate this as the primary candidate.