Moodle does not properly restrict file access
Impact
The My Home implementation in the block_html_pluginfile function in blocks/html/lib.php in Moodle through 2.3.11, 2.4.x before 2.4.10, 2.5.x before 2.5.6, and 2.6.x before 2.6.3 does not properly restrict file access, which allows remote attackers to obtain sensitive information by visiting an HTML block.
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.10Ecosystem versions | 2.4.10 |
| From 2.5.0 before 2.5.6Ecosystem versions | 2.5.6 |
| From 2.6.0 before 2.6.3Ecosystem versions | 2.6.3 |
Version evidence: OSV · GHSA-8rc7-4qfv-4484
View original version evidence (28 explicit versions)
Original source description
The My Home implementation in the block_html_pluginfile function in blocks/html/lib.php in Moodle through 2.3.11, 2.4.x before 2.4.10, 2.5.x before 2.5.6, and 2.6.x before 2.6.3 does not properly restrict file access, which allows remote attackers to obtain sensitive information by visiting an HTML block.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2014-0216
- Patch github.com/moodle/moodle/commit/40ad22fdd0d9ed569b2ad0ff6ad02814bfa014b8
- Patch github.com/moodle/moodle/commit/568514ee7f7e994f61e7a44356fe89d0dd18c157
- Patch github.com/moodle/moodle/commit/7b9acc77efe06f7be7070032b05c3159e0a6d415
- Patch github.com/moodle/moodle/commit/b04bf988ef47f8fa65dd08ce936ecb774d5d76bd
- 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