AOH :: Macintosh :: TB10883.HTM

Apple Safari on MacOSX may reveal user's saved passwords

Apple Safari on MacOSX may reveal user's saved passwords
Apple Safari on MacOSX may reveal user's saved passwords



hello,
Apple Safari on Macosx may reveal user's saved passwords. A local user with legitimate access to the system is able to steal keychained password by injecting javascripts into a loaded webpage via applescript.
It seems that safari fails to validate the source of injected code, however apple belives this is the correct behaviour so no fixes will be made available.


this proof of concept scpt file will display the password loaded by safari into an html object named "password":

tell application "Safari"
	do JavaScript "alert(document.loginform.password.value)" in document 1
end tell


comments are welcome

cheers,
-poplix
http://px.dynalias.org 

The entire AOH site is optimized to look best in Firefox® 3 on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2009 AOH
We do not send spam. If you have received spam bearing an artofhacking.com email address, please forward it with full headers to abuse@artofhacking.com.