RSS RSS Twitter Twitter
troubleshooting/tutorials/security

05/18/2004, 5:45pm, EDT

Tuesday, May 18th

Details on Mac OS X/Safari security vulnerability

eWEEK has a follow-up report on the Mac OS X/Safari security vulnerability first noted by MacNN yesterday: "The issue revolves around two URI handlers, 'help' and 'disk.' The first allows any AppleScript on the user's machine to be run, while the second allows users to mount a disk image automatically over a network. In theory, this allows malicious users to create a Web page that will either download a small disk image onto a Mac or mount it remotely, then execute an AppleScript on the mounted image, which could contain any Unix command— including ones to remove any file in the user's Home directory. The flaw works with any browser, including Safari, Internet Explorer, and Firefox." One reader has posted a webpage that offers details on the problem and several examples of scripts that will automatically execute when viewing a page [warning: clicking on the link will execute an non-destructive 'du' command in the terminal as an example] Isophonic.net has released a third-party fix for the security vulnerability: GURLfriend 1.0.


Filed under: troubleshooting

, , 23comments, del.icio.us, slashdot, digg, buzz , Twitter



23 comments
Reader Reactions (Please use <i></i> for italic text)

subscribe to comments
for this article




Expand All   Global Settings
...
0
05/18, 6:28pm, EDT
Who the hell comes up with these things?
Mac Enthusiast
Joined Jan 2001
User is offline
who
0
05/18, 7:30pm, EDT
Satan himself. And Bill Gates.
Fresh-Faced Recruit
Joined Sep 2002
User is offline
SCARY
0
05/18, 7:33pm, EDT
Wow, that's scary. I clicked on the link to the example page (thinking that the warning about clicking it referred to a link on that page) and, lo and behold, my Terminal opened up and started processing a Unix command. As they said, it's harmless, but if it hadn't been, it was definitely too late to do anything about it... YIKES.
Fresh-Faced Recruit
Joined Apr 2004
User is offline
My fix
0
05/18, 8:01pm, EDT
I modified the script at /Library/Documentation/Help/MacHelp.help/Contents/Resources/English.lproj/shrd/OpnApp.scpt (as pointed out in the 2nd-to-last link above) so it prompts you whether you want to allow or deny the script to run. If you click "Deny", it will not run:

on «event helphdhp» (completeParam)
-- localizable text
set cancelBtn to "Cancel"
set errorText to "The item cannot be opened. It may be disabled or not installed."
--end localizable text


try
display dialog "Something is trying to run: " & completeParam buttons {"Allow", "Deny"} default button 2 with icon 0

set buttonPressed to (button returned of result)

if (buttonPressed is "Allow") then

tell application "Finder"
open file completeParam of the startup disk
end tell
end if
on error errMsg number errNum
display dialog errorText buttons {cancelBtn} default button 1 with icon 0
return
end try
end «event helphdhp»
Fresh-Faced Recruit
Joined Sep 2000
User is offline
Seriously
0
05/18, 9:23pm, EDT
What's to prevent a script kiddie to post a link (Kournikova!) in Macnn Lounge or in Appleinsider, Macrumors, Macslash, etc that lures unsuspecting people to executive destructive commands!

Sure, one could say the axiom of don't download/open/click/visit whatever from unsuspecting people but we know that do not work in real life.

The next step is would be for someone to write a mail.app script that sends out e-mail to everyone on ones Address Book, spoofs the return address and includes a link and then executes that command on the user's own machine. Voila! The first OS X virus!

(Shudders)
Senior User
Joined Jul 2002
User is offline
Not that serious
0
05/18, 10:03pm, EDT
It looks bad, but because of Mac OS X's Unix's security model, the worse it could do is to blow away the user's home directory. I imagine that even being logged into the machine as the admin user, it wouldn't do that much damage.

Now if the vulnerability allows the script to elevate itself as the superuser (root), that would be a different story. But as it stands now, I don't think that it will happen any time soon.
Fresh-Faced Recruit
Joined May 2004
User is offline
UNIX
0
05/19, 12:36am, EDT
The thing is, real UNIX is far better in security than Apple's bastardation. Apple is trying to make a user-friendly UNIX by compromising the basics of UNIX. It's part of the reason why OS X wouldn't be able to obtain UNIX certification from the Open Group. (FYI, early versions (pre-beta) of OS X qualified for UNIX certification-- the modifications after modifications by the time of deployment removed the OS from certification)
Fresh-Faced Recruit
Joined Sep 2003
User is offline
Re: UNIX
0
05/19, 2:17am, EDT
> Apple is trying to make a user-friendly UNIX by compromising the basics of UNIX.

Example? Proof?

Nope. Just FUD.
Posting Junkie
Joined Nov 2000
User is offline
Oh yeah
0
05/19, 3:11am, EDT
the worse it could do is to blow away the user's home directory

Here, ibmjones, click on this link over here....

Just because you don't think it is serious does not mean it is not serious.
Senior User
Joined Jul 2002
User is offline
Easy there
0
05/19, 3:21am, EDT
Hey Simon, don't use FUD if you do not know what it means.

Apple did modify the basics of UNIX - I would call case insensitivity and unexpected naming of system directories basic enough. Whether I would call it "compromised" is another question, however.
Senior User
Joined Jul 2002
User is offline
additional comments:..1..2..3..Next
Your Comments

In order to post comments: If you are a registered member, please login with your MacNN Forums username and password otherwise please uncheck the checkbox below.


Registered Member?
macnn forums login:

macnn forums password:

Not a member of the MacNN forums? Register now for free.

RSS Feeds

Have the latest content delivered to your desktop via RSS. Use the links below to get access to a specific blog, news, or reviews feed.



  MacNN -all

  MacNN Reviews

  MacNN Podcasts

  iPodNN

  Electronista

  Left Lane News
Want To Sell Your Laptop? Any Condition - receive Top Cash. Get an instant quote. Free shipping www.CashForLaptops.com

Internet Marketing School - 100% Online: Master SEO, SEM, E Commerce, Media & More with a U of San Francisco Certificate.

Buy from The Apple Store, iTunes.com, Amazon.com, TechDepot, OfficeDepot, Computers4Sure, or donate.