Moodle exposes hidden grades to students
Impact
lib/classes/grades_external.php in Moodle 2.7.x before 2.7.3 does not consider the moodle/grade:viewhidden capability before displaying hidden grades, which allows remote authenticated users to obtain sensitive information by leveraging the student role to access the get_grades 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.3Ecosystem versions | 2.7.3 |
Version evidence: OSV · GHSA-59j6-8g7w-prf7
View original version evidence (3 explicit versions)
Original source description
lib/classes/grades_external.php in Moodle 2.7.x before 2.7.3 does not consider the moodle/grade:viewhidden capability before displaying hidden grades, which allows remote authenticated users to obtain sensitive information by leveraging the student role to access the get_grades web service.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2014-7831
- Patch github.com/moodle/moodle/commit/3b8876f5ef2b5cde1e9de2599efd03d02bdaf7d8
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php
- Security advisory web.archive.org/web/20150914064838/http://www.securitytracker.com/id/1031215
- Source reference git.moodle.org/gw
- Security advisory openwall.com/lists/oss-security/2014/11/17/11