From a01cc0fcf4d8b2494d0986cd047347f66c440b14 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 30 Nov 2026 15:22:29 +0000 Subject: [PATCH] vault email recovery: state that the mailbox alone is enough The account password resets by email, so mailbox control = sign-in + one-time code + the enrollment code U. Say so in security.md and stop the one-time-code email from implying the vault stays safe if someone else reads the mailbox. Co-Authored-By: Claude Opus 5.5 --- apps/pwa/src/lib/vault-recovery.mjs | 2 +- docs/opencreds/security.md | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/pwa/src/lib/vault-recovery.mjs b/apps/pwa/src/lib/vault-recovery.mjs index afe7aa83..e1368061 100644 --- a/apps/pwa/src/lib/vault-recovery.mjs +++ b/apps/pwa/src/lib/vault-recovery.mjs @@ -394,7 +394,7 @@ export async function startRecovery(user, ctx = {}, now = Date.now()) { `Someone (hopefully you) is recovering your LogicSRC personal vault through email recovery.\n\n` + `One-time code: ${code}\n\nIt expires in 15 minutes and works once.\n\n` + `If this was not you, someone can sign in to your LogicSRC account: change your password now, and turn email recovery off (Settings, or \`logicsrc vault recovery disable\`). ` + - `Without the recovery code from your enrollment email they still cannot open the vault.`, + `They also need the recovery code from your enrollment email, so if anyone else can read this mailbox, secure your email account first.`, ); if (!sent) { await run(`UPDATE vault_recovery_codes SET used_at = ? WHERE id = ?`, [now, codeId]); diff --git a/docs/opencreds/security.md b/docs/opencreds/security.md index 614beacf..306c25cd 100644 --- a/docs/opencreds/security.md +++ b/docs/opencreds/security.md @@ -149,11 +149,14 @@ What this does and does not hold against, stated plainly: open that vault. Enrollment hands U to the server in transit so it can be mailed, and a claim hands S back out; code running on the server at that moment sees what it needs. -- **The person's mailbox together with a live server compromise, or the - mailbox together with their LogicSRC sign-in:** can open the vault. The - mailbox holds U and receives the one-time code; the account (or the server) - supplies S. This is the reason the feature is opt-in: it moves part of the - vault's safety onto the security of an email account. +- **Whoever controls the person's mailbox can open the vault.** The mailbox + holds U and receives the one-time code, and the LogicSRC account password + can itself be reset by email, so the mailbox alone is enough to sign in, claim + S and recombine E. The only defences are the notice emails (a claim and every + account-password reset are mailed, and the owner may see them first) and + disabling recovery. This is the reason the feature is opt-in: it moves the + vault's safety onto the security of an email account. Enable it only on an + email account with its own strong password and second factor. - **The account operator** can see that a person enrolled, when, and when they recovered; never the contents.