0

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
  • What happens if you restart your server? With the reboot command?
    – Nate
    Commented Apr 29, 2020 at 19:29

1 Answer 1

0

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).

Testing for Server-Side Session Termination

2
  • 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?
    – Rup
    Commented Mar 4, 2021 at 14:58
  • But if you meant to report this as a bug you want trac.
    – Rup
    Commented Mar 4, 2021 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.