Versions of Safari before 8.0.6, 7.1.6, and 6.2.6 are vulnerable to a "state management issue" that allows a browser window to be navigated to a file:// URL. By dropping and loading a malicious .webarchive file, an attacker can read arbitrary files, inject cross-domain Javascript, and silently install Safari extensions.
OSX
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use auxiliary/gather/safari_file_url_navigation
msf auxiliary(safari_file_url_navigation) > show actions
...actions...
msf auxiliary(safari_file_url_navigation) > set ACTION < action-name >
msf auxiliary(safari_file_url_navigation) > show options
...show and set options...
msf auxiliary(safari_file_url_navigation) > run
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