FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

Uncaught Exception removing TOTP MFA as a user_support_manager in FusionAuth Admin UI. #2698

Open LucasPMorris opened 3 months ago

LucasPMorris commented 3 months ago

Uncaught Exception removing TOTP MFA as a user_support_manager in FusionAuth Admin UI

When a user_support_manager attempts to remove TTOP MFA from another user within the FusionAuth Admin UI, the UI displays a TOTP screen. Even if you have the code, the screen will go away and the browser will be awaiting input. One click more and you are back to the FusionAuth Admin UI.

Observed on 1.49.1, possible affects others.

Steps to reproduce the behavior:

  1. Create a user (ie UserA) in the Default Tenant
  2. Register them to the FusionAuth application with just the user_support_manager role.
  3. Create another user in a different Tenant and application that has MFA enabled or required (ie UserB).
  4. Log UserB into the application they are registered for and enable TOTP MFA. Logout.
  5. Log in to FusionAuth app as UserA.
  6. Navigate to Users->Select UserB and select the MultiFactor tab.
  7. Click the trash can icon next to the Authenticator MFA that was setup for UserB

When UserA attempts to delete UserB TOTP MFA method they should be provided with a 'not authorized' error, not TOTP request screen.