HexBrain

Nextcloud · Report #722748

Bypass configured 2FA provider with another provider that can be set up at login

Validstatus
mediumseverity
5upvotes
1 Mar 2020disclosed

How it was found

In Nextcloud 17 there is the possibility to set up 2FA providers at login. A missing check allows the following steps

  1. Enforce 2FA for all users
  2. As a user, configure a 2FA provider (via settings or at login)
  3. Log out
  4. Log in again (password only)
  5. When prompted with the earlier set up provider, go to /login/setupchallenge
  6. Set up another provider that hasn't been set up before
  7. You're logged in

Impact

Bypass a user's second-factor authentication protection.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original