nextcloud / nextcloud/impersonate

Impersonate error with 2FA enabled users

Open
#15 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs info
Dominant language
PHP
Stars
70
Forks
18
Avg merge
5d 19h
Merged PRs (30d)
25

Description

Steps to reproduce
  1. create group 2FA
  2. enable 2FA for that group with the plugin
  3. create user with 2FA allowed
  4. in the admin "user" settings, attempt to impersonate that user
  5. error returned (some details obfuscated)
Internal Server Error

The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.

More details can be found in the server log.

Technical details

    Remote Address: 128.250.0.###
    Request ID: 1ygqvDoj###h2g3Sdudz

Reloading does not help, but using the back operation in the browser it is possible to get to the impersonated user.

The error only occurs with users who have 2FA support enabled (note that in this example, the user has not actually set up 2FA yet).

Server configuration

Operating system: Debian Jessie

Web server: Apache2

Database: Mariadb

PHP version: 7.0.20-2

Nextcloud version: 12.0.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure from the admin "user" settings with a user whose group has 2FA enabled, and inspect the server log using the reported request details. Trace the impersonation flow and 2FA handling; done means administrators can impersonate users with 2FA support enabled without an internal server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, debian, mariadb, php
Domain
authentication, backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.