nextcloud / nextcloud/impersonate
Impersonate error with 2FA enabled users
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 70
- Forks
- 18
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 25
Description
Steps to reproduce
- create group 2FA
- enable 2FA for that group with the plugin
- create user with 2FA allowed
- in the admin "user" settings, attempt to impersonate that user
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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