Rapid7 Vulnerability & Exploit Database

Generic Zip Slip Traversal Vulnerability

Back to Search

Generic Zip Slip Traversal Vulnerability

Disclosed
06/05/2018
Created
09/12/2019

Description

This is a generic arbitrary file overwrite technique, which typically results in remote command execution. This targets a simple yet widespread vulnerability that has been seen affecting a variety of popular products including HP, Amazon, Apache, Cisco, etc. The idea is that often archive extraction libraries have no mitigations against directory traversal attacks. If an application uses it, there is a risk when opening an archive that is maliciously modified, and result in the embedded payload to be written to an arbitrary location (such as a web root), and result in remote code execution.

Author(s)

  • Snyk
  • sinn3r <sinn3r@metasploit.com>
  • ggkitsas

Platform

Linux,Unix,Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/fileformat/zip_slip
msf exploit(zip_slip) > show targets
    ...targets...
msf exploit(zip_slip) > set TARGET < target-id >
msf exploit(zip_slip) > show options
    ...show and set options...
msf exploit(zip_slip) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;