Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 4 1234 LastLast
Results 1 to 8 of 30
  1. #1
    solrac's Avatar
    solrac is offline Mac Ninja
    Join Date
    Oct 2000
    Location
    LA, CA
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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????

  2. #2
    senne's Avatar
    senne is offline Registered User
    Join Date
    Aug 2001
    Location
    Antwerp, Belgium
    Posts
    1,538
    Thanks
    0
    Thanked 0 Times in 0 Posts
    we call apple!
    mac user since 1985

  3. #3
    fryke's Avatar
    fryke is offline Super Moderator
    Join Date
    Sep 2000
    Location
    macosx.com
    Posts
    14,287
    Thanks
    15
    Thanked 120 Times in 109 Posts
    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?
    Mac user since 1987. Running Mac OS X 10.8 Mountain Lion on a MacBook Air 11" & an iMac 27" and whatever's newest for my iPhone 4s, iPad 3 and AppleTV 2.
    Apple Certified System Administrator 10.6, Apple Sales Professional 2008-2011, Apple Certified Mac Technician.

  4. #4
    Jason's Avatar
    Jason is offline Eyebrow Moderator
    Join Date
    Jul 2002
    Location
    Hyattsville, MD
    Posts
    2,045
    Thanks
    0
    Thanked 3 Times in 3 Posts
    you can set priveledges via samba though

  5. #5
    solrac's Avatar
    solrac is offline Mac Ninja
    Join Date
    Oct 2000
    Location
    LA, CA
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it doesn't matter!!!!!

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

    RIGHT????

  6. #6
    Sogni's Avatar
    Sogni is offline *gone*
    Join Date
    Sep 2001
    Posts
    1,574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  7. #7
    Sogni's Avatar
    Sogni is offline *gone*
    Join Date
    Sep 2001
    Posts
    1,574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  8. #8
    Sogni's Avatar
    Sogni is offline *gone*
    Join Date
    Sep 2001
    Posts
    1,574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

 

 
Page 1 of 4 1234 LastLast

Similar Threads

  1. A bit of nostalgia: A Salute to Mac OS X
    By simX in forum Apple News, Rumors & Discussion
    Replies: 31
    Last Post: March 24th, 2005, 06:45 AM
  2. HP Photosmart 1315 and USB Print Sharing
    By zwheeloc in forum Mac Classic System & Software
    Replies: 12
    Last Post: February 6th, 2003, 08:20 PM
  3. BIG security hole in Mac OS X!!
    By senne in forum Apple News, Rumors & Discussion
    Replies: 14
    Last Post: December 16th, 2002, 11:08 PM
  4. apps list
    By Mac Osxtopus in forum Mac OS X System & Mac Software
    Replies: 7
    Last Post: May 29th, 2002, 11:31 AM
  5. Apple: Forget XP, try the Mac
    By tagliatelle in forum Bob's Place
    Replies: 1
    Last Post: November 25th, 2001, 06:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •