Moodle Arbitrary File Read via Backup Functionality
Impact
The moodle1 backup converter in backup/converter/moodle1/lib.php in Moodle 2.1.x before 2.1.10, 2.2.x before 2.2.7, 2.3.x before 2.3.4, and 2.4.x before 2.4.1 does not properly validate pathnames, which allows remote authenticated users to read arbitrary files by leveraging the backup-restoration feature.
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.4 before 2.4.1Ecosystem versions | 2.4.1 |
| From 2.3 before 2.3.4Ecosystem versions | 2.3.4 |
| From 2.2 before 2.2.7Ecosystem versions | 2.2.7 |
| From 2.1 before 2.1.10Ecosystem versions | 2.1.10 |
Version evidence: OSV · GHSA-cr78-rphw-w73p
View original version evidence (3 explicit versions)
Original source description
The moodle1 backup converter in backup/converter/moodle1/lib.php in Moodle 2.1.x before 2.1.10, 2.2.x before 2.2.7, 2.3.x before 2.3.4, and 2.4.x before 2.4.1 does not properly validate pathnames, which allows remote authenticated users to read arbitrary files by leveraging the backup-restoration feature.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2012-6099
- Patch github.com/moodle/moodle/commit/0ab681d3e7bed2a37430387f9da8504c0b077d10
- Patch github.com/moodle/moodle/commit/7b66137f7bcc84fb5eb07f58fb658b21bf37cc44
- 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/2013/01/21/1