Skip to content

GHSA-j3q4-gmj4-mj95 CVE-2022-3269 PYSEC-2022-290

rdiffweb vulnerable to account access via session fixation

Critical PyPI
Severity
0.0 / 10
Critical · CVSS 4.0
Exploit chance (EPSS)
0.92%
Chance of exploitation in the next 30 days. Higher than 60.17% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-384 Session Fixation
Fix
2.4.7
Upgrade rdiffweb to this version or later

Description

rdiffweb prior to 2.4.7 fails to invalidate session cookies on logout, leading to session fixation and allowing an attacker to access a users account. After logging in and logging out, the application continues to use the preauthentication cookies. The cookies remain the same after closing the browser and after password reset. The same cookies are reassigned for additional user logins which can lead to session fixation. An attacker can gain unauthorized access to the account of users who are using the same browser as long as a single session cookie persists on that browser once the attacker obtains a session cookie through another attack. This issue is patched in version 2.4.7. There are no known workarounds.

Affected versions

PyPI

PackageVulnerableFixed in
rdiffweb
< 2.4.7
2.4.7
rdiffweb
< 2.4.7
2.4.7

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

rdiffweb PyPI → 2.4.7

pip
pip install --upgrade "rdiffweb>=2.4.7"
poetry
poetry add "rdiffweb>=2.4.7"
uv
uv add "rdiffweb>=2.4.7"

Severity breakdown

CVSS 4.0 0.0

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality (vulnerable system)
High
Integrity (vulnerable system)
High
Availability (vulnerable system)
High
Confidentiality (subsequent systems)
None
Integrity (subsequent systems)
None
Availability (subsequent systems)
None

CVSS 3.1 9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Weakness

CWE-384: Session Fixation

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.

How to prevent it
  • Architecture and Design: Invalidate any existing session identifiers prior to authorizing a new user session.
  • Architecture and Design: For platforms such as ASP that do not generate new values for sessionid cookies, utilize a secondary cookie. In this approach, set a secondary cookie on the user's browser to a random value and set a session variable to the same value. If the session variable and the cookie value ever don't match, invalidate the session, and force the user to log on again.
  • Operation: Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-v4gp-hf5j-4566
IKUS Rdiffweb allows an attacker with any valid or stolen access token to act as other users
High Also affects rdiffweb
GHSA-c4rv-2j6x-pq7x
Rdiffweb Allocation of Resources Without Limits or Throttling vulnerability
High Also affects rdiffweb
GHSA-wwrg-2w5j-grvx
RDiffWeb vulnerable to Allocation of Resources Without Limits or Throttling
Medium Also affects rdiffweb
GHSA-wf33-6x33-wcf9
rdiffweb vulnerable to Authentication Bypass by Primary Weakness
High Also affects rdiffweb
GHSA-m8r9-qxx8-mrxp
rdiffweb Improper Access Control vulnerability
Critical Also affects rdiffweb
GHSA-h5wp-jrqc-cwwx
rdiffweb vulnerable to Open Redirect
High Also affects rdiffweb
GHSA-83pm-7v48-5jp4
rdiffweb vulnerable to Special Element Injection
Medium Also affects rdiffweb
GHSA-7q4r-x5qg-mmcp
rdiffweb has no rate limit on resend email feature
Medium Also affects rdiffweb
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor