8.1
HIGH
CVE-2023-29019
Fastify Passport Session Fixation Vulnerability
Description

@fastify/passport is a port of passport authentication library for the Fastify ecosystem. Applications using `@fastify/passport` in affected versions for user authentication, in combination with `@fastify/session` as the underlying session management mechanism, are vulnerable to session fixation attacks from network and same-site attackers. fastify applications rely on the `@fastify/passport` library for user authentication. The login and user validation are performed by the `authenticate` function. When executing this function, the `sessionId` is preserved between the pre-login and the authenticated session. Network and same-site attackers can hijack the victim's session by tossing a valid `sessionId` cookie in the victim's browser and waiting for the victim to log in on the website. As a solution, newer versions of `@fastify/passport` regenerate `sessionId` upon login, preventing the attacker-controlled pre-session cookie from being upgraded to an authenticated session. Users are advised to upgrade. There are no known workarounds for this vulnerability.

INFO

Published Date :

April 21, 2023, 11:15 p.m.

Last Modified :

May 4, 2023, 2:43 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.2

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2023-29019 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fastify passport
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-29019.

URL Resource
https://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11 Patch
https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9 Vendor Advisory
https://owasp.org/www-community/attacks/Session_fixation Technical Description

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-29019 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-29019 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    May. 04, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
    Changed Reference Type https://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11 No Types Assigned https://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11 Patch
    Changed Reference Type https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9 No Types Assigned https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9 Vendor Advisory
    Changed Reference Type https://owasp.org/www-community/attacks/Session_fixation No Types Assigned https://owasp.org/www-community/attacks/Session_fixation Technical Description
    Added CWE NIST CWE-384
    Added CPE Configuration OR *cpe:2.3:a:fastify:passport:*:*:*:*:*:node.js:*:* versions up to (excluding) 1.1.0 *cpe:2.3:a:fastify:passport:*:*:*:*:*:node.js:*:* versions from (including) 2.0.0 up to (excluding) 2.3.0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-29019 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.13 }} 0.01%

score

0.48289

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability