Repository navigation
v0.29.3
Closes the account routes a stolen session cookie could use and the app does not. Self-hosted copies should update. There is no migration in this release.
Security
- A stolen cookie could delete an account without its password. Deleting an account asks for the password only where there is one, and Better Auth's
/unlink-accountremoved a password on a recent session alone. On an account that also signs in with GitHub or a provider, a cookie under a day old could do both. The route is now closed. (#234) - A stolen cookie could try passwords.
/verify-passwordand/change-passwordtook one from any session. The app has no use for either, and both are closed. (#234) - Other routes that any session could call and the app has no use for are closed:
/update-user,/list-sessions,/list-accounts,/get-access-token,/refresh-tokenand/account-info. An account keeps none of a provider's tokens, so the token routes had nothing to give. (#234)
Changed
- These routes now answer 404, for anyone who called them by hand. The app has no page for any of them, and changing a password still goes through a reset. (#234)