Skip to content

Potential Zip Slip vulnerability in IDML extraction #2474

@prasunsrivastav123-lang

Description

@prasunsrivastav123-lang

The save_idml_file() function uses ZipFile.extractall() without validating archive member paths. This may allow path traversal (Zip Slip) if a malicious IDML file is supplied via --inputfile.

We should ensure extracted files remain inside the intended directory before writing them to disk.

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