forked from sviehb/jefferson
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix path traversal security vulnerability by canonicalizing path name…
…s of every inodes and discarding inodes with a path pointing outside of the extraction directory. Fix path traversal through symlinks by canonicalizing link target path using the extraction directory as root. If the link still points outside the extraction root, it gets discarded. This way symlinks reflects the reality of a filesystem on device by pointing to files within the extracted filesystem instead of files from the host executing jefferson.
- Loading branch information
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters