CVE-2024-31999
Last modified
CVE-2024-31999 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. @festify/secure-session creates a secure stateless cookie session for Fastify. At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. EPSS estimates a 0.62% chance of exploitation in the next 30 days.
Description
@festify/secure-session creates a secure stateless cookie session for Fastify. At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. After that, the session on the server side is destroyed. When an encrypted cookie with matching session name is provided with subsequent requests, it will decrypt the ciphertext to get the data. The plugin then creates a new session with the data in the ciphertext. Thus theoretically the web instance is still accessing the data from a server-side session, but technically that session is generated solely from a user provided cookie (which is assumed to be non-craftable because it is encrypted with a secret key not known to the user). The issue exists in the session removal process. In the delete function of the code, when the session is deleted, it is marked for deletion. However, if an attacker could gain access to the cookie, they could keep using it forever. Version 7.3.0 contains a patch for the issue. As a workaround, one may include a "last update" field in the session, and treat "old sessions" as expired.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-31999?
How severe is CVE-2024-31999?
How do I fix CVE-2024-31999?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-31993Mealie is a self hosted recipe manager and meal planner. Pri…4.5
- CVE-2024-31994Mealie is a self hosted recipe manager and meal planner. Pri…6.5
- CVE-2024-31995`@digitalbazaar/zcap` provides JavaScript reference implemen…4.3
- CVE-2024-31996XWiki Platform is a generic wiki platform. Starting in versi…9.8
- CVE-2024-31997XWiki Platform is a generic wiki platform. Prior to versions…8.8
- CVE-2024-31998Combodo iTop is a simple, web based IT Service Management to…8.8
- CVE-2024-3200The wpForo Forum plugin for WordPress is vulnerable to SQL I…6.5
- CVE-2024-32000matrix-appservice-irc is a Node.js IRC bridge for the Matrix…4.3
- CVE-2024-32001SpiceDB is a graph database purpose-built for storing and ev…4.3
- CVE-2024-32002Git is a revision control system. Prior to versions 2.45.1, …9
- CVE-2024-32003wn-dusk-plugin (Dusk plugin) is a plugin which integrates La…8.8
- CVE-2024-32004Git is a revision control system. Prior to versions 2.45.1, …7.8
Are you affected by CVE-2024-31999?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
