Got a tip for us? Share it...

Safari Security Flaw Reported [Updated]

Member Michael Lehn today reported the discovery of a security flaw in the Open "safe" files after downloading feature of Safari, also being reported by heise online. The flaw has been independantly confirmed.

When the Open "safe" files option is checked in the General tab of Safari preferences, a downloaded archive (zip file) containing a shell script named with a .jpg or .mov extension and missing the standard #!/bin/bash line can cause Safari to execute the shell script in the Terminal application without a confirmation prompt. A shell script has the privileges of the logged-in user, so in theory if a malicious script was executed this way, home folder files would be suspectible to damage. If the user was an administrator, system files and applications could be affected as well.

Two preventative measures can be used to avoid the flaw: (1) Disabling the Open "safe" files after downloading feature in Safari preferences. (2) Moving the Terminal application out of its normal location in the Applications/Utilities folder. The former method may be inconvenient during other routine downloads, while the latter may need to be reversed while performing Mac OS X updates.

The problem does not apply to other commonly used web browsers.

So far, a demonstration (proof of concept) download has been created, but no real exploits are known to exist. The problem has been reported to Apple Computer.

[Update] CNET reports that Apple is developing a patch for this security flaw, quoting an Apple representative as saying "We're working on a fix so that this doesn't become something that could affect customers" but without giving a delivery date for an update. Because the problem can reportedly affect Mail as well as Safari, the update may come in the form of changes to Mac OS X, not to Safari alone.

Top Rated Comments

(View all)

78 months ago
On my homepage

http://www.mathematik.uni-ulm.de/numerik/staff/lehn/index_us.html

I am hosting an exploit for Safari on Mac OS X. It requires that in Safari the option has to be enabled that allows "secure files" to be lunched automatically. Many users have this option enabled.

In this case it is sufficient that if you click on a link an shell-script is executed. In my example the shell script only prints "Hallo Welt". But it also could send emails or delete the user's home directory.

There will be no warning.

In several German online sites it was reported about my exploit:


http://www.heise.de/newsticker/meldung/69854

http://www.macnews.de/news/74203

http://www.macwelt.de/news/macosx/336525/index.html

best regards from Ulm/Germany,

Michael
Rating: 0 Positives / 0 Negatives
78 months ago
o dear , whatever next :eek:

not too sure what to make of these


"Smithers release the hounds"
Rating: 0 Positives / 0 Negatives
78 months ago
That's scary. When did you tell Apple about it?
Rating: 0 Positives / 0 Negatives
78 months ago
Hmmm this seems a lot like when there was that widget "virus" then Apple added the warning for downloading widgets.
Rating: 0 Positives / 0 Negatives
78 months ago

That's scary. When did you tell Apple about it?


It is bug #4450856. My last bug has state "open" for almost one year. So I added a note asking them to have a look at my first bug after they are done with the current bug. Ok, this old bug was not critical, just annoying.

About publishing security holes in public. I think after the report of the first "virus" it was just a matter of time that someone would exploit this. It only took me 3 lines for a shell script, 3 tries and at most 15 minutes. Only if such issues are published as fast as possible people are warned. If I would no publish it Mac-user would have the wrong feeling that clicking on links is NOT dangerous. This would be fatal.

About how serious this thing is: The shell script could also delete your home directory and send Emails from your account. If you have the appropriate permissions it could also modify applications.
Rating: 0 Positives / 0 Negatives
78 months ago
Loos like UNIX is coming back to bite Apple in the a**, so far all the bug exploits have been with Terminal.
Rating: 0 Positives / 0 Negatives
78 months ago
Rating: 0 Positives / 0 Negatives
78 months ago

Loos like UNIX is coming back to bite Apple in the a**, so far all the bug exploits have been with Terminal.


the UNIX part of Mac OS X is the most safest part!

The problem is the part that allows that a downloaded file get automatically executed.

Without the UNIX part there would be holes like in Windows. You just connect to the internet and you get infected. WITHOUT CLICKING OR DOING ANYTHING.

We experience this here every day. And thanks to the UNIX part there soon will switch a legion a Ex-Linux-Geeks to Mac OS. Fixing whatever shows up :-)
Rating: 0 Positives / 0 Negatives
78 months ago
Tried the example on the website. It's kinda scary, because the file has a correct-looking extension even though it opens in terminal.
Rating: 0 Positives / 0 Negatives
78 months ago

Tried the example on the website. It's kinda scary, because the file has a correct-looking extension even though it opens in terminal.


In deed it is scary. So make sure to tell everybody to deactivate this option in Safari! That's the fastest and easiest way to protect yourself.
Rating: 0 Positives / 0 Negatives

[ Read All Comments ]