eZ Platform Prevent accepting app.php in URL in Platform.sh
The advisory, in context
The recommended rewrite rules in eZ Platform prevent users from including the front-controller script (normally "app.php") in URLs. This prevents certain vulnerabilities related to caching. However, this is not possible when using eZ Platform Cloud (i.e. running eZ Platform on the Platform.sh cloud service), nor can it be done within the .platform.app.yaml configuration file. Therefore we need to reject such requests in the application itself. This advisory adds the prevention within the front controller script itself.
If you use eZ Platform Cloud / Platform.sh we recommend that you install this security update as soon as possible. It is distributed via Composer as ezsystems/ezplatform 1.7.9.1, and 1.13.5.1, and 2.5.4. This is the commit: https://github.com/ezsystems/ezplatform/commit/34ce86722b36a172e587068fe64a84faa7320cc2
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.5.0 before 2.5.4
Fixed in 2.5.4
4 explicitly affected versions
v2.5.0, v2.5.1, v2.5.2, v2.5.3
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.5.0"
},
{
"fixed": "2.5.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v2.5.0",
"v2.5.1",
"v2.5.2",
"v2.5.3"
]
}From 1.13.0 before 1.13.5.1
Fixed in 1.13.5.1
16 explicitly affected versions
v1.13.0, v1.13.1, v1.13.1-rc1, v1.13.1.1, v1.13.2, v1.13.2-rc1, v1.13.3, v1.13.3-rc1, v1.13.4, v1.13.4-beta1, v1.13.4-rc1, v1.13.4-rc2, v1.13.4.1, v1.13.5, v1.13.5-rc1, v1.13.5-rc2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.13.0"
},
{
"fixed": "1.13.5.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v1.13.0",
"v1.13.1",
"v1.13.1-rc1",
"v1.13.1.1",
"v1.13.2",
"v1.13.2-rc1",
"v1.13.3",
"v1.13.3-rc1",
"v1.13.4",
"v1.13.4-beta1",
"v1.13.4-rc1",
"v1.13.4-rc2",
"v1.13.4.1",
"v1.13.5",
"v1.13.5-rc1",
"v1.13.5-rc2"
]
}From 1.7.0 before 1.7.9.1
Fixed in 1.7.9.1
24 explicitly affected versions
v1.7.0, v1.7.1-rc1, v1.7.2, v1.7.2-rc1, v1.7.2-rc2, v1.7.3, v1.7.3-rc1, v1.7.3-rc2, v1.7.4, v1.7.4-rc1, v1.7.5, v1.7.5-rc1, v1.7.5-rc2, v1.7.6, v1.7.6-rc1, v1.7.7, v1.7.7-rc1, v1.7.7-rc2, v1.7.8, v1.7.8-rc1, v1.7.8-rc2, v1.7.8.1, v1.7.9, v1.7.9-rc1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.7.0"
},
{
"fixed": "1.7.9.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"v1.7.0",
"v1.7.1-rc1",
"v1.7.2",
"v1.7.2-rc1",
"v1.7.2-rc2",
"v1.7.3",
"v1.7.3-rc1",
"v1.7.3-rc2",
"v1.7.4",
"v1.7.4-rc1",
"v1.7.5",
"v1.7.5-rc1",
"v1.7.5-rc2",
"v1.7.6",
"v1.7.6-rc1",
"v1.7.7",
"v1.7.7-rc1",
"v1.7.7-rc2",
"v1.7.8",
"v1.7.8-rc1",
"v1.7.8-rc2",
"v1.7.8.1",
"v1.7.9",
"v1.7.9-rc1"
]
}References
- https://github.com/ezsystems/ezplatform/commit/34ce86722b36a172e587068fe64a84faa7320cc2
- https://github.com/FriendsOfPHP/security-advisories/blob/master/ezsystems/ezplatform/2019-09-03-2.yaml
- https://github.com/ezsystems/ezplatform
- https://share.ez.no/community-project/security-advisories/ezsa-2019-007-prevent-accepting-app.php-in-url-in-platform.sh