Skip to content

Incorrectly assumes ETag and MD5 are equivalent #10371

Closed

Description

@cyberduck

48ab3a7 created the issue

Cyberduck assumes that the ETag returned by S3 is equivalent to the MD5 checksum of the file's content. This is not a valid assumption. The ETag will only be the MD5 of the object data when the object is stored as plaintext or encrypted using SSE-S3. If the object is encrypted using another method (such as SSE-C or SSE-KMS) the ETag is not the MD5 of the object data. If the object was created via a multipart upload, the ETag is not the MD5 of the object data.


Attachments

Activity

  1. cyberduck commented on Jun 25, 2018

    @cyberduck
    ContributorAuthor

    @dkocher commented

    What makes you think that we make this false assumption?

  2. cyberduck commented on Jun 25, 2018

    @cyberduck
    ContributorAuthor

    48ab3a7 commented

    See the attached screenshots. Cyberduck displays a warning saying there is a mismatch. I also calculate the MD5 of the file via the command line and am attaching a screenshot of the ETag shown in the S3 console.

  3. cyberduck commented on Jun 26, 2018

    @cyberduck
    ContributorAuthor

    @dkocher commented

    In 75c0595. Revised fix in 3727bd2 retaining checksum check for files not encrypted with SSE-KMS. For multipart uploads we will fail parsing the ETag as it has a suffix appended to the MD5.

  4. cyberduck commented on Jul 6, 2018

    @cyberduck
    ContributorAuthor

    @dkocher commented

    Milestone renamed

  5. locked as resolved and limited conversation to collaborators on Nov 26, 2021
  6. added theissue type on Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

s3AWS S3 Protocol Implementation

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions