Advisories

better-auth before 1.7.16 Session Revocation Bypass via Secondary Storage and Cookie Cache

Go back
Severity
low
Date
Affecting
  • better-auth >= 0.8.1-beta.5, < 1.7.16

  • better-auth >= 1.8.0-beta.0, < 1.8.0-beta.5

  • better-auth >= 1.6.25, < 1.7.16

  • better-auth >= 1.8.0-beta.0, < 1.8.0-beta.5

CWE
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CVSS
2.3
CVSS V4 Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Credit
kumama-nui, 5255fgh, ebadfd
Description
better-auth from 0.8.1-beta.5 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5, and @better-auth/passkey from 1.6.25 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5, let revoked sessions stay valid because secondary storage session lists are updated non-atomically and some routes trust cookie-cached sessions. An attacker holding a valid session can evade bulk revocation or bans, or use a revoked cached session to register a passkey or create a lasting session.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.