M1-audit MUST: anonymous recovery-share probes leave no activity evidence (Guid.Empty ActorId FK-fails silently) #74
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#74
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
M1-close ponytail-audit finding (issue #65).
GetRecoveryShare.cs:42 logs failed anonymous share retrievals with
ActorId = Guid.Empty— FileActivity.ActorId is a non-nullable FK to users, so the insert fails and the fire-and-forget (_ = activity.LogAsync(...), CancellationToken.None) swallows it. Visible as recurringFailed to log file activity: recovery.share_retrievedERR lines in every suite run.Concrete case: an attacker probing
GET /api/recovery/share?did=Xfor many DIDs leaves ZERO server-side evidence — exactly the events worth logging. Same class as the #32 audit-sink bug (fixed with a nullable ActorId there).Fix: make FileActivity.ActorId nullable (migration, mirroring the #32 pattern), write null for pre-auth events, keep the success path as-is. Also un-swallow: log write failures at Warning.