-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require Reset logout #29576
Comments
@SniperSister Is there any security reason that a user who logged in for a password reset can't log out anymore until having done the reset? |
@zero-24 Same question to you: Is there any security reason that a user who logged in for a password reset can't log out anymore until having done the reset? |
Based on code review, user can logout, just not when using Logout menu item type in com_users. Must have been an oversight when menu item was added. So the fix should be valid. |
@davichos Do you want to make a pull request with your change? Or do you prefer someone else to do it? |
I'm not aware of any but that feature was initial developed by Michael and IIRC uses an whitelist of pages that are still allowed. I personally would argue that when you logged in and you are required to reset your PR you should change it than. |
I'm with @zero-24 why would you not want to change it. |
So is this a won't fix? |
Looks more like a bug looking at the provided source line (and fix) if I understand it correctly the last entry would mean logout is allowed. |
@richard67 i prefer someone else do it |
Thank you for raising this issue. Joomla 3 is now in security only mode with no further bug fixes or new features. This issue is still relevant for Joomla 4 BUT the fix etc here is not suitable for Joomla 4 |
I created a PR #44520 for this. Please test. Since there is a PR for this problem, I'm closing this one. |
Steps to reproduce the issue
Expected result
The user be able to logout
Actual result
The user can´t logout until reset password
System information (as much as possible)
Joomla Version 3.8+
PHP 7.1 +
PHP 7.2 +
PHP 7.3 +
PHP 7.4 +
Additional comments
I solved the problem editing the file libraries/src/Application/SiteApplication.php
change the line 230 in version 3.9.19
$this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout');
for
$this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout,com_users/user.menulogout');
The text was updated successfully, but these errors were encountered: