image
image

Go Back   macosx.com > Content & Information > Apple News, Rumors & Discussion

Reply
 
Thread Tools
  #1  
Old December 17th, 2002, 03:16 AM
solrac's Avatar
Quad 6 ghz G5 Tower
 
Join Date: Oct 2000
Location: LA, CA
Posts: 840
Thanks: 0
Thanked 0 Times in 0 Posts
solrac is on a distinguished road
Exclamation GIANT HUMONGOUS HOLE in mac os x security!!!


Login to a Mac OS X's user's account through windows file sharing on a PC....

Let's assume there are 2 users, one called "Administrator", and the other called "Guest". Guest has no priveledges, Adnimistrator has admin priveledges.

The PC in question is a Windows 2000 Pro box. It finds the mac in the "my network places / computers near me" window.

The PC user clicks on the mac's computer icon and enters the username "Guest", and its password... uh.. "guest".

The PC logs in fine. An explorer window opens up with this in the address bar:
\\Macintosh-computer\guest

All I have to do now, is change that to
\\Macintosh-computer\administrator

BOOM! I have access to the administrator's files, and I can even write to disk and delete things!!!

And if I copy a file to the administrator, and try to open it as administrator, I can't! It belongs to "guest"!! It's retarded!!!

So basically, if you log in to ANY user account through windows, you automatically have access to ALL user accounts, including administrators!

Except for root (thank god). Root is not accessible, but only by a "path not found" error, not a "password incorrect" error. Very unsettling...

What do we do????
__________________
-Soon 2 B mkiv Toyota Supra Twin Turbo 6 Speed --- supraforums.com-
Reply With Quote
  #2  
Old December 17th, 2002, 07:32 AM
senne's Avatar
Registered User
 
Join Date: Aug 2001
Location: Antwerp, Belgium
Posts: 1,538
Thanks: 0
Thanked 0 Times in 0 Posts
senne is on a distinguished road
we call apple!
__________________
mac user since 1985
Reply With Quote
  #3  
Old December 17th, 2002, 08:02 AM
fryke's Avatar
Super Moderator
 
Join Date: Sep 2000
Location: macosx.com
Posts: 13,498
Thanks: 2
Thanked 32 Times in 30 Posts
fryke has a spectacular aura aboutfryke has a spectacular aura about
Hmm... can you actually CHANGE admin's files or just read them and write new ones? Does the guest account belong to the same group as administrator? Are the administrator's files set to be group readable, the directories set to group writeable?
__________________
macnews.net.tc is active again.
iMac 24" 2.4 GHz, 4 GB RAM, 320 GB HD. Mac OS X 10.5.6
MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.6
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
  #4  
Old December 17th, 2002, 12:28 PM
Jason's Avatar
Eyebrow Moderator
 
Join Date: Jul 2002
Location: Hyattsville, MD
Posts: 2,038
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is on a distinguished road
you can set priveledges via samba though
__________________
• A S Y L U M •
Reply With Quote
  #5  
Old December 17th, 2002, 12:47 PM
solrac's Avatar
Quad 6 ghz G5 Tower
 
Join Date: Oct 2000
Location: LA, CA
Posts: 840
Thanks: 0
Thanked 0 Times in 0 Posts
solrac is on a distinguished road
it doesn't matter!!!!!

If you try to access another user's files, you should be asked for a password!!!!

RIGHT????
__________________
-Soon 2 B mkiv Toyota Supra Twin Turbo 6 Speed --- supraforums.com-
Reply With Quote
  #6  
Old December 17th, 2002, 01:06 PM
Sogni's Avatar
*gone*
 
Join Date: Sep 2001
Posts: 1,574
Thanks: 0
Thanked 0 Times in 0 Posts
Sogni is on a distinguished road
Um...
I don't have a "guest" user on my Mac,
Checked Accounts from Prefs, checked NetInfo Manager, 'n checked /etc/passwd.
No "guest" account...
__________________
I'm not around here (much) anymore...
Look for me in friendlier places.
Reply With Quote
  #7  
Old December 17th, 2002, 01:13 PM
Sogni's Avatar
*gone*
 
