Moodle does not check for the moodle/course:viewhiddencourses capability
Impact
enrol/index.php in Moodle 2.6.x before 2.6.3 does not check for the moodle/course:viewhiddencourses capability before listing hidden courses, which allows remote attackers to obtain sensitive name and summary information about these courses by leveraging the guest role and visiting a crafted URL.
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.6.0 before 2.6.3Ecosystem versions | 2.6.3 |
Version evidence: OSV · GHSA-c3vx-v4x8-x894
View original version evidence (3 explicit versions)
Original source description
enrol/index.php in Moodle 2.6.x before 2.6.3 does not check for the moodle/course:viewhiddencourses capability before listing hidden courses, which allows remote attackers to obtain sensitive name and summary information about these courses by leveraging the guest role and visiting a crafted URL.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2014-0217
- Patch github.com/moodle/moodle/commit/eaea796e70f6630494d3772684604ab6e907f4ac
- Patch github.com/moodle/moodle/commit/fcf199e7a13e453bfe3855c6946e8357fcbdef92
- 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/05/19/1