CVE-2023-5227: phpMyFAQ allows unrestricted file types in image field
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53607%
CWE
Published
9/30/2023
Updated
11/6/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| thorsten/phpmyfaq | composer | < 3.1.18 | 3.1.18 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient file type validation in the image upload process. The patch added a new isValidMimeType() check and modified the upload() method, indicating the original implementation in upload() only performed basic image validation via getimagesize(). This function can be tricked by files with valid image headers but malicious content, making MIME type validation essential. The pre-patch upload() function's lack of proper content-type validation directly enabled the unrestricted file upload vulnerability.