Authentication / Logout Does Not Invalidate Session Token
Logout does not invalidate session token is a vulnerability in authentication security systems of Web and API applications. It occurs when a website does not properly invalidate the token issued to a user upon logging out. This vulnerability is classified as CWE-613 and is described in the OWASP Testing Guide. If this vulnerability is present, attackers have a window of opportunity to access the user's data or impersonate that user.
The risk of this vulnerability is high, as it allows attackers to access sensitive data without authorization. This can lead to financial losses, reputational damage, and other types of harm.
The best way to mitigate this vulnerability is to ensure that tokens are properly invalidated upon logout. This can be done by setting a timeout period for tokens and refreshing them regularly. Additionally, the application should have a mechanism for revoking tokens in the event of suspicious activity or a user's manual logout.