CVE-2020-14209: Dolibarr Unrestricted Upload of File with Dangerous Type
Summary
CVE-2020-14209: Dolibarr Unrestricted Upload of File with Dangerous Type. Affects dolibarr/dolibarr versions < 11.0.5. Fixed in 11.0.5. 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
Dolibarr is an open-source ERP and CRM software package that provides various functionalities for managing business processes. It is widely used for its flexibility, ease of use, and extensive features. However, Dolibarr versions prior to 11.0.5 are vulnerable to an unrestricted file upload issue that allows low-privilege users to upload files of dangerous types, potentially leading to arbitrary code execution. This vulnerability poses a significant risk to the security and integrity of the affected systems.
Vulnerability Detail
The vulnerability in Dolibarr arises from its lack of proper file type validation during file uploads. Attackers can exploit this flaw by uploading files with dangerous extensions such as .pht and .phar. Additionally, an uploaded .htaccess file can be used to reconfigure access control, enabling the execution of files with the .noexe extension as PHP code, bypassing the protection mechanism. This can result in arbitrary code execution, allowing attackers to gain unauthorized access, manipulate data, or perform other malicious activities on the affected system.
How To Fix
Minimum fixed version
11.0.5
This is the first release that contains the fix.
composer require dolibarr/dolibarr:11.0.5
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can restrict file uploads to only allow specific file types that are considered safe. This can be achieved by modifying the server configuration or implementing additional validation checks in the application code. However, it is crucial to note that workarounds may not provide complete protection and should be considered temporary measures until the system can be upgraded to a secure version.
Conclusion
The Dolibarr Unrestricted Upload of File with Dangerous Type vulnerability (CVE-2020-14209) poses a significant security risk to systems running vulnerable versions of Dolibarr. Upgrading to version 11.0.5 or later is strongly advised to address this issue and ensure the security and integrity of the affected systems. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for dolibarr/dolibarr →
FAQ
Dolibarr is an open-source ERP and CRM software package used for managing business processes.
The vulnerability allows low-privilege users to upload files of dangerous types, potentially leading to arbitrary code execution and unauthorized access to the affected system.
To fix this vulnerability, it is recommended to upgrade Dolibarr to version 11.0.5 or later, which includes the necessary security patches.
As a temporary workaround, users can restrict file uploads to safe file types or implement additional validation checks. However, upgrading to a secure version is the recommended solution.
At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is crucial to address the issue promptly to mitigate the risk.
Related vulnerabilities
Recent vulnerabilities recorded for dolibarr/dolibarr.