Insufficient Session Expiration in heroiclabs/nakama
Reported on
Aug 23rd 2022
Description
The Nakama Console session is not invalidated when the user is deleted.
Proof of Concept
Steps to reproduce:
1. Log in to the Nakama Console as admin and create a user test@user.com
2. In a separate browser or private window log in to the account test@user.com
3. In the admin session, delete the user test@user.com
4. Observe that the test@user.com session is not invalidated and the user can still perform all actions according to their role (for instance if the user has the administrator role they can still create/delete users)
Impact
An old session can be used by an attacker even after the user has been deleted in a different session. The session can be used until it expires or the attacker logs out.
Occurrences
console_user.go L120-L130
Active sessions should be invalidated when the corresponding user is deleted.
References
SECURITY.md
exists
a year ago