CVE-2023-4395: Cockpit Cross-site Scripting vulnerability
8.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29965%
CWE
Published
8/17/2023
Updated
11/7/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| cockpit-hq/cockpit | composer | <= 2.6.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The patch changes two critical aspects: 1) Uses tmp_name for mime detection instead of user-controlled filename 2) Uses parse_url to safely extract extensions. The original code's pathinfo($_file, PATHINFO_EXTENSION) was vulnerable to manipulation via crafted filenames. By combining improper extension validation with potential unsanitized display of filenames in the UI, stored XSS becomes possible when malicious files are listed in the assets manager.