Rapid7 Vulnerability & Exploit Database

Safari Archive Metadata Command Execution

Back to Search

Safari Archive Metadata Command Execution

Disclosed
02/21/2006
Created
05/30/2018

Description

This module exploits a vulnerability in Safari's "Safe file" feature, which will automatically open any file with one of the allowed extensions. This can be abused by supplying a zip file, containing a shell script, with a metafile indicating that the file should be opened by Terminal.app. This module depends on the 'zip' command-line utility.

Author(s)

  • hdm <x@hdm.io>

Platform

Unix

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/osx/browser/safari_metadata_archive
msf exploit(safari_metadata_archive) > show targets
    ...targets...
msf exploit(safari_metadata_archive) > set TARGET < target-id >
msf exploit(safari_metadata_archive) > show options
    ...show and set options...
msf exploit(safari_metadata_archive) > 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

;