CVE-2024-31503
NoneCVSS
—
EPSS
0.3%
Published
Apr 17, 2024
CISA due date
—
Cloudanix analysis
A flaw in Dolibarr lets attackers trick logged-in users into giving away their login session, allowing full takeover of their accounts and access to company data.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incorrect access control permits an authenticated attacker to exfiltrate session cookies and CSRF tokens from other users through interaction with a malicious web page, enabling full account takeover.
Why it matters to the business
Successful exploitation can result in unauthorized access to sensitive ERP and CRM data, financial records, customer information, and internal workflows, potentially causing data breaches and operational disruption.
How an attack unfolds
An attacker crafts a malicious web page containing code designed to capture session cookies and CSRF tokens, then lures an authenticated Dolibarr user into visiting or interacting with it, after which the stolen credentials are used to hijack the victim's account.
How to fix it
Upgrade Dolibarr to the commit 45d56dffd284f80de1f14466051a2ee14bdd7132 or later; apply vendor patches promptly and enforce strict session management and content security policies as interim controls.
How to confirm the fix worked
Verify the running version is at or beyond commit 45d56dffd284f80de1f14466051a2ee14bdd7132; test by attempting to reproduce cookie exfiltration from a crafted page and confirm that session tokens are no longer leaked.
Typical attack path
- Identify an authenticated Dolibarr user target
- Craft a web page that triggers cookie and token exfiltration when visited
- Deliver the crafted page via phishing or other social engineering
- Capture the victim's session cookies and CSRF tokens upon interaction
- Use the stolen credentials to authenticate as the victim and perform unauthorized actions
How to detect it
Examine web server and application logs for requests originating from unexpected external domains, unusual cookie transmission patterns, or repeated failed CSRF validations; monitor authentication logs for logins from new locations or devices shortly after suspected interactions.
What your security team should do
- Immediately upgrade all instances to the fixed commit 45d56dffd284f80de1f14466051a2ee14bdd7132
- Review and harden session handling and cookie security attributes
- Implement web application firewall rules to block known exfiltration patterns
- Conduct user awareness training on phishing and malicious page interactions
The record
Incorrect access control in Dolibarr ERP CRM versions 19.0.0 and before, allows authenticated attackers to steal victim users' session cookies and CSRF protection tokens via user interaction with a crafted web page, leading to account takeover.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | dolibarr/dolibarr | 0 | No fix |
| Bitnami | dolibarr | 0 | 19.0.1 |
| Ubuntu:16.04:LTS | dolibarr | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | dolibarr | 0 | No fix |
Related vulnerabilities
- CVE-2021-3991 Improper Authorization in dolibarr/dolibarr Also affects dolibarr/dolibarr
- 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-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