3 ms·
https://gist.github.com/igorw/1d67f422689017e814a8#file-app-php-L49 https://gist.github.com/igorw/1d67f422689017e814a8#file-app-... Is it possible to craft a z
by pavel_lishin 11y ago
https://gist.github.com/igorw/1d67f422689017e814a8#file-app-php-L49 https://gist.github.com/igorw/1d67f422689017e814a8#file-app-...
Is it possible to craft a zip file that will write data to parent directories, or an explicit path?
- CaveTech 11y agounzip intentionally prevents such from happening. So while you could make a .zip file that intends to do that, you need an unzipping tool that would actually allow it.
- tlrobinson 11y agoWho cares about a possible directory traversal when the entire purpose of this is to run arbitrary code? It doesn't appear to attempt to sandbox the uploaded code at all. This is obviously not meant to be exposed to untrusted parties.