MEDIUM
GHSA-622h-cjgg-5mx6
Moodle allows attackers to bypass file-management restrictions
Quick fix
GHSA-622h-cjgg-5mx6 — moodle/moodle: upgrade to the fixed version with the command below.
composer require moodle/moodle:^2.6.11Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-3181[ADVISORY]
- https://github.com/moodle/moodle/commit/350397da93c557f577e7d62e7fc3e233792ad171[WEB]
- https://github.com/moodle/moodle/commit/4b6b64685affa66784fd238c1bbc1eb0651492a0[WEB]
- https://github.com/moodle/moodle/commit/57d9a750e3da6708dba13513e9b05e84a895ad9f[WEB]
- https://github.com/moodle/moodle/commit/8e8ee7530427a10e409386657484e9fd5effc438[WEB]
- https://github.com/moodle/moodle[PACKAGE]
- https://moodle.org/mod/forum/discuss.php?d=313688[WEB]
- https://web.archive.org/web/20200228054133/http://www.securityfocus.com/bid/74728[WEB]
- https://web.archive.org/web/20201030042703/http://www.securitytracker.com/id/1032358[WEB]
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-49994[WEB]
- http://openwall.com/lists/oss-security/2015/05/18/1[WEB]