Skip to content

Implement path traversal validation in Archiver - #2163

Open
denizguney wants to merge 1 commit into
apple:mainfrom
denizguney:patch-1
Open

Implement path traversal validation in Archiver#2163
denizguney wants to merge 1 commit into
apple:mainfrom
denizguney:patch-1

Conversation

@denizguney

Copy link
Copy Markdown

Added path traversal validation in Archiver.swift to ensure that file paths do not escape the base directory.

Important

All commits must be signed and verified. Pull requests containing unsigned or unverified commits cannot be built or merged. See the GitHub documentation for instructions.

For all but trivial fixes, make sure to first create a GitHub issue that concisely describes the bug or desired enhancement as justification for the change. Large PRs with no justifying issue will be closed.

Type of Change

  • [x ] Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Adds path validation check inside Archiver.swift to prevent potential Path Traversal vulnerabilities by ensuring that file paths do not escape the designated base directory.

Testing

  • [x ] Tested locally
  • Added/updated tests
  • Added/updated docs

Added path traversal validation in Archiver.swift to ensure that file paths do not escape the base directory.
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