CVE-2024-27917: Shopware's session is persistent in Cache for 404 pages
Impact
The Symfony Session Handler, pop's the Session Cookie and assign it to the Response. Since Shopware 6.5.8.0 the 404 pages, are cached, to improve the performance of 404 pages. So the cached Response, contains a Session Cookie when the Browser accessing the 404 page, has no cookies yet. The Symfony Session Handler is in use, when no explicit Session configuration has been done. When Redis is in use for Sessions using the PHP Redis extension, this exploiting code is not used.
Patches Update to Shopware version 6.5.8.7
Workarounds Using Redis for Sessions, as this does not trigger the exploit code. Example configuration for Redis
ini php.ini session.savehandler = redis session.savepath = "tcp://127.0.0.1:6379"
Consequences
As an guest browser session has been cached on a 404 page, every missing image or directly reaching a 404 page will logout the customer or clear his cart.
Other sources
Shopware is an open commerce platform based on Symfony Framework and Vue. The Symfony Session Handler pops the Session Cookie and assigns it to the Response. Since Shopware 6.5.8.0, the 404 pages are cached to improve the performance of 404 pages. So the cached Response which contains a Session Cookie when the Browser accessing the 404 page, has no cookies yet. The Symfony Session Handler is in use, when no explicit Session configuration has been done. When Redis is in use for Sessions using the PHP Redis extension, this exploiting code is not used. Shopware version 6.5.8.7 contains a patch for this issue. As a workaround, use Redis for Sessions, as this does not trigger the exploit code.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-27917?
CVE-2024-27917 has a high severity rating due to its impact on session security in the affected Shopware versions.
How do I fix CVE-2024-27917?
To fix CVE-2024-27917, upgrade to Shopware version 6.5.8.7 or later.
Which versions of Shopware are affected by CVE-2024-27917?
CVE-2024-27917 affects Shopware versions 6.5.8.0 to 6.5.8.6.
What is the impact of CVE-2024-27917?
The impact of CVE-2024-27917 is that a session cookie can be exposed via cached 404 pages, risking user session hijacking.
Is CVE-2024-27917 a remote code execution vulnerability?
No, CVE-2024-27917 does not involve remote code execution but rather exposes session data through caching.