B-5 Recovery share endpoint requires auth — recovery flow is self-broken #36

Closed
opened 2026-11-03 08:24:08 +01:00 by amiryahaya · 0 comments
Owner

GetRecoveryShare.cs:10-12 maps GET /api/recovery/share WITHOUT [SsdidPublic], unlike its siblings (CreateRecoveryRequest.cs:16, GetReleasedShares.cs:13, CompleteRecovery.cs:17). SsdidAuthMiddleware requires a Bearer session — but recovery is the one flow where the user has NO credentials (docs/superpowers/specs/2026-03-14-recovery-shamir-design.md:166-170 says so explicitly). Recovery Path B (1 .recovery file + server share) is impossible from a clean device. Integration test enshrines the bug: RecoveryShamirTests.cs:201 'Retrieval by DID (requires auth)'.

Fix: add [SsdidPublic] (+ keep the 200ms constant-time padding + 5/DID/hr rate limit); fix the test to assert public access. Full findings + evidence: docs/redesign/2026-11-onboarding-passkey/08-code-baseline-review.md

GetRecoveryShare.cs:10-12 maps GET /api/recovery/share WITHOUT [SsdidPublic], unlike its siblings (CreateRecoveryRequest.cs:16, GetReleasedShares.cs:13, CompleteRecovery.cs:17). SsdidAuthMiddleware requires a Bearer session — but recovery is the one flow where the user has NO credentials (docs/superpowers/specs/2026-03-14-recovery-shamir-design.md:166-170 says so explicitly). Recovery Path B (1 .recovery file + server share) is impossible from a clean device. Integration test enshrines the bug: RecoveryShamirTests.cs:201 'Retrieval by DID (requires auth)'. Fix: add [SsdidPublic] (+ keep the 200ms constant-time padding + 5/DID/hr rate limit); fix the test to assert public access. Full findings + evidence: docs/redesign/2026-11-onboarding-passkey/08-code-baseline-review.md
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#36
No description provided.