Skip to content

Additional data calculation susceptible to path manipulation. #41

@gibbz00

Description

@gibbz00

Originally brought up in #40 by @ahmedcharles.

To summarize things:

Because of how SOPS calculates the additional data based on : joined paths, it is possible to manipulate to.to = "encrypted secret" to to:to without it being caught during decryption.

One possible solution to this would be to add a new metadata field (called stronger_path_mac for example) which is calculated based on the length and value of each key string. Allowing files to remain backwards compatible with SOPS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions