I have a wordpress site , when i logout from client side , then session is still exists while it should be destroy. yet it is exists in site. while i cleared browser session and cookies yet it exixts.
1 Answer
I am conducting a penetration test on a WordPress site and I can observe the same issue. This is typically a low risk vulnerability.
If a user uses a public computer such as in a library, the next user might still be able to somehow retrieve the original cookie before logout and use that to get access to your account.
OWASP explains the problem in their security testing guide
EDIT: So in my case the website did not use the native WordPress logout but some plugin logout for an e-commerce website. I believe the issue lies in the plugin.
When using /wp-login.php?action=logout, all necessary WordPress cookies get cleared. But this might overlook some logout for some plugins.
So to answer the question above, check the logout link used. Is it not wp-login.php?action=logout, then this is not the native WordPress logout and you need to investigate why the website uses another logout function (probably part of a plugin).
-
FWIW I see both the cookie cleared and my session token removed from usermeta when I log out. So as far as I can see it works correctly. What version of WordPress are you testing? What caching is in place in this installation, and is there any chance that it's responsible?– RupCommented Mar 4, 2021 at 14:58
-
reboot
command?