Issue Feature Under Review Orphaned

#106380Switch backend maintainer re-auth (sudo-mode) from password to MFA if available

J. Peter M. Schuler 03/18/25, 10:27 updated 03/19/25, 12:36

Description

As a backend administrator with maintainer rights one currently logs in to the backend like any editor and on accessing maintainer modules one is asked to re-auth with the password (in PRODUCTION context, IIRC in DEV context this is skipped).

I think under the condition that the user has MFA enabled, instead of asking for the password, an MFA-auth should be done.
The basic principles used here are:
  • re-auth makes sense to escalate privileges, e.g. avoid scenarios with unlocked and unattended devices, session hijacking and device not locked but accessible by others, session hijacked or simply unintended mishaps
  • passwords are not safe as static secrets. Thus, additional MFA (e.g. TOTP, WebAuthn based hardware tokens) are added because they have better protection (e.g. access to a physical device or being only valid for a small time).
  • stealing a session is as easy, stealing a password is easy. stealing an addtional MFA-factor is hard.

In conclusion the re-auth to escalate to the maintainer modules should probably also use MFA (if available), instead of the password, as re-authing a session with a password seems weaker than re-authing it with an MFA.

This here does not consider 3rd party extensions supplying authentication providers in general, just the MFA providers to make it simpler.

Reviews 1

History 56

  1. Oliver Hader changed subject Switch backend maintainer re-auth from password to MFA if available Switch backend maintainer re-auth (sudo-mode) from password to MFA if available <span data-processor="relativetime" data-value="2025-03-18T17:11:28+00:00" > 03/18/25, 17:11 </span>

  2. Gerrit Code Review pushed patch set 1 for main to change 88651 status Accepted Under Review <span data-processor="relativetime" data-value="2025-03-19T12:33:52+00:00" > 03/19/25, 12:33 </span>

  3. Oliver Hader commented <span data-processor="relativetime" data-value="2025-03-19T12:36:05+00:00" > 03/19/25, 12:36 </span>

    I kick-started to enable MFA in sudo-mode.

    The pending todos are described in the change-set on Gerrit (see commit message & todo-comments in sources).
    In case anybody wants to pick up this topic, please leave a note here and just pick it up.
    I might continue working on this topic in a bunch of days/weeks.