Issue with Server side KDF Iterations not showing altered in db.sqlite3 #1498

Closed
opened 2026-02-05 01:05:46 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @talkincyber on GitHub (Feb 5, 2023).

Subject of the issue

Issue with Client side KDF Iterations not showing altered in db.sqlite3. I recently updated my KDF iterations client side on the web vault to 600k and when looking at the sqlite database, it does not show that the iterations changed, it still shows 100k.

Deployment environment

  • Vaultwarden version: v1.27.0
  • Web-vault version: v2022.12.0
  • Running within Docker: true (Base: Debian)
  • Environment settings overridden: false
  • Uses a reverse proxy: true
  • IP Header check: true (X-Real-IP)
  • Internet access: true
  • Internet access via a proxy: false
  • DNS Check: true
  • Time Check: true
  • Domain Configuration Check: true
  • HTTPS Check: true
  • Database type: SQLite
  • Database version: 3.39.2

Steps to reproduce

I run Vaultwarden via a "stack" in portainer. I just changed the KDF iterations and then also changed my password and said for it to rotate my account keys and it seems it's still at 100k based on the database file.

Expected behaviour

I would expect the database entry for my user account to be updated with the proper amount otherwise it makes me believe the key was not changed and the iterations did not change. I changed my password after changing it as well and it did not have an affect.

Actual behaviour

Troubleshooting data

image

Here is a screenshot of the server side admin panel showing 600k iterations

image

Here is a screenshot of the database for my account selecting password iterations from the table.

Originally created by @talkincyber on GitHub (Feb 5, 2023). <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> Issue with Client side KDF Iterations not showing altered in db.sqlite3. I recently updated my KDF iterations client side on the web vault to 600k and when looking at the sqlite database, it does not show that the iterations changed, it still shows 100k. ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * Vaultwarden version: v1.27.0 * Web-vault version: v2022.12.0 * Running within Docker: true (Base: Debian) * Environment settings overridden: false * Uses a reverse proxy: true * IP Header check: true (X-Real-IP) * Internet access: true * Internet access via a proxy: false * DNS Check: true * Time Check: true * Domain Configuration Check: true * HTTPS Check: true * Database type: SQLite * Database version: 3.39.2 ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> I run Vaultwarden via a "stack" in portainer. I just changed the KDF iterations and then also changed my password and said for it to rotate my account keys and it seems it's still at 100k based on the database file. ### Expected behaviour <!-- Tell us what you expected to happen --> I would expect the database entry for my user account to be updated with the proper amount otherwise it makes me believe the key was not changed and the iterations did not change. I changed my password after changing it as well and it did not have an affect. ### Actual behaviour <!-- Tell us what actually happened --> ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> ![image](https://user-images.githubusercontent.com/18764311/216805498-0fc1fc40-a4e2-4d01-a307-567a1bba2579.png) Here is a screenshot of the server side admin panel showing 600k iterations ![image](https://user-images.githubusercontent.com/18764311/216805051-472ec003-5c88-4870-96cc-c12a7edbbb16.png) Here is a screenshot of the database for my account selecting password iterations from the table.
Author
Owner

@talkincyber commented on GitHub (Feb 5, 2023):

I restarted vaultwarden in-between chaning the password iterations and changing my password too.

@talkincyber commented on GitHub (Feb 5, 2023): I restarted vaultwarden in-between chaning the password iterations and changing my password too.
Author
Owner

@BlackDex commented on GitHub (Feb 5, 2023):

Not sure what you are reporting here. But i think you tried to change the server side after the whole client change, and saw it didn't changed for your account.

That is true for the version of Vaultwarden you are using. That is fixed in the testing tagged images already. There it will increase your server side kdf on login.

@BlackDex commented on GitHub (Feb 5, 2023): Not sure what you are reporting here. But i think you tried to change the server side after the whole client change, and saw it didn't changed for your account. That is true for the version of Vaultwarden you are using. That is fixed in the `testing` tagged images already. There it will increase your server side kdf on login.
Author
Owner

@BlackDex commented on GitHub (Feb 5, 2023):

Fixed already via #3163

@BlackDex commented on GitHub (Feb 5, 2023): Fixed already via #3163
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1498