CVE-2015-3174: Moodle does not set the RISK_XSS bit for graders
3.5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45329%
CWE
Published
5/13/2022
Updated
1/26/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
AV:N/AC:M/Au:S/C:N/I:P/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | < 2.6.11 | 2.6.11 |
moodle/moodle | composer | >= 2.7.0, < 2.7.8 | 2.7.8 |
moodle/moodle | composer | >= 2.8.0, < 2.8.6 | 2.8.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the missing RISK_XSS declaration in the quiz grading capability. Moodle uses riskbitmask flags to determine when to sanitize user input. The patch explicitly adds RISK_XSS to 'mod/quiz:grade' in access.php, confirming this was the vulnerable configuration. The capability governs manual grading interactions where XSS payloads could be injected via feedback fields.