Skip to content

add test data for files with a relative path component such as '..'#23

Open
armijnhemel wants to merge 1 commit intomainfrom
relative_names
Open

add test data for files with a relative path component such as '..'#23
armijnhemel wants to merge 1 commit intomainfrom
relative_names

Conversation

@armijnhemel
Copy link
Collaborator

This PR adds test data containing a file with a relative path component. The ZIP specification isn't clear about how this data should be processed and some implementations are not doing it correctly, leading to path traversal attacks.

@armijnhemel
Copy link
Collaborator Author

A linter should probably detect these paths and flag them. An unpacker should just squash the paths, just like unzip does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant