CVE-2022-0930: Cross-site Scripting in microweber
4.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63653%
CWE
Published
3/13/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
microweber/microweber | composer | < 1.2.12 | 1.2.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from using a blacklist (is_dangerous_file) instead of a whitelist approach. The patch replaced this with is_allowed_file which uses a strict allowlist. The original is_dangerous_file in Files.php was insufficient as it only blocked known dangerous extensions, leaving gaps for executable content in allowed formats. This allowed attackers to bypass upload restrictions and store XSS payloads through files like malicious SVGs.