Skip to content

GetObjectAttributes does not authenticate the SSE-C key #84

Closed

Description

@Vonng

Problem

GetObjectAttributes calls GetObjectInfo, checks that SSE-C headers are present through DecryptObjectInfo, but never unseals the supplied key. A syntactically valid wrong key therefore returns HTTP 200 for both zero-byte and non-empty SSE-C objects. HeadObject and the normal GET data path already authenticate the key.

Impact

The response can expose plaintext object size and completed multipart layout to a caller that has S3 read permission but not the customer key. ETag/checksum decryption remains fail-closed, but the behavior diverges from S3 and from the other object-read APIs. This is inherited, not introduced by the current release delta.

Reproduction

Create an SSE-C object, then issue GET /bucket/key?attributes with x-amz-object-attributes: ObjectSize,ETag,ObjectParts,Checksum and a different 32-byte key whose MD5 header is internally valid. Current result: 200. Expected: 403 AccessDenied.

Selected repair

After request preconditions, use crypto.SSEC.UnsealObjectKey exactly as HeadObjectHandler does. Keep this separate from #82: #82 fixes the zero-byte GetObjectNInfo early return, while this API uses GetObjectInfo and is affected at every object size.

Acceptance criteria

  • correct SSE-C key: 200 for zero-byte and non-empty objects;
  • wrong key: 403 for both;
  • missing key: existing 400 behavior unchanged;
  • precondition ordering unchanged;
  • focused normal/race, full cmd, and remote CI pass.

A local candidate and dual-backend regression test exist but are not yet pushed.

Activity

  1. added
    bug
    on Aug 29, 2026
  2. Vonng commented on Aug 29, 2026

    @Vonng
    MemberAuthor

    PR submitted

    PR #95 contains the focused GetObjectAttributes SSE-C key-authentication fix and zero/nonzero dual-backend regression tests. Focused normal/race and vet pass locally; hosted CI is now running.

  3. Vonng commented on Aug 29, 2026

    @Vonng
    MemberAuthor

    Resolved by #95. GetObjectAttributes now authenticates SSE-C keys for all object sizes after preconditions while preserving the replication carve-out. Final main 1be684b passed Go CI, VulnCheck, the full local race suite, and Test Release run 33254848256.

  4. moved this from Backlog to Done in Siloon Aug 29, 2026
  5. self-assigned this
    on Sep 15, 2026
  6. added theissue type on Sep 15, 2026
  7. added this to the 20260903 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions