Moodle does not set the RISK_XSS bit for graders
Impact
mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.6.11Ecosystem versions | 2.6.11 |
| From 2.7.0 before 2.7.8Ecosystem versions | 2.7.8 |
| From 2.8.0 before 2.8.6Ecosystem versions | 2.8.6 |
Version evidence: OSV · GHSA-6r7x-6q98-qcqp
View original version evidence (60 explicit versions)
Original source description
mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2015-3174
- Patch github.com/moodle/moodle/commit/10c2b92448873a8479942098a090e7c16b44438d
- Patch github.com/moodle/moodle/commit/1ce4f44df7e793051211841b6a78ac77bd42fc99
- Patch github.com/moodle/moodle/commit/39ae18a2f90fcf392a711dd41f9aa7627f72a762
- Patch github.com/moodle/moodle/commit/e51fdfe0cbab19320f139773d83aacb1ad15eb46
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php
- Security advisory web.archive.org/web/20201030042703/http://www.securitytracker.com/id/1032358
- Source reference git.moodle.org/gw
- Security advisory openwall.com/lists/oss-security/2015/05/18/1
- Security advisory www.securityfocus.com/bid/74719https://web.archive.org/web/20200228054910/http://www.securityfocus.com/bid/74719