CVE-2024-56199:
phpMyFAQ Vulnerable to Stored HTML Injection at FAQ
5.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.3%
CWE
Published
1/2/2025
Updated
1/2/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
phpmyfaq/phpmyfaq | composer | >= 3.2.10, <= 4.0.1 | |
thorsten/phpmyfaq | composer | >= 3.2.10, <= 4.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key failures:
- Input Handling: The FAQ entry submission endpoint (admin/index.php?action=editentry) lacks server-side HTML sanitization when persisting user content. This allows attackers to store malicious payloads.
- Output Rendering: The FAQ display layer directly renders stored content without proper escaping. The PoC demonstrates successful DOM manipulation through unescaped style attributes and HTML elements, confirming insufficient output encoding. While exact function names/paths aren't provided in disclosures, the pattern matches common PHP CMS architectures where admin controllers handle content storage and view templates handle rendering. The high confidence in rendering functions stems from the PoC's visual impact requiring successful DOM injection.