dropbox/samly · Security
Samly access control vulnerability
- GHSA ID
- GHSA-h3rw-77w7-92gf
- CVE ID
- CVE-2024-25718
- Severity
- critical
- Published
- Updated
- CVSS
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CVSS v3
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CVSS v4
- 9.3 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Description
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 Samly.AuthHandler uses a cached session and does not replace it, even after expiry.
CWEs
- CWE-400 · Uncontrolled Resource Consumption
- CWE-613 · Insufficient Session Expiration
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-25718 ↗
- https://github.com/dropbox/samly/pull/13 ↗
- https://github.com/dropbox/samly/pull/13/commits/812b5c3ad076dc9c9334c1a560c8e6470607d1eb ↗
- https://diff.hex.pm/diff/samly/1.3.0..1.4.0 ↗
- https://github.com/dropbox/samly ↗
- https://github.com/handnot2/samly ↗
- https://hex.pm/packages/samly ↗
- https://github.com/dropbox/samly/commit/7637ebeef6c6b88ec2032f5323c32edcebbacbc6 ↗
- https://github.com/advisories/GHSA-h3rw-77w7-92gf ↗