Executive brief
Dolibarr is an open-source ERP and CRM platform used to manage business operations including accounting and invoicing. An authenticated attacker with invoice-deletion rights can bypass authorization checks to permanently delete any payment record, allowing them to manipulate financial records by zeroing paid amounts on invoices and removing accounting data. This results in financial data integrity loss and potential fraud footprints.
Technical details
The vulnerability is an improper authorization flaw in the payments REST API delete endpoint (api_paiements.class.php). The vulnerable code fails to check payment-issuance rights before allowing deletion, instead only checking invoice-deletion rights. An authenticated attacker with invoice-deletion permissions can craft API requests to delete arbitrary payment records, bypassing the intended authorization check. The attack requires valid authentication credentials and invoice-deletion role, but no additional user interaction. The fix involves adding the correct permission test for payment deletion in the API endpoint.
Affected products
- Dolibarr Dolibarr before 24.0.0
Timeline
- 2026-08-24: disclosed
- 2026-08-24: patched: Fix committed to repository with test on payment deletion permission in API