CVE-2014-4672: Yii PHP Framework arbitrary PHP scripts execution
Summary
CVE-2014-4672: Yii PHP Framework arbitrary PHP scripts execution. Affects yiisoft/yii versions >= 1.1.14, < 1.1.15. Fixed in 1.1.15. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Yii PHP Framework is a high-performance PHP framework for developing web applications. It provides a set of tools and features to simplify the development process and enhance security. The framework includes various components, such as CDetailView, which is a widget used to display details of a model in a tabular format. However, in version 1.1.14 of Yii PHP Framework, there is a vulnerability that allows remote attackers to execute arbitrary PHP scripts by exploiting vectors related to the value property of the CDetailView widget.
Vulnerability Detail
The vulnerability in Yii PHP Framework 1.1.14 allows remote attackers to execute arbitrary PHP scripts. By manipulating the value property of the CDetailView widget, an attacker can inject malicious PHP code that will be executed on the server. This can lead to unauthorized access, data leakage, and potential compromise of the entire system. The vulnerability is classified as CWE-94, which refers to code injection attacks.
How To Fix
Minimum fixed version
1.1.15
This is the first release that contains the fix.
composer require yiisoft/yii:1.1.15
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually validating and sanitizing the input values passed to the CDetailView widget. This can be done by implementing custom input filtering and validation functions to ensure that only safe and expected values are processed. Here is an example of how to implement input validation for the value property:
// Custom input validation function
function validateInput($input) {
// Perform input validation logic here
// Return sanitized input or false if validation fails
}
// Usage in CDetailView widget
$widget->value = validateInput($_POST['value']);
By implementing this workaround, the risk of arbitrary PHP script execution can be reduced until the framework is updated to a secure version.
Conclusion
In conclusion, the Yii PHP Framework version 1.1.14 is vulnerable to arbitrary PHP script execution. To mitigate this vulnerability, it is recommended to upgrade to version 1.1.15 or later. If immediate upgrade is not possible, implementing a temporary workaround by validating and sanitizing input values can reduce the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for yiisoft/yii →
FAQ
Yii PHP Framework is a high-performance PHP framework for developing web applications. It provides a set of tools and features to simplify the development process and enhance security.
This vulnerability allows remote attackers to execute arbitrary PHP scripts on the server. This can lead to unauthorized access, data leakage, and potential compromise of the entire system.
To fix this vulnerability, it is recommended to upgrade to Yii PHP Framework version 1.1.15 or later. This will patch the vulnerability and mitigate the risk of arbitrary PHP script execution.
Yes, if upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually validating and sanitizing the input values passed to the CDetailView widget.
For more information about this vulnerability, you can refer to the GitHub Security Advisory GHSA-74qv-rv53-5wcx.
Related vulnerabilities
Recent vulnerabilities recorded for yiisoft/yii.