No Code Attached Yet bug
avatar morefriendm
morefriendm
20 Sep 2022
  1. Please login to https://discvrmas.periopmedicine.org.au
  2. login with user: testuser password: 12345678
  3. I have already enabled "Require Password Reset" for the above user.

Expected result

The user profile page should be loaded to change the user's password

Actual result

Page redirect logged in home page rather than user profile to change the password

System information (as much as possible)

J4.2.2
PHP 8.0.23
Default Joomla template

Additional comments

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
4.00

avatar morefriendm morefriendm - open - 20 Sep 2022
avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Sep 2022
avatar morefriendm morefriendm - change - 20 Sep 2022
The description was changed
avatar morefriendm morefriendm - edited - 20 Sep 2022
avatar morefriendm morefriendm - change - 20 Sep 2022
The description was changed
avatar morefriendm morefriendm - edited - 20 Sep 2022
avatar chmst
chmst - comment - 21 Sep 2022

confirmed, the user is logged in.
The profile with request for changing the password comes with the next click.
3.10 and 4.0 work as expected.

avatar chmst chmst - change - 21 Sep 2022
Labels Added: bug
avatar chmst chmst - labeled - 21 Sep 2022
avatar alikon
alikon - comment - 21 Sep 2022

confirmed, i would like to ping @nikosdion he can check better than me if we can exclude MFA

avatar nikosdion
nikosdion - comment - 21 Sep 2022

On it. I think I know where the problem lies.

avatar nikosdion
nikosdion - comment - 21 Sep 2022

Looking at how the require password reset works I will say that we MUST check for Multi-factor Authentication before allowing the user to change their password.

Joomla does not use the password reset flow for resetting a password in this case, it gives full and unrestricted(!) access to the user profile edit page. This means that anyone who knows the user's old password can log into the site, see the user's personally identifiable information and even disable, change or add Multi-factor Authentication and WebAuthn Passwordless Authentication methods. That is to say, they can do a complete account takeover.

We use the Requires Password Reset feature when we provide a user with a temporary password which is transmitted over insecure transports (e.g. email, phone, ...) or when we suspect the user's password is compromised. If by doing so we also disable the MFA protection of that user's account we are exposing them to danger!

If there is a legitimate use case where the user has forgotten their password, they don't have access to their MFA Method and we need to convey a temporary password over an insecure transport the correct process would be this:

  • Super User goes into the user's account, Multi-factor Authentication tab and disables MFA with the handy Turn Off button.
  • The Super User then goes to the first tab, enters a temporary password and sets Requires Password Reset to Yes, then clicks on Save & Close.
  • The Super User contacts the user with the temporary password.

As a result I would close this as Won't Fix because the problem is not with MFA but the way Requires Password Reset is implemented. This feature needs to deny the user access to the site, instead redirecting them to the Forgot Your Password page with a message that they are required to go through the password reset process. For that, I'd recommend opening a different issue.

avatar morefriendm
morefriendm - comment - 22 Sep 2022

Thanks @nikosdion.
We are using the "Require password reset" feature, so that when users first login, they need to setup their password and profile details if needed.
At the moment, even if all MFA is disabled, it's not redirecting to the profile edit page.

avatar chmst chmst - change - 23 Oct 2022
Labels Removed: bug
avatar chmst chmst - unlabeled - 23 Oct 2022
avatar ahvink
ahvink - comment - 8 Dec 2022

What's the status on this at the moment ?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38788.

avatar Mika17420
Mika17420 - comment - 16 Dec 2022

Is there a solution to solve this problem punctually?

avatar Mika17420
Mika17420 - comment - 31 Jan 2023

Why this bug is on removed label ?
The problem persists


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38788.
avatar nikosdion
nikosdion - comment - 31 Jan 2023

@Mika17420 Read my comment from September: #38788 (comment)

The original poster did open a new issue (#38806) so someone would fix the way Requires Password Reset works… but it was closed as a duplicate of this issue, even though the body of the issue clearly referenced this issue (therefore my comment).

I would recommend someone opening a ticket with the title "Requires Password Reset does not work with users who have MFA enabled" and the content "The Requires Password Reset feature needs to deny login to the site and ask the user to go through the password reset (instead of trying to redirect them to the password reset page) when MFA is enabled for this user. For the reasoning see #38788 (comment)".

Then, and only then, someone might actually take the 2 minutes it needs to understand the issue and the 10 minutes it takes to fix it…

avatar Hackwar Hackwar - change - 17 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 17 Feb 2023
avatar coolcat-creations
coolcat-creations - comment - 20 Feb 2023

I experienced the same bug in backend. When Password reset is set to yes and the user is using 2FA he is caught in a redirect loop.

avatar nikosdion
nikosdion - comment - 20 Feb 2023

@joomla/joomla-experience-team-jxt I believe this qualifies as a UX issue. Please see my comment from five months ago — read the last paragraph for the proposed solution.

avatar coolcat-creations
coolcat-creations - comment - 20 Feb 2023

I hope I did not misunderstood you, I created the issue like suggested. Thank you

avatar KeesZNL
KeesZNL - comment - 6 Jul 2023

Having just upgraded from 3.10.11 to 4.3.2 I am experiencing the same problem. The user who is required to enter a new password must first click on the welcome page before the form appears where the password can be changed. This issue talks about MFA users. That is not applied in my site.
I am new on github referred by NL Joomla Forum. Where is the best place to report this issue?
Does anyone know an interim solution, because it is impossible to explain to 60 users that member information is visible before the mandatory changed password has been entered.

sorry for my bad English

avatar petervukovic
petervukovic - comment - 29 Nov 2023

This bug still exists in 4.4.4 and presents a serious security risk. Is there any news on resolution?

avatar pl71
pl71 - comment - 21 Mar 2024

Joomla 5.
Brand new test site with test data on Xampp for Windows.
Created new user with Password Reset Required.
Users can log in without a password reset.
In the backend:
mfa

avatar carrieredaniel
carrieredaniel - comment - 9 Sep 2024

Joomla 5, freshly installed two weeks ago:
When a user is asked to reset it's password the "change password" question is not shown.

Behaviour shown: Password change is enforced when trying to log OUT.
Expected behaviour: Password change is required shortly after logging in


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38788.

avatar Hackwar Hackwar - change - 3 Dec 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-12-03 07:55:44
Closed_By Hackwar
avatar Hackwar Hackwar - close - 3 Dec 2024
avatar Hackwar
Hackwar - comment - 3 Dec 2024

I've created a PR to fix this: #44521 Please test. Since we have a PR, I'm closing this one.

Add a Comment

Login with GitHub to post a comment