Safari Vulnerability: Now a Blended Flavor
Posted by Laureli Mallek Thu, 12 Jun 2008 18:46:00 GMT
I blogged previously about a Safari vulnerability noted by Nitesh Dhanjani. He found that Safari automatically downloads items to a default location, which happens to be the desktop on both Apple and Windows machines. By itself, this vulnerability can be frustrating (by “carpet bombing” your desktop) or dangerous (downloading a cleverly disguised piece of badware). On machines with Internet Explorer, the Safari vulnerability combines with an Internet Explorer vulnerability noted in 2006 by Aviv Raff and a larger problem develops (italic emphasis mine).
The new [2006 to current] version of Internet Explorer is vulnerable to a DLL-load hijacking. When IE7 is executed it will load several DLL files. While trying to load some of those files, it does not provide the full path of the DLL file to the function which loads the DLL file to the memory, and therefore Windows will search for this file in the user’s machine using the directories provided in the PATH environment variable, and will load the first match it will found…
Now, all the attacker has to do to bypass this detection is to put a malicious DLL file (or just a downloader DLL of a malicious file) in one of the PATH directories (e.g. the user’s desktop), and the next time the user will run IE7 the code of the attacker’s file will be executed instead of the original DLL file… I’ve reported this to Microsoft few days ago [in November 2006]. Their response: “If the attacker can put a dll on the box in a location that is in the user’s PATH variable, then they already own the box.
LiuDie Yu proves this type of attack can cause an item to be downloaded by Safari on to the desktop of a Windows machine, perhaps as an “hidden” document which is not displayed on the desktop, and executed as the Internet Explorer application launches. Microsoft has issued a warning about the danger to people running both browsers on their Windows machine. It suggests that users “Restrict use of Safari as a web browser until an appropriate update is available from Microsoft and/or Apple.”
An immediate work-around has been suggested by several sources: change the default download location in your Safari browser to a separate folder for downloaded items. Hopefully Apple and Microsoft will realize that these vulnerabilities do pose a threat serious enough to warrant a patch in the near future.

