silverstripe/framework Privilege Escalation Risk in Member Edit form
The advisory, in context
A member with the permission EDIT_PERMISSIONS and access to the "Security" section is able to re-assign themselves (or another member) to ADMIN level.
CMS Fields for the member are constructed using DirectGroups instead of Groups relation which results in bypassing security logic preventing privilege escalation.
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 3.5.7-rc1 before 3.5.8
Fixed in 3.5.8
2 explicitly affected versions
3.5.7, 3.5.8-rc1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.5.7-rc1"
},
{
"fixed": "3.5.8"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.5.7",
"3.5.8-rc1"
]
}From 3.6.0-rc1 before 3.6.6
Fixed in 3.6.6
12 explicitly affected versions
3.6.0, 3.6.0-rc1, 3.6.1, 3.6.1-alpha2, 3.6.2, 3.6.2-beta1, 3.6.2-beta2, 3.6.3, 3.6.3-rc2, 3.6.4, 3.6.5, 3.6.6-rc1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.6.0-rc1"
},
{
"fixed": "3.6.6"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.6.0",
"3.6.0-rc1",
"3.6.1",
"3.6.1-alpha2",
"3.6.2",
"3.6.2-beta1",
"3.6.2-beta2",
"3.6.3",
"3.6.3-rc2",
"3.6.4",
"3.6.5",
"3.6.6-rc1"
]
}From 4.0.0-rc1 before 4.0.4
Fixed in 4.0.4
8 explicitly affected versions
4.0.0, 4.0.0-rc1, 4.0.0-rc2, 4.0.0-rc3, 4.0.1, 4.0.1-rc1, 4.0.2, 4.0.3
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "4.0.0-rc1"
},
{
"fixed": "4.0.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.0.0",
"4.0.0-rc1",
"4.0.0-rc2",
"4.0.0-rc3",
"4.0.1",
"4.0.1-rc1",
"4.0.2",
"4.0.3"
]
}From 4.1.0-rc1 before 4.1.1
Fixed in 4.1.1
3 explicitly affected versions
4.1.0, 4.1.0-rc1, 4.1.0-rc2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "4.1.0-rc1"
},
{
"fixed": "4.1.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.1.0",
"4.1.0-rc1",
"4.1.0-rc2"
]
}References
- https://github.com/silverstripe/silverstripe-framework/commit/577138882163e4b8782ea043487944d30d88e753
- https://github.com/silverstripe/silverstripe-framework/commit/e409d6f673c49846086b23677aecdc3fde5fc4d5
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-001-1.yaml
- https://github.com/silverstripe/silverstripe-framework
- https://www.silverstripe.org/download/security-releases/ss-2018-001