You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GET /api/v1/locks leaks bucket+key for buckets the caller has no sealed grant on (trace is filtered, locks is not) #212
Severity: Medium Labels: security, authorization, existence-oracle, admin-read, residual HEAD:a2c1d01
Summary
GET /api/v1/locks (AdminRead: Admin + Auditor) returns every in-flight write lock’s bucket + key with nobucket_readable / sealed-grant filter. After #123/#187, /api/v1/trace correctly drops events for buckets the persona cannot decrypt; locks still disclose foreign object names.
Repro
Alice owns beta (auditor has no grant on beta).
Start a long PUT to beta/hang2.bin as alice (leave body streaming).
Contrast: GET /beta/ as aud → 404; SSE /api/v1/trace as aud shows alpha/... but notbeta/....
Impact
Auditor (and Admin without a grant) learn plaintext key paths and bucket existence for ciphertext they cannot open — the same sealed-grant blindness property the project documents and already enforced on listings, object IO, and trace.
Fix
Filter list_stale_locks results with the same bucket_readable(auth, storage, bucket) gate used by trace::trace_event_visible (drop entries on Ok(false) / error). Optionally document that full-admin operational break-glass may set a config flag to see all locks.
Activity