Miggo Logo

CVE-2017-9839: Dolibarr SQL injection via type parameter in product/stats/card.php

8.8

CVSS Score
3.0

Basic Information

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

Technical Details

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

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability is explicitly tied to product/stats/card.php's handling of the 'type' parameter. Multiple sources (CVE, GHSA, Wizlynx) confirm SQL injection via this parameter. While the exact function name isn't specified in advisories, the card.php page handler is the entry point where user-controlled 'type' parameter processing occurs. The vulnerability pattern matches unsafe direct interpolation of HTTP parameters into SQL queries, a common SQL injection vector. The high confidence comes from multiple independent confirmations of the vulnerable file and parameter combination in pre-5.0.4 versions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*oli**rr *RP/*RM is *****t** *y SQL inj**tion in v*rsions ***or* *.*.* vi* pro*u*t/st*ts/**r*.p*p (typ* p*r*m*t*r).

Reasoning

T** vuln*r**ility is *xpli*itly ti** to `pro*u*t/st*ts/**r*.p*p`'s **n*lin* o* t** 'typ*' p*r*m*t*r. Multipl* sour**s (*V*, **S*, Wizlynx) *on*irm SQL inj**tion vi* t*is p*r*m*t*r. W*il* t** *x**t *un*tion n*m* isn't sp**i*i** in **visori*s, t** `**r