Skip to content

manifest keys are not validated, allowing path traversal #164

@sanskar0627

Description

@sanskar0627

The _validate_cache_path() function is currently only applied to locally scanned files, but not to manifest keys when iterating over them in diff().

This means a corrupted or tampered manifest could contain keys like ../../etc/cron.d/evil, and since diff() passes them through as-is, downstream consumers would end up writing downloaded content outside of the intended data directory .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions