CVE Vulnerabilities

CVE-2022-25896

Session Fixation

Published: Jul 01, 2022 | Modified: Nov 21, 2024
CVSS 3.x
4.8
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS 2.x
5.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:N
RedHat/V2
RedHat/V3
4.8 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

This affects the package passport before 0.6.0. When a user logs in or logs out, the session is regenerated instead of being closed.

Weakness

Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.

Affected Software

NameVendorStart VersionEnd Version
PassportPassport_project*0.6.0 (excluding)
PassportjsUbuntubionic*
PassportjsUbuntufocal*
PassportjsUbuntuimpish*
PassportjsUbuntukinetic*
PassportjsUbuntuupstream*

Extended Description

Such a scenario is commonly observed when:

In the generic exploit of session fixation vulnerabilities, an attacker creates a new session on a web application and records the associated session identifier. The attacker then causes the victim to associate, and possibly authenticate, against the server using that session identifier, giving the attacker access to the user’s account through the active session.

Potential Mitigations

References