Miggo Logo

CVE-2022-33011: Known vulnerable to account takeover via host header injection attack in v1.3.1

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.37823%
Published
7/9/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
idno/knowncomposer<= 1.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper handling of host headers in URL construction. The detectBaseURL() function uses $_SERVER['SERVER_NAME'] which can be controlled by attackers in certain server configurations. This allows poisoning password reset URLs through manipulated host headers, enabling account takeover. The function's TODO comment ('but don't use HTTP_HOST') indicates awareness of header injection risks but insufficient protection. The blog analysis explicitly identifies this function as the injection point, and the CWE-74 classification matches the injection pattern through unvalidated host header usage.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Known v*.*.* w*s *is*ov*r** to *llow *tt**k*rs to p*r*orm *n ***ount t*k*ov*r vi* * *ost *****r inj**tion *tt**k. T** r*s**r***r r*port in*i**t*s t**t v*rsions *.*.* *n* prior *r* vuln*r**l*. V*rsion *.*.* is t** l*st v*rsion t***** on *it*u* *n* in

Reasoning

T** vuln*r**ility st*ms *rom improp*r **n*lin* o* *ost *****rs in URL *onstru*tion. T** **t**t**s*URL() *un*tion us*s $_S*RV*R['S*RV*R_N*M*'] w*i** **n ** *ontroll** *y *tt**k*rs in **rt*in s*rv*r *on*i*ur*tions. T*is *llows poisonin* p*sswor* r*s*t