CVE-2021-4050: Cross site scripting in remdex/livehelperchat
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54761%
CWE
Published
12/10/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
remdex/livehelperchat | composer | <= 2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper sanitization of user-uploaded SVG files. The commit 0ce1dd2 introduced SVG sanitization using enshrined/svg-sanitize, indicating these functions previously lacked proper input neutralization. Both handle_file_upload methods process file uploads and set file extensions but originally didn't sanitize SVG content. Attackers could upload malicious SVGs containing script tags that would execute when rendered, leading to stored XSS. The patch adds cleanSVG() calls to these workflows, confirming these were the vulnerable points.