Moodle allows attackers to obtain manager privileges
Impact
The enrol_meta_sync function in enrol/meta/locallib.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 allows remote authenticated users to obtain manager privileges in opportunistic circumstances by leveraging incorrect role processing during a long-running sync script.
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.10Ecosystem versions | 2.7.10 |
| From 2.8.0 before 2.8.8Ecosystem versions | 2.8.8 |
| From 2.9.0 before 2.9.2Ecosystem versions | 2.9.2 |
Version evidence: OSV · GHSA-454r-4cjv-vc9h
View original version evidence (20 explicit versions)
Original source description
The enrol_meta_sync function in enrol/meta/locallib.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 allows remote authenticated users to obtain manager privileges in opportunistic circumstances by leveraging incorrect role processing during a long-running sync script.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2015-5266
- Patch github.com/moodle/moodle/commit/936facab28d8d8bd03f38da42cb80fafba1a06db
- Patch github.com/moodle/moodle/commit/ab006d43e48add8e5495141d4d750c1531772ca2
- Patch github.com/moodle/moodle/commit/dff6cdc88355f22ebaaf8f00c44a1ad51d272344
- Patch github.com/moodle/moodle/commit/f7fbc80766b72ed1c9915698edd443ee8f6eafbd
- Source reference github.com/moodle/moodle
- Source reference moodle.org/mod/forum/discuss.php
- Security advisory web.archive.org/web/20160323063809/http://www.securitytracker.com/id/1033619
- Source reference git.moodle.org/gw
- Security advisory www.openwall.com/lists/oss-security/2015/09/21/1