CVE-2021-3991
Medium · 4.3Improper Authorization in dolibarr/dolibarr
CVSS
4.3
EPSS
0.3%
Published
Nov 15, 2024
CISA due date
—
Cloudanix analysis
Some users inside Dolibarr can view reception records they should not see simply by typing certain web addresses into their browser.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows users with restricted 'Reception' permissions to bypass authorization checks and retrieve detailed reception records by directly accessing specific URLs.
Why it matters to the business
Enables unauthorized internal users to view sensitive business reception data, raising risks of information leakage, operational exposure, and compliance violations across deployments using older Dolibarr versions.
How an attack unfolds
An attacker authenticates with a low-privileged account limited in the Reception section, identifies valid reception identifiers through enumeration or prior knowledge, and issues direct HTTP requests to the detail endpoints to retrieve records that permission checks should have blocked.
How to fix it
Upgrade Dolibarr to version 15.0.0 or later by applying the fix from commit 63cd06394f39d60784d6e6a0ccf4867a71a6568f; after upgrade, review and tighten Reception module permissions for all users.
How to confirm the fix worked
Confirm the running Dolibarr version is 15.0.0 or newer; log in with a restricted Reception account and verify that direct URL access to reception details now returns an authorization error instead of data.
Typical attack path
- Obtain or compromise a Dolibarr account with intentionally restricted Reception module permissions
- Enumerate or predict valid reception record identifiers
- Craft and send direct HTTP GET requests to the reception detail URLs
- Parse and exfiltrate the returned sensitive reception information
How to detect it
Examine web server and Dolibarr application logs for HTTP requests to reception detail endpoints originating from accounts whose session tokens or permission profiles indicate restricted Reception access; correlate timestamps with user activity to identify bypass attempts.
- /reception/card.php?id=
- /reception/document.php
- reception/detail access without module permission grant
What your security team should do
- Prioritize upgrade to the fixed commit or 15.0.0+ within the next maintenance window due to the 706-day exposure window
- Audit all Reception module permission assignments and revoke unnecessary access
- Enable detailed application logging for URL requests to reception endpoints
- Add web application firewall rules to detect anomalous direct access patterns to reception resources
The record
An Improper Authorization vulnerability exists in Dolibarr versions prior to version 15.0.0. A user with restricted permissions in the 'Reception' section is able to access specific reception details via direct URL access, bypassing the intended permission restrictions.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | dolibarr/dolibarr | 0 | 15.0.0 |
| Bitnami | dolibarr | 0 | 20.0.2 |
| Ubuntu:16.04:LTS | dolibarr | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | dolibarr | 0 | No fix |
Related vulnerabilities
- CVE-2024-40137 Dolibarr ERP CRM before 19.0.2-php8.2 was discovered to contain a remote code execution… Also affects dolibarr/dolibarr
- CVE-2024-34051 A Reflected Cross-site scripting (XSS) vulnerability located in… Also affects dolibarr/dolibarr
- CVE-2024-5315 Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection. Also affects dolibarr/dolibarr
- CVE-2024-5314 Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection. Also affects dolibarr/dolibarr
- CVE-2024-31503 Incorrect access control in Dolibarr ERP CRM versions 19.0.0 and before, allows… Also affects dolibarr/dolibarr
- CVE-2024-29477 Lack of sanitization during Installation Process in Dolibarr ERP CRM up to version 19.0.0… Also affects dolibarr/dolibarr
- CVE-2023-38887 File Upload vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote… Also affects dolibarr/dolibarr
- CVE-2023-38888 Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a… Also affects dolibarr/dolibarr