GHSA-fjqg-w8g6-hhq8 BIT-dolibarr-2021-25956 CVE-2021-25956
Dolibarr vulnerable to Improper Authentication and Improper Access Control
- Severity
- 7.2 / 10
- High · CVSS 3.1
- Exploit chance (EPSS)
- 0.94%
- Chance of exploitation in the next 30 days. Higher than 60.80% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Fix
14.0.0- Upgrade dolibarr/dolibarr to this version or later
Description
In Dolibarr application, v3.3.beta1_20121221 to v13.0.2 have Modify access for admin level users to change other user’s details but fails to validate already existing “Login” name, while renaming the user Login. This leads to complete account takeover of the victim user. This happens since the password gets overwritten for the victim user having a similar login name.
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| dolibarr/dolibarr | >= 3.3.beta1, < 14.0.0 |
14.0.0 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
dolibarr/dolibarr Packagist → 14.0.0
- composer
composer require dolibarr/dolibarr:^14.0.0
Severity breakdown
CVSS 3.1 7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-284: Improper Access Control
The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
How to prevent it
- Architecture and Design, Operation: Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
- Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
CWE-287: Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
How to prevent it
- Architecture and Design: Use an authentication framework or library such as the OWASP ESAPI Authentication feature.
References
Advisories
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-v5fq-cf5m-vwv7 Dolibarr has SQL Injection in societe/class/societe.class.php via localtax1_value parameter | High | Also affects dolibarr/dolibarr |
| GHSA-7fg5-vc77-69fp Dolibarr ERP CRM is vulnerable to Improper Authorization through its Leave Request REST API | Medium | Also affects dolibarr/dolibarr |
| GHSA-hxmh-2xc4-c894 Dolibarr ERP CRM contains a remote code evaluation vulnerability | Critical | Also affects dolibarr/dolibarr |
| GHSA-jggh-5rmh-r6h5 Dolibarr has Insufficient Verification of Data Authenticity | Low | Also affects dolibarr/dolibarr |
| GHSA-rvwr-q5hj-wq7g Dolibarr has an Injection issue | Medium | Also affects dolibarr/dolibarr |
| GHSA-j2g9-rprv-hrhc Dolibarr user with permission to edit PHP content can bypass filtering to restrict dangerous PHP functions | High | Also affects dolibarr/dolibarr |
| GHSA-676v-wh57-p375 Dolibarr Allows Code Injection through its Website Module | High | Also affects dolibarr/dolibarr |
| GHSA-w5j3-8fcr-h87w Dolibarr: OS Command Injection (RCE) via MAIN_ODT_AS_PDF configuration | Critical | Also affects dolibarr/dolibarr |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor