Festify Secure Session Plugin Patches Issue Allowing Unlimited Session Renewal
CVE-2024-31999
What is CVE-2024-31999?
The Fastify Secure Session library, designed to create a secure stateless cookie session, has a vulnerability related to the session removal process. When a session is deleted, it is merely marked for deletion, allowing an attacker, if they gain access to the session cookie, to exploit this flaw and retain session access indefinitely. This occurs because the library relies on the client-side encrypted cookie for session management, without properly invalidating the session on the server side. While version 7.3.0 includes a patch to address this issue, users are recommended to incorporate a 'last update' field within session data to flag outdated sessions as expired, enhancing the security of their applications.
Affected Version(s)
fastify-secure-session < 7.3.0
