#63405 closed defect (bug) (invalid)
Logout when logged in from another browser in 6.8.1
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | trunk |
| Component: | Login and Registration | Keywords: | |
| Focuses: | Cc: |
Description
Since upgrade to WP 6.8.1 we got plenty of complains about being logged out when logging from another browser (as the same user)... This did not happened before.
Reproduction steps:
- Docker compose DB + WP 6.7.2
- Setup new instance
- Upgrade via UI to WP 6.8.1
- Login in from one browser as the user
- Login from another browser as the same user
- Refresh the first browser
- Seeing logged out state
Downgrade to 6.8 fixes the issue.
Attachments (1)
Change History (6)
#1
@
6 months ago
Trying to dig into the changes, could this be somehow related to the recent bcrypt change?
#2
@
6 months ago
- Resolution set to invalid
- Status changed from new to closed
It was related somehow.
While the reproduction works, it seems that it only works once as the password hash is rehashed to bcrypt on first login which also force log out other user sessions.
It shouln't happen in a loop, but together with plugin for bcrypt it creates a loop when WP rehash it and save it while the plugin does the same but without the prefix... so each login rehash the password and force log out all user sessions.
After disabling the plugin the issue is fixed, so closing.
#3
@
6 months ago
- Milestone Awaiting Review deleted
Thanks for the update @repli2dev . Which bcrypt plugin were you using?
#4
@
6 months ago
@johnbillion
I was able to reproduce the issue when the wp-password-bcrypthttps://github.com/roots/wp-password-bcrypt package (mu-plugin) is present. Removing the package resolves the issue. Also the plugin has been archived following the release of WordPress 6.8. https://roots.io/sunsetting-wp-password-bcrypt-with-wordpress-6-8/
#5
@
6 months ago
@johnbillion
Yes I was using the mentioned https://github.com/roots/wp-password-bcrypt plugin too
Starting docker compose yaml