Skip to content

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

Merged
folkertdev merged 1 commit intomainfrom
relative_names
Apr 9, 2026
Merged

add test data for files with a relative path component such as '..'#23
folkertdev merged 1 commit intomainfrom
relative_names

Conversation

@armijnhemel
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@folkertdev folkertdev merged commit b762ed7 into main Apr 9, 2026
2 checks passed
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.

2 participants