|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
macrumors member
Join Date: Jan 2005
Location: Germany
|
Here my Safari/Mac OS X Exploit, Worm, whatever..
On my homepage
http://www.mathematik.uni-ulm.de/num.../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 Last edited by michaellehn : Feb 20, 2006 at 04:07 PM. |
|
|
|
| michaellehn |
| View Public Profile |
| Find More Posts by michaellehn |
|
|
#2 |
|
macrumors 68040
|
o dear , whatever next
not too sure what to make of these "Smithers release the hounds" |
|
|
|
|
|
#3 |
|
macrumors 601
Join Date: Oct 2003
|
That's scary. When did you tell Apple about it?
|
|
|
|
|
|
#4 |
|
macrumors 68030
Join Date: Mar 2005
Location: A religiously oppressed state
|
Hmmm this seems a lot like when there was that widget "virus" then Apple added the warning for downloading widgets.
|
|
|
|
|
|
#5 | |
|
Thread Starter
macrumors member
Join Date: Jan 2005
Location: Germany
|
Quote:
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. |
|
|
|
|
| michaellehn |
| View Public Profile |
| Find More Posts by michaellehn |
|
|
#6 |
|
macrumors 68030
Join Date: Mar 2005
Location: A religiously oppressed state
|
Loos like UNIX is coming back to bite Apple in the a**, so far all the bug exploits have been with Terminal.
|
|
|
|
|
|
#7 |
|
Thread Starter
macrumors member
Join Date: Jan 2005
Location: Germany
|
Here an article in English:
|
|
|
|
| michaellehn |
| View Public Profile |
| Find More Posts by michaellehn |
|
|
#8 | |
|
Thread Starter
macrumors member
Join Date: Jan 2005
Location: Germany
|
Quote:
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 :-) |
|
|
|
|
| michaellehn |
| View Public Profile |
| Find More Posts by michaellehn |
|
|
#9 |
|
macrumors 68000
|
Tried the example on the website. It's kinda scary, because the file has a correct-looking extension even though it opens in terminal.
|
|
|
|
|
|
#10 | |
|
Thread Starter
macrumors member
Join Date: Jan 2005
Location: Germany
|
Quote:
|
|
|
|
|
| michaellehn |
| View Public Profile |
| Find More Posts by michaellehn |
|
|
#11 |
|
Retired (Moderator emeritus)
Join Date: Jun 2002
Location: Gone but not forgotten.
|
Of course, when you look at the file after opening the archive, it says that it's a Terminal document, even though the extension is .MOV.
Besides, the automatic opening of such files was disabled automatically quite a while ago (during Jaguar?) because of such an exploit. |
|
|
|
|
|
#12 | |
|
Thread Starter
macrumors member
Join Date: Jan 2005
Location: Germany
|
Quote:
|
|
|
|
|
| michaellehn |
| View Public Profile |
| Find More Posts by michaellehn |
|
|
#13 | |||
|
Demi-God (Moderator)
Join Date: Mar 2004
Location: Andover, MA
|
Quote:
Quote:
Quote:
Similarly, in a new user account on my PMG5, I see that the exploit works. So it is definitely not a universal truth that this is disabled. And, regardless of the default setting... most people will enable it once they discover that they can. And therefore be vulnerable.
__________________
You'll be the one moaning for me to give you some. - THC(taken out of context)
Last edited by Doctor Q : Feb 20, 2006 at 10:06 PM. Reason: post merge |
|||
|
|
|
|
|
#14 | |
|
Demi-God (Editor)
|
Quote:
|
|
|
|
|
|
|
#15 |
|
macrumors 601
Join Date: May 2002
Location: Blinking blue dot
|
Not the first flaw nor the last, and I don't see how it would help anyone create a virus or worm--but it would lead to Trojans, and should be patched. Sounds pretty easy for Apple to do.
I've always had Open Safe Files disabled because it annoys me. Sometimes I want to keep the archive, sometimes not, and it annoyed me how the archive would always end up in the trash. I can see how many people would like Open Safe though, and I hope it's patched soon. I'm pretty sure it IS on by default. |
|
|
|
|
|
#16 | |
|
macrumors god
Join Date: Sep 2002
Location: at the table with countless relatives
|
Quote:
__________________
"You've just been abducted, of course you need crepes!" -- Walter Bishop |
|
|
|
|
|
|
#17 |
|
macrumors 68040
Join Date: Jun 2004
Location: Chicago, IL
|
I'm sorry, but the first thing I do in Safari when I use it for the first time on a new computer is to disable the automatic opening of downloaded files. There's just something about the computer doing all that stuff in the background that freaks me out a bit. I also like to have the confirmation that I properly downloaded the file and it opened fine.
But I guess it all works as a security fix, too. |
|
|
|
|
|
#18 |
|
macrumors newbie
Join Date: Jul 2003
|
Ha... I use tcsh as my default shell, so it just poops out after it launches. Still, scary stuff... they will have to change the "open" command to warn against, or simply restrict, shell scripts in order to fix this. The problem is not really with Safari ... it is with the way that OS X launches files in general. It allows you to have a benign-looking file be a shell script in disguise!
If a solution isn't presented this week, I will be shocked.
|
|
|
|
| jon_010101 |
| View Public Profile |
| Find More Posts by jon_010101 |
|
|
#19 | |
|
macrumors 68040
|
Quote:
__________________
If I go on a crazy non-sensical rant, it's the painkillers talking. If however I make perfect sense I take full credit. |
|
|
|
|
|
|
#20 | |
|
Demi-God (Moderator)
Join Date: Mar 2004
Location: Andover, MA
|
Quote:
__________________
You'll be the one moaning for me to give you some. - THC(taken out of context)
|
|
|
|
|
|
|
#21 |
|
macrumors newbie
Join Date: Jul 2004
|
Yeah I know about this one since ToastyX posted an example here http://forums.macrumors.com/showthread.php?t=181026. I was a little panicked and didn't know how to handle the situation I replied explaining how dangerous it was. Eventually I edited my replies since I thought it would give bad ideas to hackers.
I was hoping that this was the only place where this vulnerability was disclosed, and that Apple would have time to deal with it before the "news" started to spread. But it seems that it was already repeated by others. michaellehn, you seem to say that you discovered this issue (you say "my exploit") Then how come I have a lower bug report number on Apple? (#4450231) That means that I reported the issue before you, and I'm not even the one that discovered it! Why are you so keen to disclose the news to everyone (media etc.) before sending the bug to Apple? Free publicity for your blog? To warn everyone to turn off "open safe files"? I guess it's the latter, but was it the best thing to do? You wrote: I think after the report of the first "virus" it was just a matter of time that someone would exploit this. Well it will happen if you tell hackers about the exploit! Was this known before? I guess that one thing could indicate it was the "right" decision to disclose the issue to the public as quickly as possible. That thing is: It looks like the Leap-A author knew about this bug... Why do I think that? The author seems to have specifically avoided to trigger the exploit: The file is in a format that Safari cannot decompress (.tar) so it gives a warning, and doesn't execute because of that. So tell me why the author didn't try the least detectable option: putting it in a .zip? Because it would have triggered this exploit... So I guess the Leap-A author is a "friendly" hacker that wanted to warn us without doing too much damage. Here's an interesting idea, add this line to your benign exploit: defaults write com.apple.Safari AutoOpenSafeDownloads 0 This will turn off that maligned option in Safari automatically! Last edited by VL-Tone : Feb 21, 2006 at 12:59 AM. |
|
|
|
|
|
#22 |
|
macrumors 68000
|
Well that's a bit more than quite disturbing. Much more so than Oompa or Inqtana. Apple needs to fix this, and quickly.
__________________
I bring order to chaos. You are in chaos Windows, you are the contradiction, a bug wishing to be an OS. Visit Softyards Software NEW DEFINITION OF GEEK Like politics, free speech, computers, entertainment, and more? Join us at Wordforge.net |
|
|
|
|
|
#23 | |
|
Retired (Moderator emeritus)
Join Date: Jun 2002
Location: Gone but not forgotten.
|
Quote:
|
|
|
|
|
|
|
#24 |
|
macrumors 6502
Join Date: Nov 2005
|
Guys, use firefox, their bigger user base promises faster revealing of problems and faster fixes.
As a Hebrew reader, I can confirm that Safari has terrible problems with displaying right-to-left layouts (like it has terrible support for any right-to-left feature in any piece of software, including iWork), and therefore the pages look weird and not like the developer intended. However, using firefox (or Opera) fixes all that without a problem. Mac Os X still has a long way to go in universal compatibility. I'm afraid Microsoft are way ahead of them in that department. Oded S. |
|
|
|
|
|
#25 |
|
Demi-God (Moderator)
Join Date: Dec 2002
Location: Whakatane, New Zealand
|
Interesting, I have Ventrilo Server running in a terminal 24/7, and that seemed to prevent execution of the script. It brought Ventrilo to the front, but didn't print the "hack" message.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|