CVE-2019-14315: SunHater KCFinder cross-site scripting (XSS) vulnerability in upload.php
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.4103%
CWE
Published
5/24/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| sunhater/kcfinder | composer | <= 3.20-test2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of the CKEditorFuncNum parameter in upload.php. Analysis of the GitHub issue #180 and PR #186 shows the XSS occurs because:
- The $_GET['CKEditorFuncNum'] parameter is stored without sanitization in uploader.php
- This value is later used in a JavaScript context in the response generation
- The fix involved adding htmlentities() and character filtering for this parameter
- The vulnerable code path starts in the uploader class constructor where the parameter is first processed, making this the root vulnerable function.