Moodle cross-site scripting (XSS) vulnerability
Impact
Cross-site scripting (XSS) vulnerability in the user_get_user_details function in user/lib.php in Moodle through 2.6.11, 2.7.x before 2.7.9, 2.8.x before 2.8.7, and 2.9.x before 2.9.1 allows remote attackers to inject arbitrary web script or HTML by leveraging absence of an external_format_text call in a web service.
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 |
|---|---|
| From 2.7.0 before 2.7.9Ecosystem versions | 2.7.9 |
| From 2.8.0 before 2.8.7Ecosystem versions | 2.8.7 |
| From 2.9.0 before 2.9.1Ecosystem versions | 2.9.1 |
Version evidence: OSV · GHSA-f7qm-q26p-6rr2
View original version evidence (17 explicit versions)
Original source description
Cross-site scripting (XSS) vulnerability in the user_get_user_details function in user/lib.php in Moodle through 2.6.11, 2.7.x before 2.7.9, 2.8.x before 2.8.7, and 2.9.x before 2.9.1 allows remote attackers to inject arbitrary web script or HTML by leveraging absence of an external_format_text call in a web service.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2015-3274
- Patch github.com/moodle/moodle/commit/7b15a363201109354bbd6d51a7c70f50dac7b9d8
- Patch github.com/moodle/moodle/commit/a809a8dccea222a31e0828d4f17889035e6d1a36
- Patch github.com/moodle/moodle/commit/e96e66aa16dca5cbcdb1aef0f9499edf86f1404b
- Patch github.com/moodle/moodle/commit/ffe5c784889b3f7b2ba11cf9db881d54904623b7
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php
- Security advisory web.archive.org/web/20150924032214/http://www.securitytracker.com/id/1032877
- Source reference git.moodle.org/gw
- Security advisory openwall.com/lists/oss-security/2015/07/13/2