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.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Link | Tags |
---|---|
https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/dolibarr_cmd_exec.rb | exploit |
https://www.exploit-db.com/exploits/18725 | exploit |
https://www.exploit-db.com/exploits/18724 | exploit |
https://seclists.org/fulldisclosure/2012/Apr/78 | exploit technical description |
https://www.dolibarr.org/ | product |
https://www.vulncheck.com/advisories/dolibarr-erp-crm-post-auth-os-command-injection | third party advisory |