bower / decompress-zip

Module that decompresses zip files
MIT License
102 stars 76 forks source link

Avoid symlinks that link outside of the zipfile root #14

Closed dangoor closed 10 years ago

dangoor commented 10 years ago

I have decompress-zip running on a server, and I can imagine a scenario in which a zipfile is created with a symlink to ../../../etc/passwd, for example. I have not actually verified this attack yet, but I looked at the symlink support and it appears that this would be possible.