Miggo Logo

CVE-2024-29179: phpMyFAQ Stored Cross-site Scripting at File Attachments

4.3

CVSS Score
3.1

Basic Information

EPSS Score
0.37834%
Published
3/25/2024
Updated
3/25/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
phpmyfaq/phpmyfaqcomposer= 3.2.53.2.6

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key mechanisms: 1) File storage logic that uses MD5 hashes for filenames/paths without preserving extensions, allowing bypass of .html checks. 2) Content-Type handling that defaults to HTML when no extension exists. The first function enables payload storage and predictable access, while the second enables dangerous content execution. These components are fundamental to the described attack flow of uploading extensionless .html files and having them rendered as active content.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Summ*ry *n *tt**k*r wit* **min privil***s **n uplo** *n *tt***m*nt *ont*inin* JS *o** wit*out *xt*nsion *n* t** *ppli**tion will r*n**r it *s *TML w*i** *llows *or XSS *tt**ks. ### **t*ils W**n *tt***m*nts *r* uplo**** wit*out *n *xt*nsion, t**

Reasoning

T** vuln*r**ility st*ms *rom two k*y m****nisms: *) *il* stor*** lo*i* t**t us*s `M**` **s**s *or *il*n*m*s/p*t*s wit*out pr*s*rvin* *xt*nsions, *llowin* *yp*ss o* `.*tml` ****ks. *) *ont*nt-Typ* **n*lin* t**t ****ults to `*TML` w**n no *xt*nsion *xi