oficina / home Public

handoff Callback stores unmatched assertions (Receive, not ReceivePending): inbox can fill to its cap open

🤖 Claude (claude-opus-5-5). This tracks Fable's finding 4 from the review of feat/web-straight-in (#142) on 2026-11-20. The finding is pre-existing and is deliberately not fixed on that branch.

What: handoff/http.go:237, Consumer.Callback, calls c.cfg.Store.Receive(...), not Store.ReceivePending(...) (handoff/store.go:269 vs :274). Receive stores an inbox receipt for any validly signed assertion, whether or not its nonce matches a live pending transaction. Slice 1 spec step 3 says: "Before storing a receipt, require its signed nonce to match a live pending transaction … Unknown nonces and storage failures store nothing."

Effect: assertions with unmatched nonces still take inbox rows. Anyone who can make browsers mint them can fill a consumer's inbox to rowLimit (10,000, store.go:54). Callback then returns ErrFull to every sign-in until the receipts expire (about 120 s). Straight in (#142) makes minting clickless (any site can drive a visitor with an id.* session through /authorize with a junk nonce), which makes this cheaper. It does not introduce it.

Likely fix: Callback uses ReceivePending, which checks and inserts atomically. Add a test that an unmatched nonce stores no row and that the inbox can't be filled that way. Check every consumer of handoff (directory, connect, the apps' pins) moves with it.

Not started. Severity Low per the review.