If the database is wiped but the app secret is not changed, logged-in users before the wipe may be able to access new accounts made with the ID they used to have #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Flask-login handles sessions with signed tokens, rather than by storing session data in the database. This has the drawback that, if a user is signed in, their token will still give access to their user ID even after a database wipe. This can be exploited under very specific circumstances. If:
Awith ID 'n' is logged in (i.e. has a session token)usersdatabase table is wipedB, ends up with user IDnThen
Acan accessB's account.To fix this, i need to write a proper session handler for flask-login that uses database-backed session IDs that can actually be revoked.