CVE-2018-16808: Dolibarr Stored Cross-site Scripting in expensereport/card.php
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50018%
CWE
Published
5/14/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dolibarr/dolibarr | composer | <= 7.0.0 | 7.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from inadequate input sanitization in functions
designed to prevent code injection. Both functions
use blacklist-based regex checks (looking for patterns like 'select.+from') rather than context-aware output encoding. The advisory explicitly shows these functions
were bypassed via HTTP
parameter fragmentation and encoding techniques, allowing XSS payloads in comments/notes parameters. The functions'
presence in main.inc.php
indicates they were meant to provide global protection, but their regex-based approach created a systemic vulnerability.