Description
The "Open 'safe' files after downloading" option in Safari on Apple Mac OS X allows remote user-assisted attackers to execute arbitrary commands by tricking a user into downloading a __MACOSX folder that contains metadata (resource fork) that invokes the Terminal, which automatically interprets the script using bash, as demonstrated using a ZIP file that contains a script with a safe file extension.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Safari Archive Metadata Command Execution
exploit/osx/browser/safari_metadata_archive
Exploit-DB 1
- Apple Safari - Archive Metadata Command Execution (Metasploit) EDB-16866 · remote · Sep 20, 2010 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 18963 third-party-advisory
- http://www.mathematik.uni-ulm.de/numerik/staff/lehn/macosx.html
- VU#999708 third-party-advisory
- 16736 vdb-entry
- 1015652 vdb-entry
- TA06-053A third-party-advisory
- ADV-2006-0671 vdb-entry
- TA06-062A third-party-advisory
- http://www.heise.de/english/newsticker/news/69862
- 23510 vdb-entry
- http://www.frsirt.com/exploits/20060222.safari_safefiles_exec.pm.php
- http://docs.info.apple.com/article.html?artnum=303382
- macosx-zip-command-execution(24808) vdb-entry