Sync: a forged roster under your signup vault id isn't offered for leaving (#1001) #37
Loading…
Reference in a new issue
No description provided.
Delete branch "board/1001-df33fa"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes agentboard #1001 (follow-up from #998 / PR #26).
A server that serves a fresh device an old keyring (no roster checkpoint for the signup vault) could serve a valid chain signed by someone else (mallory) under the signup vault's id, listing you as a member. The vault then opened with
creator == mallory, soSession::is_ownsaid it wasn't yours and sync offeredplaintext vault leavefor it ("counts against your storage, though mallory created it").is_own: the signup vault (keyring.default_vault) with a verified roster naming another creator counts as your own. We always sign its first roster, so that mismatch means tampering. A signup vault you created and were really demoted in (a signed demotion) still isn't, as before.paidloop checksis_ownbefore the "though X created it" arm, so it says nothing about such a vault (your own vaults aren't named there).nobody_is_stuck_paying_for_a_vault, the only test with a storage quota (the "though X created it" arm needs one): bob's keyring names mallory's vaultBigas his signup vault, which is what a forged chain under that id looks like to the client, and sync no longer names it or offers to leave it. It fails without the fix.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.