Moodle allows attackers to modify "Exclude grade" settings
The advisory, in context
The grade-reporting feature in Singleview (aka Single View) in Moodle 2.8.x before 2.8.11, 2.9.x before 2.9.5, and 3.0.x before 3.0.3 does not consider the moodle/grade:manage capability, which allows remote authenticated users to modify "Exclude grade" settings by leveraging the Non-Editing Instructor role.
Affected 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.
From 2.8.0 before 2.8.11
Fixed in 2.8.11
11 explicitly affected versions
v2.8.0, v2.8.1, v2.8.10, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.8.0"
},
{
"fixed": "2.8.11"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v2.8.0",
"v2.8.1",
"v2.8.10",
"v2.8.2",
"v2.8.3",
"v2.8.4",
"v2.8.5",
"v2.8.6",
"v2.8.7",
"v2.8.8",
"v2.8.9"
]
}From 2.9.0 before 2.9.5
Fixed in 2.9.5
5 explicitly affected versions
v2.9.0, v2.9.1, v2.9.2, v2.9.3, v2.9.4
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.9.0"
},
{
"fixed": "2.9.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v2.9.0",
"v2.9.1",
"v2.9.2",
"v2.9.3",
"v2.9.4"
]
}From 3.0.0 before 3.0.3
Fixed in 3.0.3
3 explicitly affected versions
v3.0.0, v3.0.1, v3.0.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v3.0.0",
"v3.0.1",
"v3.0.2"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2016-2155
- https://github.com/moodle/moodle/commit/3328dc32a75d6aa4bc92865fa236dc6d52dcb7bf
- https://github.com/moodle/moodle/commit/5208032b23b7999d7048a3da7a4b70c038d93506
- https://github.com/moodle/moodle/commit/71beedee8c82c378ed10a0569c8b19ec641df9e3
- https://github.com/moodle/moodle/commit/ad67b7eeea4abf194eb432d5958e9a7032ee2c25
- https://github.com/moodle/moodle/commit/ae66ed23b6ae8000efd4e1f612697892c9795c65
- https://github.com/moodle/moodle/commit/b74d0f8404651d9ad0d97fd7eb58a94079342eb3
- https://github.com/moodle/moodle/commit/c7f7b18adecb4a80c4f3defee31e72e591133693
- https://github.com/moodle/moodle
- https://moodle.org/mod/forum/discuss.php?d=330177
- https://web.archive.org/web/20160424224349/http://www.securitytracker.com/id/1035333
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-52378
- http://www.openwall.com/lists/oss-security/2016/03/21/1