{"vuid":"VU#999708","idnumber":"999708","name":"Apple Safari automatically executes arbitrary shell commands or code","keywords":["Apple","Safari","automatically","execute shell scripts","open safe files after downloading","shebang line","Mac OS X","ZIP archive","explicit binding","LaunchServices","apple_security_update_2006_001","CVE-2006-0397","CVE-2006-0398","CVE-2006-0399"],"overview":"Apple Safari fails to properly determine file safety, allowing a remote unauthenticated attacker to execute arbitrary commands or code.","clean_desc":"Safari Apple Safari is a web browser that comes with the Mac OS X operating system. Explicit binding Mac OS X supports a feature called explicit binding, which LaunchServices examines to determine which application is used to open a file. If explicit binding is specified for a file, this setting will override the application association for the file type. Explicit binding information is stored in the resource fork for a file. \"Safe\" files By default, Safari will automatically open \"safe\" file types, such as pictures, movies, and archive files, including ZIP files. If the contents of an archive file are also considered safe, then Safari will automatically open the contents after the archive is extracted. The problem A data file with explicit binding can allow an attacker to execute arbitrary commands or code on systems running Safari. Limited testing shows that Safari apparently fails to check for the presence of explicit binding data when determining if a file is \"safe\" or not.","impact":"By convincing a user to view a specially crafted HTML document (for example, a web page), an attacker may be able to execute arbitrary commands or code with the privileges of the user. Proof of concept code is publicly available.","resolution":"Install an update\nInstall Apple Security Update 2006-001 and Apple Security Update 2006-002, which provide updates to Safari, LaunchServices, and CoreTypes. These updates improve the method that Safari uses to determine if a file is safe.","workarounds":"Disable \"Open 'safe' files after downloading\" Disable the option \"Open 'safe' files after downloading,\" as specified in the Securing Your Web Browser document. This will help prevent automatic exploitation of this and other vulnerabilities.","sysaffected":"","thanks":"This vulnerability was publicly disclosed by Michael Lehn.","author":"This document was written by Will Dormann.","public":["http://docs.info.apple.com/article.html?artnum=303382","http://docs.info.apple.com/article.html?artnum=303453","http://www.mathematik.uni-ulm.de/numerik/staff/lehn/macosx.html","http://www.heise.de/english/newsticker/news/69862","http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/chapter_2_section_8.html","http://developer.apple.com/technotes/tn/tn2017.html","http://developer.apple.com/documentation/mac/MoreToolbox/MoreToolbox-11.html","http://docs.info.apple.com/article.html?artnum=108009","http://secunia.com/advisories/18963/","http://www.securityfocus.com/bid/16736","http://xforce.iss.net/xforce/xfdb/24808","http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0397","http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0398","http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0399","http://securitytracker.com/alerts/2006/Feb/1015652.html"],"cveids":["CVE-2006-0848"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2006-02-21T13:51:58Z","publicdate":"2006-02-19T00:00:00Z","datefirstpublished":"2006-02-21T18:43:21Z","dateupdated":"2006-12-07T16:22:09Z","revision":37,"vrda_d1_directreport":"0","vrda_d1_population":"3","vrda_d1_impact":"3","cam_widelyknown":"20","cam_exploitation":"0","cam_internetinfrastructure":"5","cam_population":"14","cam_impact":"15","cam_easeofexploitation":"18","cam_attackeraccessrequired":"20","cam_scorecurrent":"35.4375","cam_scorecurrentwidelyknown":"35.4375","cam_scorecurrentwidelyknownexploited":"63.7875","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":35.4375,"vulnote":null}