Miggo Logo

GHSA-2867-6rrm-38gr: Laravel Cookie serialization vulnerability

N/A

CVSS Score

Basic Information

CVE ID
-
EPSS Score
-
Published
5/15/2024
Updated
5/15/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
illuminate/cookiecomposer>= 5.5.0, < 5.6.305.6.30

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from cookie decryption combined with unserialization. The EncryptCookies middleware's decryptCookie method called the encrypter with serialization enabled (via static::$serialize=true), making it vulnerable to PHP object injection attacks if the APP_KEY was exposed. The patch in 5.6.30 disabled serialization by default (static::$serialize=false), which addressed the CWE-502 vulnerability by removing unsafe deserialization of client-provided cookies.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

L*r*v*l *.*.** is * s**urity r*l**s* o* L*r*v*l *n* is r**omm*n*** *s *n imm**i*t* up*r*** *or *ll us*rs. L*r*v*l *.*.** *lso *ont*ins * *r**kin* ***n** to *ooki* *n*ryption *n* s*ri*liz*tion lo*i*. R***r to [l*r*v*l **visory](*ttps://l*r*v*l.*om/*o*

Reasoning

T** vuln*r**ility st*ms *rom *ooki* ***ryption *om*in** wit* uns*ri*liz*tion. T** `*n*rypt*ooki*s` mi**l*w*r*'s `***rypt*ooki*` m*t*o* **ll** t** *n*rypt*r wit* s*ri*liz*tion *n**l** (vi* `st*ti*::$s*ri*liz*=tru*`), m*kin* it vuln*r**l* to `P*P` o*j*