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

TOTP secrets not saved if set up from within entry #4060

Closed
MyGH001 opened this issue Dec 26, 2019 · 10 comments · Fixed by #4752
Closed

TOTP secrets not saved if set up from within entry #4060

MyGH001 opened this issue Dec 26, 2019 · 10 comments · Fixed by #4752

Comments

@MyGH001
Copy link

MyGH001 commented Dec 26, 2019

Expected Behavior

TOTP secrets saved

Current Behavior

TOTP secrets not saved if set up from within entry

Possible Solution

Steps to Reproduce

  1. Create new entry or open any previously created
  2. From WITHIN entry do Set up for TOPT
  3. Switch to Advanced(on the left) to see that "OTP" attribute NOT presented.
  4. You still can get TOTP code fine as until close/reopen DB.
  5. After reopen DB TOTP fully cleaned.

The only way it works correct(save secrets) if set up TOTP for entry from the main grid.

  1. Select entry (not drill down)
  2. Setup TOPT via right click menu or main menu.

Context

Debug Info

KeePassXC - Version 2.5.1
Revision: 0fd8836

Qt 5.13.1
Debugging mode is disabled.

Operating system: macOS 10.15
CPU architecture: x86_64
Kernel: darwin 19.2.0

@MyGH001 MyGH001 added the bug label Dec 26, 2019
@MyGH001
Copy link
Author

MyGH001 commented Dec 26, 2019

Setup from WITHIN entry:
Screen Shot 2019-12-25 at 11 47 24 PM
Advanced attribute not created:
Screen Shot 2019-12-25 at 11 49 00 PM
Setup from main grid:
Screen Shot 2019-12-25 at 11 50 15 PM
Advanced attribute created fine:
Screen Shot 2019-12-25 at 11 50 42 PM
TOTP status is YES for both and works for both:
Screen Shot 2019-12-25 at 11 51 05 PM
Close and reopen DB causes TOTP clean up for TEST1 entry:
Screen Shot 2019-12-25 at 11 51 57 PM

@MyGH001
Copy link
Author

MyGH001 commented Dec 26, 2019

Same behavior on Windows 10, so seems common issue.

@droidmonkey
Copy link
Member

droidmonkey commented Dec 26, 2019

I could have sworn to have tested this when I enabled the menu actions while editing an entry. This is an unfortunate side effect. The reason for this is because the entry object has a TOTP settings attached in code but not in the attributes (why it disappears on lock). I bet if you pressed "Cancel" to the entry editing the otp attribute would appear.

@MyGH001
Copy link
Author

MyGH001 commented Dec 26, 2019

Right, just checked. If push "Cancel" it saves OTP, too complex pattern I would say for end users ). Might be better either disable TOTP set up within entry or make behavior consistent(which would be preferable).

@droidmonkey
Copy link
Member

Its a bug, not intentional pattern

@UnkindPartition
Copy link

UnkindPartition commented Jan 25, 2020

Just hit this as well. Seems like a very dangerous bug — if the user does this and does not save recover codes or the secret key, they would be locked out of their account.

@droidmonkey
Copy link
Member

I agree will fix

@doczkal
Copy link

doczkal commented Mar 23, 2020

I hit this bug as well and it will cost me 5€ to get access to the account again because there are no recover codes or secret keys available...

@densha
Copy link

densha commented Apr 12, 2020

@droidmonkey Any update on this? I can confirm the same issue happens on KeePassXC 2.5.4 on Linux Mint.

@droidmonkey
Copy link
Member

Yeah I need to fix this for 2.6

droidmonkey added a commit that referenced this issue May 31, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 2, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 2, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 2, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 3, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 3, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 4, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
droidmonkey added a commit that referenced this issue Jun 4, 2020
* Fixes #4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
lerignoux pushed a commit to lerignoux/keepassxc that referenced this issue Jul 20, 2020
* Fixes keepassxreboot#4060
* Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants