(CVE-2023-4198) Dolibarr ERP CRM (<= 17.0.3) Improper Access Control
The Dolibarr ERP CRM application had an improper access control flaw in its ajaxcompanies.php endpoint. An unauthorised user could read a database table containing sensitive third-party customer information.
starlabs.sg
Published on starlabs.sg
Dolibarr ERP CRM is a web-based software that provides management for the target organization’s activities, such as contacts, suppliers, invoices, orders, stocks, agenda, etc. It is an open-source software suite designed for small, medium or large companies, foundations and freelancers.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ajaxcompanies.php endpoint lacked an authorisation check, so it returned database records to any user who could reach it.
Impact
An unauthorised user could read a database table holding sensitive third-party customer information, a confidentiality breach only.
What the attacker needed
Access to the ajaxcompanies.php endpoint
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Access control is the part of a program that decides who is allowed to see or do what. Here, a web address inside the software did not check whether the person asking was allowed to see the data, so someone who should not have access could read private customer records. This is like a filing cabinet with a lock on the front door but an open side window.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.