In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade better-auth to version 1.4.9 or higher.
better-auth is a The most comprehensive authentication library for TypeScript.
Affected versions of this package are vulnerable to Authentication Bypass Using an Alternate Path or Channel in the session.cookieCache component. An attacker can gain unauthorized access to protected application routes by leveraging a session that is cached as valid before all authentication steps, such as two-factor authentication, are completed.
Note:
This is only exploitable if both two-factor authentication and session cookie caching are enabled.
This vulnerability can be mitigated by disabling session.cookieCache when two-factor authentication is in use.