### [CVE-2012-10059](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-10059) ![](https://img.shields.io/static/v1?label=Product&message=ERP%2FCRM&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=*%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-78%20Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20an%20OS%20Command%20('OS%20Command%20Injection')&color=brightgreen) ### Description Dolibarr ERP/CRM versions <= 3.1.1 and <= 3.2.0 contain a post-authenticated OS command injection vulnerability in its database backup feature. The export.php script fails to sanitize the sql_compat parameter, allowing authenticated users to inject arbitrary system commands, resulting in remote code execution on the server. ### POC #### Reference - https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/dolibarr_cmd_exec.rb - https://seclists.org/fulldisclosure/2012/Apr/78 - https://www.exploit-db.com/exploits/18724 - https://www.exploit-db.com/exploits/18725 - https://www.vulncheck.com/advisories/dolibarr-erp-crm-post-auth-os-command-injection #### Github No PoCs found on GitHub currently.