CVE-2012-1226
Description
Multiple directory traversal vulnerabilities in Dolibarr CMS 3.2.0 Alpha allow remote attackers to read arbitrary files and possibly execute arbitrary code via a .. (dot dot) in the (1) file parameter to document.php or (2) backtopage parameter in a create action to comm/action/fiche.php.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
✚ Propose a mitigation on Community → Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Dolibarr ERP/CRM 3.2 Alpha - Multiple Directory Traversal Vulnerabilities
source: https://www.securityfocus.com/bid/52113/info
Dolibarr is prone to multiple directory-traversal vulnerabilities because it fails to sufficiently sanitize user-supplied input.
Exploiting the issues can allow an attacker to obtain sensitive information that could aid in further attacks.
Dolibarr 3.2.0 Alpha is vulnerable; other versions may also be affected.
http://www.example.com/document.php?modulepart=project&file=../[FILE INCLUDE VULNERABILITY!]
Dolibarr ERP/CRM 3.2.0 < Alpha - File Inclusion
Title:
======
Dolibarr CMS v3.2.0 Alpha - File Include Vulnerabilities
Date:
=====
2012-02-07
References:
===========
http://www.vulnerability-lab.com/get_content.php?id=428
VL-ID:
=====
428
Introduction:
=============
Dolibarr ERP & CRM is a modern software to manage your company or foundation activity (contacts, suppliers,
invoices, orders, stocks, agenda, ...). It s an opensource free software designed for small and medium
companies, foundations and freelances. You can install, use and distribute it as a standalone application
or as a web application (on mutualized or dedicated server, or on SaaS or Cloud solutions) and use it with
any devices (desktop, smartphone, tablet).
(Copy of the Vendor Homepage: http://www.dolibarr.org/)
Abstract:
=========
Vulnerability-Lab researcher discovered a multiple File Include Vulnerabilities on Dolibarrs CMS v3.2.0 Alpha.
Report-Timeline:
================
2011-02-08: Public or Non-Public Disclosure
Status:
========
Published
Exploitation-Technique:
=======================
Remote
Severity:
=========
Critical
Details:
========
Multiple File Include Vulnerabilities are detected on Dolibarrs Content Management System v3.2.0 Alpha.
The vulnerability allows an attacker (remote) or local low privileged user account to request local web-server
or system files. Successful exploitation of the vulnerability results in dbms & application compromise.
Vulnerable Module(s):
[+] ?modulepart=project&file=
[+] ?action=create&actioncode=AC_RDV&contactid=1&socid=1&backtopage=
Picture(s):
../1.png
../2.png
Proof of Concept:
=================
The vulnerabilities can be exploited by remote attackers or local low privileged user accounts. For demonstration or reproduce ...
http://server/document.php?modulepart=project&file=../[FILE INCLUDE VULNERABILITY!]
http://server/comm/action/fiche.php?action=create&actioncode=AC_RDV&contactid=1&socid=1&backtopage=../common/[FILE INCLUDE VULNERABILITY!]
Risk:
=====
The security riks of the file include vulnerabilities are estimated as high(+).
Credits:
========
Vulnerability Research Laboratory - Benjamin Kunz Mejri & Ucha Gobejishvili (longrifle0x)
Disclaimer:
===========
The information provided in this advisory is provided as it is without any warranty. Vulnerability-Lab disclaims all warranties,
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-
Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business
profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some
states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation
may not apply. Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability-
Lab. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of
other media, are reserved by Vulnerability-Lab or its suppliers.
Copyright � 2011|Vulnerability-Lab
--
Website: www.vulnerability-lab.com ; vuln-lab.com or vuln-db.com
Contact: admin@vulnerability-lab.com or support@vulnerability-lab.com
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| dolibarr | dolibarr_erp\/crm | 3.2.0 | |
References
- http://archives.neohapsis.com/archives/bugtraq/2012-02/0168.html
- http://www.exploit-db.com/exploits/18480
- http://www.securityfocus.com/archive/1/521583
- http://www.vulnerability-lab.com/get_content.php?id=428
- https://exchange.xforce.ibmcloud.com/vulnerabilities/73136
- https://github.com/Dolibarr/dolibarr/commit/5381986e50dd6055f2b3b63281eaacffa0449da2
- https://github.com/Dolibarr/dolibarr/commit/8f9b9987ffb42cfbe907fe31ded3001bfc1b3417
- http://archives.neohapsis.com/archives/bugtraq/2012-02/0168.html
- http://www.exploit-db.com/exploits/18480
- http://www.securityfocus.com/archive/1/521583
- http://www.vulnerability-lab.com/get_content.php?id=428
- https://exchange.xforce.ibmcloud.com/vulnerabilities/73136
- https://github.com/Dolibarr/dolibarr/commit/5381986e50dd6055f2b3b63281eaacffa0449da2
- https://github.com/Dolibarr/dolibarr/commit/8f9b9987ffb42cfbe907fe31ded3001bfc1b3417
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.