CVE-2024-25718

In the Samly package before 1.4.0 for Elixir, Samly.State.Store.get_assertion/3 can return an expired session, which interferes with access control because…

Critical · published February 11, 2024

CVSS v3.1
9.1
EPSS
1%
Percentile
51.1
In the wild
Unconfirmed
What it is

🚨 A cached session might just be your worst enemy! In the Samly package for Elixir, the system can mistakenly trust an expired session, opening the door to serious access control issues. 🔥 Think of this like a hotel that continues to let guests use their room key long after checkout time. Guests can still waltz in, even if their stay is officially over, causing chaos in the hotel! An attacker could exploit this vulnerability to gain unauthorized access, as they can use expired session tokens to bypass security measures. This could lead to data leaks, unauthorized actions, or even complete system compromise, putting sensitive information at severe risk!

Put simply

Think of this like a hotel that continues to let guests use their room key long after checkout time. Guests can still waltz in, even if their stay is officially over, causing chaos in the hotel! This vulnerability arises because the Samly.State.Store.get_assertion/3 function can return an expired session due to caching issues, meaning that even after a session expires, the system doesn't realize it and continues to grant access. Samly.AuthHandler relies on this cached session, failing to refresh it appropriately, leading to potential security breaches.

What to do

An attacker could exploit this vulnerability to gain unauthorized access, as they can use expired session tokens to bypass security measures. This could lead to data leaks, unauthorized actions, or even complete system compromise, putting sensitive information at severe risk! Make sure to upgrade to version 1.4.0 or later of the Samly package immediately. Additionally, review your session management practices and implement a proper mechanism to invalidate sessions after they've expired. Regularly audit access controls to ensure they are functioning as intended. You've got this! With these steps, you'll be a security hero in no time! 🦸‍♂️✨

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00664 · 51.1th percentile
Published
2024-02-11T00:00Z
EPSS history
Timeline
  • 11 FEB 00:00Z
    In the Samly package before 1.4.0 for Elixir, Samly.State.Store.get_assertion/3 can return an expired session, which interferes with access control because…
    cvelistv5