Moodle allows attackers to bypass file-management restrictions
Impact
files/externallib.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not consider the moodle/user:manageownfiles capability before approving a private-file upload, which allows remote authenticated users to bypass intended file-management restrictions by using web services to perform uploads after this capability has been revoked.
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.6.11Ecosystem versions | 2.6.11 |
| From 2.7.0 before 2.7.8Ecosystem versions | 2.7.8 |
| From 2.8.0 before 2.8.6Ecosystem versions | 2.8.6 |
Version evidence: OSV · GHSA-622h-cjgg-5mx6
View original version evidence (60 explicit versions)
Original source description
files/externallib.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not consider the moodle/user:manageownfiles capability before approving a private-file upload, which allows remote authenticated users to bypass intended file-management restrictions by using web services to perform uploads after this capability has been revoked.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2015-3181
- Patch github.com/moodle/moodle/commit/350397da93c557f577e7d62e7fc3e233792ad171
- Patch github.com/moodle/moodle/commit/4b6b64685affa66784fd238c1bbc1eb0651492a0
- Patch github.com/moodle/moodle/commit/57d9a750e3da6708dba13513e9b05e84a895ad9f
- Patch github.com/moodle/moodle/commit/8e8ee7530427a10e409386657484e9fd5effc438
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php
- Security advisory web.archive.org/web/20200228054133/http://www.securityfocus.com/bid/74728
- Security advisory web.archive.org/web/20201030042703/http://www.securitytracker.com/id/1032358
- Source reference git.moodle.org/gw
- Security advisory openwall.com/lists/oss-security/2015/05/18/1