image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #9  
Old May 19th, 2005, 12:49 PM
Captain Code's Avatar
Moderator
 
Join Date: Aug 2001
Location: Ontario, Canada
Posts: 3,108
Thanks: 0
Thanked 1 Time in 1 Post
Captain Code will become famous soon enough
That is something that they should improve. I don't think that sudo should be allowed to execute at all via Dashboard. Having it able to run any command whatsoever isn't really a good idea.

Just imagine some widget that is not sleeping running the command sudo rm -rf / every 2 seconds.

Most of the time it would fail but if you then sudo xxxx something else in Terminal you could wipe out most of your HD in seconds.

This command would have to be hidden behind some real use for the widget but there's nothing stopping someone from making some dancing girl widget with a malicious intent.

In addition I think sudo timeout should be limited to each Terminal session/window and not a global setting.
__________________
MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
Athlon 64 Windoze XP for school work (programming) 1GB RAM
dferns@macosx.com
Reply With Quote
  #10  
Old May 19th, 2005, 12:54 PM
Registered User
 
Join Date: May 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
jzdziarski is on a distinguished road
I think part of the problem is that the Dock probably uses the same tty as everything else running in the gui portion of the system. Being part of the dock seems dumb to me, as I'd think everything you launched off the doc would have it as a parent (including widgets).

But why have a grace period at all? Just make users type their password repeatedly. If someone needs to execute _that_ many commands as root, do a 'sudo -s' and get a root shell. I removed my timeout - no more problem.

But yeah, it'd be nice to limit it to one specific application or terminal.
Reply With Quote
  #11  
Old May 19th, 2005, 01:40 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
This is where I think security is more important than usability. Apple should make the time out default.

Thanks for the tip.
Reply With Quote
  #12  
Old May 19th, 2005, 01:41 PM
davidbrit2's Avatar
Licensed Computer Geek
 
Join Date: Sep 2000
Location: Michigan, USA
Posts: 787
Thanks: 0
Thanked 0 Times in 0 Posts
davidbrit2 is on a distinguished road
Hmm, interesting. But is there some reason that plain old applications can't do the same thing, i.e. was this not possible until the advent of Dashboard?
__________________
You can have my iBook when you pry it from my cold, dead fingers.
iBook - The computer of choice for the enlightened CS major. Come on Apple, let me do a commercial. ;-)
"An alloc a day keeps the DRAM away!"
Reply With Quote
  #13  
Old May 19th, 2005, 06:32 PM
Registered User
 
Join Date: May 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
jzdziarski is on a distinguished road
Apps could do the same thing, but widgets I feel are a higher risk, because:

1. Nobody suspects javascript to be able to execute binaries (they were given an interface in widgets)
2. Widgets run in the background for the duration of the user's session
3. The dashboard is generally not visible to the user unless it is specifically activated
4. Users are likely to download and run many widgets simultaneously
5. Widgets, being mini-applications, cater to a much wider class of users
6. To make a good trojan all you have to do is write a few lines of widget code to make it interesting enough to download...and people will blindly download and run it (the cattle theory)
Reply With Quote
  #14  
Old May 19th, 2005, 07:14 PM
davidbrit2's Avatar
Licensed Computer Geek
 
Join Date: Sep 2000
Location: Michigan, USA
Posts: 787
Thanks: 0
Thanked 0 Times in 0 Posts
davidbrit2 is on a distinguished road
Yeah, the risk is definitely higher, but I suppose the potential is about the same. In any case, this will be something to watch out for.
__________________
You can have my iBook when you pry it from my cold, dead fingers.
iBook - The computer of choice for the enlightened CS major. Come on Apple, let me do a commercial. ;-)
"An alloc a day keeps the DRAM away!"
Reply With Quote
  #15  
Old May 19th, 2005, 08:59 PM
fryke's Avatar
Super Moderator
 
Join Date: Sep 2000
Location: macosx.com
Posts: 13,325
Thanks: 2
Thanked 21 Times in 19 Posts
fryke has a spectacular aura aboutfryke has a spectacular aura about
Shall I be the one painting the _really_ dark picture? We've always said that the Mac was inherently safe. That Mac viri wouldn't spread like Windows viri, because they couldn't use the Mac's E-Mail applications like they could with Windows, spreading stuff quickly all over the place.

1.) Someone writes a malicious Dashboard widget that looks delicious.
2.) Someone writes a Windows worm/virus combo that spreads all over the net.
3.) The worm starts using the Windows machines and will be sending out millions of E-Mails containing the Dashboard widget.

Windows, in this dark picture, will be a needed part. But it's not like there weren't any Windows machines out there, right?
__________________
MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.5
Hackintosh Core2Duo 2.4 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5
iPhone 3G 16 GB white, AppleTV 1G 40 GB

Mac user since 1987, Apple Product Professional 2007, 2008. Apple Certified Support Professional 10.5
Reply With Quote
  #16  
Old May 20th, 2005, 09:29 PM
Registered User
 
Join Date: May 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
jzdziarski is on a distinguished road
It looks like c|net thought this was important enough to write an article about:

http://news.com.com/Widget+security+...5752&subj=news

Lets hope that Apple decides to do something constructive and fix it.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weather Widget Scottfab Mac OS X System & Mac Software 2 May 17th, 2005 11:15 AM


All times are GMT -5. The time now is 01:02 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.