Logo
Explore Help
Register Sign In
starred/vaultwarden
1
0
Fork 0
You've already forked vaultwarden
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-12-14 01:10:23 +03:00
Code Issues 429 Packages Projects Releases 10 Wiki Activity
Files
10dadfca068ed449fcd4a74b70ae2cd83990d3d4
vaultwarden/migrations/postgresql/2020-12-09-173101_add_stamp_exception/up.sql

1 line
63 B
MySQL
Raw Normal View History

Fix Key Rotation during password change When ticking the 'Also rotate my account's encryption key' box, the key rotated ciphers are posted after the change of password. During the password change the security stamp was reseted which made the posted key's return an invalid auth. This reset is needed to prevent other clients from still being able to read/write. This fixes this by adding a new database column which stores a stamp exception which includes the allowed route and the current security stamp before it gets reseted. When the security stamp check fails it will check if there is a stamp exception and tries to match the route and security stamp. Currently it only allows for one exception. But if needed we could expand it by using a Vec<UserStampException> and change the functions accordingly. fixes #1240
2020-12-14 19:58:23 +01:00
ALTER TABLE users ADD COLUMN stamp_exception TEXT DEFAULT NULL;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 39ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API