Moodle cross-site scripting (XSS) vulnerability
Impact
Cross-site scripting (XSS) vulnerability in the quiz_question_tostring function in mod/quiz/editlib.php in Moodle through 2.3.11, 2.4.x before 2.4.9, 2.5.x before 2.5.5, and 2.6.x before 2.6.2 allows remote authenticated users to inject arbitrary web script or HTML via a quiz question.
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.4.9Ecosystem versions | 2.4.9 |
| From 2.5.0 before 2.5.5Ecosystem versions | 2.5.5 |
| From 2.6.0 before 2.6.2Ecosystem versions | 2.6.2 |
Version evidence: OSV · GHSA-75c6-xqwr-v2r9
View original version evidence (25 explicit versions)
Original source description
Cross-site scripting (XSS) vulnerability in the quiz_question_tostring function in mod/quiz/editlib.php in Moodle through 2.3.11, 2.4.x before 2.4.9, 2.5.x before 2.5.5, and 2.6.x before 2.6.2 allows remote authenticated users to inject arbitrary web script or HTML via a quiz question.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2014-2571
- Patch github.com/moodle/moodle/commit/217d839ded7026ed1b1280e1c296bc80a4036023
- Patch github.com/moodle/moodle/commit/5da73345fdd46cef912b229b2cfae2a26e36efd8
- Patch github.com/moodle/moodle/commit/7051f3a8828665f4fab37c8db91322fec85a64db
- Patch github.com/moodle/moodle/commit/fd4b7f57399bed85db0d4066ba12c2633ce87ba3
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php
- Source reference git.moodle.org/gw
- Security advisory openwall.com/lists/oss-security/2014/03/17/1