Miggo Logo

CVE-2023-38491: Cross-site scripting (XSS) from MIME type auto-detection of uploaded files

5.7

CVSS Score
3.1

Basic Information

EPSS Score
0.36278%
Published
7/28/2023
Updated
11/5/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
getkirby/cmscomposer< 3.5.8.33.5.8.3
getkirby/cmscomposer>= 3.6.0, < 3.6.6.33.6.6.3
getkirby/cmscomposer>= 3.7.0, < 3.7.5.23.7.5.2
getkirby/cmscomposer>= 3.8.0, < 3.8.4.13.8.4.1
getkirby/cmscomposer>= 3.9.0, < 3.9.63.9.6

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly states the issue was in Kirby\Http\Response::file(). The commit diff shows this method was modified to add a text/plain fallback and nosniff header. Before the patch, when handling files with unknown extensions, the MIME type detection would fail (returning null), potentially allowing browsers to interpret content as HTML. This matches the XSS attack vector described where .xyz files with scripts could execute when served with incorrect MIME types.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### TL;*R T*is vuln*r**ility *****ts *ll Kir*y sit*s t**t mi**t **v* pot*nti*l *tt**k*rs in t** *roup o* *ut**nti**t** P*n*l us*rs or t**t *llow *xt*rn*l visitors to uplo** *n *r*itr*ry *il* to t** *ont*nt *ol**r. Your Kir*y sit*s *r* *not* *****t*

Reasoning

T** vuln*r**ility **s*ription *xpli*itly st*t*s t** issu* w*s in `Kir*y\*ttp\R*spons*::*il*()`. T** *ommit *i** s*ows t*is m*t*o* w*s mo*i*i** to *** * t*xt/pl*in **ll***k *n* nosni** *****r. ***or* t** p*t**, w**n **n*lin* *il*s wit* unknown *xt*nsi