Join Date: Sep 2001
Posts: 1,574
Thanks: 0
Thanked 0 Times in 0 Posts
Sogni is on a distinguished road
Since I have no "guest" account, I created a test account... did what you did and I can ONLY get the to root folder for that user, which only shows all the sub-folders - that's it! Nothing more!

I can't browse through the sub-folders nor write files ("Unable to create the folder 'New Folder', Access is denied").

I do have two folders I can browse through, wich are "Sites" and "Scripts", because I have changed permissions on them previously.

Code:
drwx------   7 sogni  staff    238 Dec 17 09:50 Desktop
drwx------  16 sogni  staff    544 Dec 15 00:01 Documents
drwx------  32 sogni  staff   1088 Dec 15 23:57 Library
drwx------   5 sogni  staff    170 Dec 14 22:36 Movies
drwx------   6 sogni  staff    204 Dec 12 10:20 Music
drwx------  13 sogni  staff    442 Dec 12 13:14 Pictures
drwxr-xr-x   4 sogni  staff    136 Dec 11 21:29 Public
drwxrwxrwx  10 sogni  staff    340 Nov 24 14:02 Remote Connections
drwxrwxrwx   6 sogni  staff    204 Dec 12 10:50 Scripts
drwxr-xr-x  12 sogni  staff    408 Dec 12 10:20 Sites
You might want to fix your permissions so that the files can't be mucked with. As you can see, I make it a habit to NOT write anything to the root directory on my account, everything is inside of the other folders - that are well protected.
__________________
I'm not around here (much) anymore...
Look for me in friendlier places.
Reply With Quote
  #8  
Old December 17th, 2002, 01:25 PM
Sogni's Avatar
*gone*
 
Join Date: Sep 2001
Posts: 1,574
Thanks: 0
Thanked 0 Times in 0 Posts
Sogni is on a distinguished road
To fix your permissions, simply launch the Terminal App, and you'll automatically be placed in your root folder, so type this:

Code:
chmod u=rwx,g=,o= folder/
where "folder/" are the individual folders you don't want people having access to.

Also, if you don't want anyone AT ALL to access your user's folder, from the terminal simply do this:

Code:
cd /Users
chmod u=rwx,g=,o= user/
where "user/" is your user directory.

My folder now looks like this:
Code:
drwx------  27 sogni  staff    918 Dec 12 12:49 Applications
drwx------   7 sogni  staff    238 Dec 17 09:50 Desktop
drwx------  16 sogni  staff    544 Dec 15 00:01 Documents
drwx------  32 sogni  staff   1088 Dec 15 23:57 Library
drwx------   5 sogni  staff    170 Dec 14 22:36 Movies
drwx------   6 sogni  staff    204 Dec 12 10:20 Music
drwx------  13 sogni  staff    442 Dec 12 13:14 Pictures
drwxr-xr-x   4 sogni  staff    136 Dec 11 21:29 Public
drwx------  10 sogni  staff    340 Nov 24 14:02 Remote Connections
drwx------   6 sogni  staff    204 Dec 12 10:50 Scripts
drwx------  12 sogni  staff    408 Dec 12 10:20 Sites
And NO ONE can access my folder from another computer - BUT doing the 2nd command disables the ability to share files from the 'Public' folder, so only do the 2nd command if you REALLY want to keep everyone out. :P
__________________
I'm not around here (much) anymore...
Look for me in friendlier places.
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
A bit of nostalgia: A Salute to Mac OS X simX Apple News, Rumors & Discussion 31 March 24th, 2005 07:45 AM
HP Photosmart 1315 and USB Print Sharing zwheeloc Mac Classic System & Software 12 February 6th, 2003 09:20 PM
BIG security hole in Mac OS X!! senne Apple News, Rumors & Discussion 14 December 17th, 2002 12:08 AM
apps list Mac Osxtopus Mac OS X System & Mac Software 7 May 29th, 2002 12:31 PM
Apple: Forget XP, try the Mac tagliatelle Bob's Place 1 November 25th, 2001 07:12 AM


All times are GMT -5. The time now is 02:13 PM.


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