2 ms·
Can someone give an example of valid usecase for having `..` at all in a ZIP file?
by zokier 8y ago
Can someone give an example of valid usecase for having `..` at all in a ZIP file?
- jschwartzi 8y agoI would imagine it has less to do with valid use cases and more to do with avoiding special cases and path name validation in your archiver. Surely if you're concerned about filesystem integrity when extracting untrusted archives you're extracting into a chroot jail or similar. Or you're using facilities of the archiver to list the files that would be extracted and validating the list before running the archiver.