Miggo Logo

CVE-2022-0666: CRLF Injection in microweber

7.6

CVSS Score
3.0

Basic Information

EPSS Score
0.95453%
Published
2/19/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
microweber/microwebercomposer< 1.2.111.2.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the redirect method's handling of user-supplied URLs. The original code validated URLs with filter_var(FILTER_VALIDATE_URL) but didn't sanitize CR/LF characters. The patch explicitly adds str_replace calls to remove \r and \n, indicating these characters weren't properly neutralized before. The function's role in processing redirect URLs makes it the injection point for CRLF sequences, which aligns with the CWE-93 description and the commit's security-focused message.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*RL* Inj**tion l***s to St**k Tr*** *xposur* *u* to l**k o* *ilt*rin* *t *ttps://**mo.mi*row***r.or*/ in P**k**ist mi*row***r/mi*row***r prior to *.*.**.

Reasoning

T** vuln*r**ility st*ms *rom t** r**ir**t m*t*o*'s **n*lin* o* us*r-suppli** URLs. T** ori*in*l *o** v*li**t** URLs wit* *ilt*r_v*r(*ILT*R_V*LI**T*_URL) *ut *i*n't s*nitiz* *R/L* ***r**t*rs. T** p*t** *xpli*itly ***s str_r*pl*** **lls to r*mov* \r *n