Miggo Logo

CVE-2024-27917: Shopware's session is persistent in Cache for 404 pages

N/A

CVSS Score

Basic Information

EPSS Score
0.15852%
Published
3/6/2024
Updated
3/6/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
shopware/storefrontcomposer>= 6.5.8.0, < 6.5.8.76.5.8.7
shopware/platformcomposer>= 6.5.8.0, < 6.5.8.76.5.8.7

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from cached 404 responses retaining session cookies. The commit diff shows the fix added session cookie removal logic directly in NotFoundSubscriber::onError. Prior to the patch, this method would cache responses without sanitizing cookies, making it the vulnerable entry point. The session cookie handling by Symfony's AbstractSessionHandler combined with missing cookie cleanup in the caching flow created the exposure.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T** Sym*ony S*ssion **n*l*r, pop's t** S*ssion *ooki* *n* *ssi*n it to t** R*spons*. Sin** S*opw*r* *.*.*.* t** *** p***s, *r* ******, to improv* t** p*r*orm*n** o* *** p***s. So t** ****** R*spons*, *ont*ins * S*ssion *ooki* w**n t** *ro

Reasoning

T** vuln*r**ility st*ms *rom ****** *** r*spons*s r*t*inin* s*ssion *ooki*s. T** *ommit *i** s*ows t** *ix ***** s*ssion *ooki* r*mov*l lo*i* *ir**tly in Not*oun*Su*s*ri**r::on*rror. Prior to t** p*t**, t*is m*t*o* woul* ***** r*spons*s wit*out s*nit