Is logstash vulnerable to zip-slip?


Similar to a question I asked in the Kibana forum (Is the plugin install exposed to zip-slip?) due to some requests by the local security team, looking into whether some of the software we use is exposed to zip-slip.

Digging around in the logstash codebase on github I spotted which looks like it will extract files without checking if there is any leading '..' components in the path. Similarly does the same for tarfiles.

Checking the ruby stdlib I don't see anything ignoring files in TarReader if the path contains '..', so presumably it is up to application usage to perform such checking.

Looking at where this is used,, it does appear to be only used by the plugin extraction and so should mean that this is only vulnerable if an admin is persuaded to install a compromised plugin.

It would be nice to confirm whether my understanding is correct, and that this is the only place that is vulnerable?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.