Miggo Logo

CVE-2020-14443: Dolibarr SQL injection vulnerability in accountancy/customer/card.php

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.52453%
Published
5/24/2022
Updated
4/24/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
dolibarr/dolibarrcomposer< 11.0.511.0.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper input validation in multiple files. The patch adds 'int' type casting to GETPOST calls for 'id' and 'codeventil' parameters. The original vulnerable code used GETPOST without type validation, allowing attackers to inject malicious SQL through these parameters. This pattern is repeated across multiple affected files (customer/card.php, expensereport/card.php, etc.), but the primary vulnerability described in CVE-2020-14443 specifically references the 'id' parameter in accountancy/customer/card.php. The high confidence comes from the explicit patch pattern and CVE description alignment.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* SQL inj**tion vuln*r**ility in ***ount*n*y/*ustom*r/**r*.p*p in *oli**rr **.*.* *n* **low *llows r*mot* *ut**nti**t** us*rs to *x**ut* *r*itr*ry SQL *omm*n*s vi* t** i* p*r*m*t*r.

Reasoning

T** vuln*r**ility st*ms *rom improp*r input v*li**tion in multipl* *il*s. T** p*t** ***s 'int' typ* **stin* to `**TPOST` **lls *or 'i*' *n* '*o**v*ntil' p*r*m*t*rs. T** ori*in*l vuln*r**l* *o** us** `**TPOST` wit*out typ* v*li**tion, *llowin* *tt**k*