Severity
Medium
Vendor
Cloud Foundry Foundation
Versions Affected
- PHP Buildpack versions prior to v4.3.18
- Cf-release versions prior to v242
Description
The .profile file, which can potentially include environment variables and credentials, is exposed by default in the PHP Buildpack. The PHP buildpack prior to v4.3.18 did not actually allow for execution of the .profile file, so it is unlikely that many applications were using it.
Mitigation
Users of affected versions should apply the following mitigation:
- For existing deployments, upgrade the PHP Buildpack to v4.3.18 or later [1] and restage all applications that use automated buildpack detection.
- Immediately rotate credentials for apps using the PHP buildpack if they were stored in the .profile file.
Credit
Cloud Foundry Buildpacks Team
References
[1] https://github.com/cloudfoundry/php-buildpack/releases
History
2016-09-07: Initial vulnerability report published