Arbitrary Code Execution in Fat-Free Framework
Summary
CVE-2020-5203: Fat-Free Framework arbitrary code execution. Affects bcosca/fatfree versions < 3.7.2. Fixed in 3.7.2. 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
Fat-Free Framework is a lightweight PHP web framework that provides a range of features for developing web applications. It is known for its simplicity, speed, and flexibility. The framework allows developers to build applications using various input sources, including user-controlled input such as $_REQUEST, $_GET, or $_POST. However, in version 3.7.1 of the framework, there is a vulnerability that can lead to arbitrary code execution if user-controlled input is passed to the framework's Clear method.
Vulnerability Detail
The vulnerability in Fat-Free Framework 3.7.1 arises when developers pass user-controlled input to the Clear method. This can allow attackers to execute arbitrary code on the server. The impact of this vulnerability can be severe, as it grants unauthorized access to the server and potentially allows attackers to manipulate or steal sensitive data. The vulnerability is classified as critical with a CVSS score of 9.8.
How To Fix
Minimum fixed version
3.7.2
This is the first release that contains the fix.
composer require bcosca/fatfree:3.7.2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If upgrading to version 3.7.2 is not immediately possible, developers can implement input validation and sanitization to mitigate the risk of arbitrary code execution. It is important to carefully validate and sanitize user-controlled input before passing it to any framework methods or functions.
Conclusion
The arbitrary code execution vulnerability in Fat-Free Framework 3.7.1 can have severe consequences, allowing attackers to execute arbitrary code on the server. It is crucial to upgrade to version 3.7.2 or implement input validation and sanitization to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for bcosca/fatfree →
FAQ
Fat-Free Framework is a lightweight PHP web framework known for its simplicity, speed, and flexibility. It provides various features for developing web applications.
The vulnerability allows attackers to execute arbitrary code on the server, potentially leading to unauthorized access, data manipulation, or data theft.
To fix this vulnerability, upgrade to version 3.7.2 of Fat-Free Framework. Ensure that your application's dependencies are updated to use the patched version.
If immediate upgrade is not possible, implement input validation and sanitization to mitigate the risk. Validate and sanitize user-controlled input before passing it to any framework methods or functions.
Yes, the CVSS score for this vulnerability is 9.8, indicating its critical severity.