CVE-2024-5315· dolibarr / dolibarr erp\\/crm· CWE-89
Dolibarr ERP CMS `list.php` - SQL Injection
criticalseverity
9.1CVSS score
34.5%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it
Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection.
Impact
These vulnerabilities could allow a remote attacker to send a specially crafted SQL query to the system and retrieve all the information stored in the database through the parameters viewstatut in /dolibarr/commande/list.php
Fix
Apply the latest security patches and updates from the vendor to address this vulnerability.
How to confirm it
Send: POST /htdocs/index.php?mainmenu=home ; GET /htdocs/commande/list.php?viewstatut=x%27
Positive when: contains in body_2 "You have an error in your SQL syntax" AND contains in header_1 "Set-Cookie: DOLSESSID_" AND contains in body_1 "SuperAdmin"Run it with nuclei: nuclei -id CVE-2024-5315 -u <target>
The full check
id: CVE-2024-5315
info:
name: Dolibarr ERP CMS `list.php` - SQL Injection
author: rootxharsh,iamnoooob,pdresearch
severity: critical
description: |
Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection.
remediation: |
Apply the latest security patches and updates from the vendor to address this vulnerability.
impact: |
These vulnerabilities could allow a remote attacker to send a specially crafted SQL query to the system and retrieve all the information stored in the database through the parameters viewstatut in /dolibarr/commande/list.php
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2024-5315
- https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-dolibarrs-erp-cms
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
cvss-score: 9.1
cve-id: CVE-2024-5315
cwe-id: CWE-89
epss-score: 0.34522
epss-percentile: 0.98431
cpe: cpe:2.3:a:dolibarr:dolibarr_erp\\/crm:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
shodan-query: http.title:"Dolibarr"
product: dolibarr_erp\\/crm
vendor: dolibarr
tags: cve,cve2024,dolibarr,erp,sqli,authenticated,vuln
variables:
username: "{{username}}"
password: "{{password}}"
http:
- raw:
- |
POST /htdocs/index.php?mainmenu=home HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
loginfunction=loginfunction&username={{username}}&password={{password}}
- |
GET /htdocs/commande/list.php?viewstatut=x%27 HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- You have an error in your SQL syntax
- type: word
part: header_1
words:
- 'Set-Cookie: DOLSESSID_'
- type: word
part: body_1
words:
- SuperAdminReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-5315
- https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-dolibarrs-erp-cms
Use this check only on systems you are authorised to test. Where the data comes from