# Is the plugin install exposed to zip-slip?

**URL:** <https://discuss.elastic.co/t/is-the-plugin-install-exposed-to-zip-slip/144199>\
**Category:** Kibana\
**Created:** [August 13, 2018, 3:24pm UTC](https://discuss.elastic.co/t/is-the-plugin-install-exposed-to-zip-slip/144199 "2018-08-13T15:24:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![electrofelix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/electrofelix/32/34435_2.png) [@electrofelix](https://discuss.elastic.co/u/electrofelix)\
**Post date:** [August 13, 2018, 3:24pm UTC](https://discuss.elastic.co/t/is-the-plugin-install-exposed-to-zip-slip/144199/1 "2018-08-13T15:24:18Z")

</div>

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 kibana codebase on github I spotted [https://github.com/elastic/kibana/blob/da1268d3221e25952e2207c37fde4f3b9d2688ce/packages/kbn-es/src/utils/decompress.js#L40-L85](https://github.com/elastic/kibana/blob/da1268d3221e25952e2207c37fde4f3b9d2688ce/packages/kbn-es/src/utils/decompress.js#L40-L85) which looks like it extracts a zipfile without checking whether it contains leading '../' as part of the path.

This code looks like it's only used by plugin management, and so it limits exposure to first being persuaded to install a compromised archive as a plugin to kibana, but it would be nice to confirm whether this is indeed correct, and whether that is the only place that is vulnerable?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [August 13, 2018, 11:14pm UTC](https://discuss.elastic.co/t/is-the-plugin-install-exposed-to-zip-slip/144199/2 "2018-08-13T23:14:39Z")

</div>

Thanks @electrofelix, I will look into this. Currently, this utility (kbn-es) is only used in development to assist with running Elasticsearch. The assets are hosted on our S3 bucket, so the exposure is even more limited, but regardless I will investigate.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 10, 2018, 11:14pm UTC](https://discuss.elastic.co/t/is-the-plugin-install-exposed-to-zip-slip/144199/3 "2018-09-10T23:14:45Z")

</div>

Closed on September 10, 2018, 11:14pm UTC

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