Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Factor Authentication Prevent Conflicting Accounts #2332

Closed
2 of 7 tasks
daviian opened this issue Aug 18, 2017 · 1 comment
Closed
2 of 7 tasks

Two Factor Authentication Prevent Conflicting Accounts #2332

daviian opened this issue Aug 18, 2017 · 1 comment
Labels
type/enhancement An improvement of existing functionality
Milestone

Comments

@daviian
Copy link
Member

daviian commented Aug 18, 2017

  • Gitea version (or commit ref): 1.1.3
  • Git version: 2.1.4
  • Operating system: raspbian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

If you have accounts on multiple gitea instances it could happen that you overwrite an existing TOTP Key. This is due to the way TOTP Authentication Apps handle entries, see https://github.com/google/google-authenticator/wiki/Conflicting-Accounts.
The circumstances under which this happens:

  • Same Application Name
  • Same Account Name
  • On both instances TOTP enabled

In the worst scenario a user can get locked out of one instance.
Happend to me once but fortunately had access to the database and was able to delete the entry in two_factor table.

I have already opened in issue at pquerna/otp#20
Owner mentioned that library exposes all needed stuff to prevent this and a possible solution pquerna/otp#20 (comment)
Unfortunately with his proposed solution the problem still exists if same application name is used.
I'd rather use the URL from the gitea installation.

@lafriks lafriks added the type/enhancement An improvement of existing functionality label Aug 18, 2017
@lafriks lafriks added this to the 1.x.x milestone Aug 18, 2017
@daviian
Copy link
Member Author

daviian commented Aug 20, 2017

@lunny As it is already merged I think it can be closed?

@lunny lunny modified the milestones: 1.2.0, 1.x.x Aug 20, 2017
@lunny lunny closed this as completed Aug 20, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants