silverstripe/framework's URL parameters `isDev` and `isTest` unguarded
The advisory, in context
The URL parameters isDev and isTest are accessible to unauthenticated users who access a SilverStripe website or application. This allows unauthorised users to expose information that is usually hidden on production environments such as verbose errors (including backtraces) and other debugging tools only available to sites running in "dev mode". Core functionality does not expose user data through these methods. Depending on your website configuration, community modules might have added more specific functionality which can be used to either access or alter user data.
We have fixed the usage of isDev and isTest in SilverStripe 4.x, and removed the URL parameters in the next major release of SilverStripe.
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 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.0rc1 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.0rc1"
},
{
"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/d935140a9528a3a42323b51d84fb2bcd3da065a7
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-005-1.yaml
- https://github.com/silverstripe/silverstripe-framework
- https://www.silverstripe.org/download/security-releases/ss-2018-005