Miggo Logo

CVE-2022-46170:
CodeIgniter4 Potential Session Handlers Vulnerability

8.6

CVSS Score
3.1

Basic Information

EPSS Score
0.68799%
Published
12/22/2022
Updated
1/29/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
codeigniter4/frameworkcomposer< 4.2.114.2.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from session handlers not including the session cookie name in storage keys. The commit adds sessionCookieName as a prefix to session IDs in database queries (DatabaseHandler) and key prefixes (Memcached/Redis). The original vulnerable functions handled session data without this namespacing, allowing session ID collisions between different cookies. The high confidence comes from direct correlation between the patch changes and the vulnerability description, with explicit modifications to these functions in the provided diffs.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t W**n *n *ppli**tion us*s (*) multipl* s*ssion *ooki*s (*.*., on* *or us*r p***s *n* on* *or **min p***s) *n* (*) * s*ssion **n*l*r is s*t to `**t***s***n*l*r`, `M*m********n*l*r`, or `R**is**n*l*r`, t**n i* *n *tt**k*r **ts on* s*ssion *o

Reasoning

T** vuln*r**ility st*mm** *rom s*ssion **n*l*rs not in*lu*in* t** s*ssion *ooki* n*m* in stor*** k*ys. T** *ommit ***s `s*ssion*ooki*N*m*` *s * pr**ix to s*ssion I*s in **t***s* qu*ri*s (`**t***s***n*l*r`) *n* k*y pr**ix*s (`M*m******/R**is`). T** or