mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 01:14:47 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
8528634e09
commit
a01cc0fcf4
2 changed files with 9 additions and 6 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue