Xsanity Sanity for Apple's Xsan and Final Cut Server.
  
Sunday, May 19 2013 @ 07:40 PM EDT
Topics
Storage (39)
People (1)
Xsan (103)
How To (26)
User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User
Who's Online
Guest Users: 9
Sponsorship

Xsanity is proudly sponsored by:

Tekserve
The Old Reliable Mac Shop

Huge Security Problem

 
Post new topic   Reply to topic    Xsanity Forums Forum Index -> Troubleshooting
View previous topic :: View next topic  
Author Message
Kalagan
Guest





PostPosted: Tue Sep 20, 2005 4:25 pm    Post subject: Huge Security Problem Reply with quote

Unless I am missing something, it seems like any user can throw away any folder they want to, even if they have no R/W Permissions at all, on an Xsan Drive or even a Local Drive!!

Is this correct? Is there anyway to stop this huge security problem?

I have been searching for hours on many Unix and OS X Sites, but I have not been able to find any relevant information about this issue.

Help
Kalagan
Back to top
dgf
Knows DNS is the answer
Knows DNS is the answer


Joined: 20 Jun 2005
Posts: 37

PostPosted: Tue Sep 20, 2005 5:43 pm    Post subject: Re: Huge Security Problem Reply with quote

How are you managing your users? In our OD environment we do not have these issues. Our Xsan 1.1 clients are 10.4.2, but all authenticate against a 10.3.9 OD Master-Replica database. Mounting SAN volumes both via Xsan and shared over afp/smb have the same predictable results as long as the users are OD users. Local NetInfo accounts are a different story though.
Back to top
View user's profile Send private message
Kalagan
Guest





PostPosted: Wed Sep 21, 2005 12:30 pm    Post subject: Security Issue Reply with quote

My latest test has been with a Netinfo Local User. I have not tried it yet with an OD User. Will the results be the same?

How well is your Xsan Environment working setup that way? I though that was not a suggested configuration? Are you running to the problem where Read Only Quicktime files will not play from an AFP Shared Xsan Volume? What version of Quicktime are you using?

Thanks
Kalagan
Back to top
szumlins
partially protected
partially protected


Joined: 22 Aug 2005
Posts: 9

PostPosted: Wed Sep 21, 2005 3:49 pm    Post subject: Re: Security Issue Reply with quote

Kalagan wrote:
My latest test has been with a Netinfo Local User. I have not tried it yet with an OD User. Will the results be the same?

How well is your Xsan Environment working setup that way? I though that was not a suggested configuration? Are you running to the problem where Read Only Quicktime files will not play from an AFP Shared Xsan Volume? What version of Quicktime are you using?

Thanks
Kalagan


It all has to do with the UID number. If your client has the same UID as the admin user on another box, XSan thinks they are the same person. The trick is to either create unique UIDs for all local netinfo clients or to use some sort of directory system. I'd recommend the directory system.

Generally, the first user on any OS X box is 501, second user is 502, etc. Change that and reboot and you should see permissions differences.

You have to remember that XSan works at the hardware level, not the software level, so permissions are just stored UID:GID. If you have a completely unprivelaged user on one box with the same UID or GID of the admin on another, they are going to be able to read/write to each others' files.

Hope that helps.
Back to top
View user's profile Send private message
dgf
Knows DNS is the answer
Knows DNS is the answer


Joined: 20 Jun 2005
Posts: 37

PostPosted: Wed Sep 21, 2005 4:31 pm    Post subject: Re: Security Issue Reply with quote

My Xsan environment has always been OD authentication for the reasons that szumlins states. The only permissions based issue I run into, is that on Xsan volumes, newly created directories have the group designation of the user's primary gid, NOT the designation of the parent directory, as it should. But this should only affect those of us that segment our users into differing groups AND have some users that are members of several groups. I have some workarounds, but I wish the gid designation behaved like it should.

It has always been my impression that while OD is not listed as a requirement, it should be.
Back to top
View user's profile Send private message
Kalagan
Guest





PostPosted: Wed Sep 21, 2005 5:29 pm    Post subject: Reply with quote

I have been able to trash Folders that I didn't create, that I do not own and that I don't have any Access to at all (CHMOD 000). Example; I can step into the Users Folder and Trash lets say the "Music" Folder from another Users Account. I am asked for an Admin Password, but all I need to do is provide the Admin Password for the Account I am in, not the Admin Password for the Owner of the Folder. I just created a new Standard Account and repeated the same process, with the same result. I can trash another Users Music Folder, by providing an Admin Password for an account that is not the Owner of the Folder. That seems a little weird.

I briefly looked into UUCH and SUCH, but those seem like they lock the entire folder, so nothing can be added to it? That doesn't seem like the best solution. Will the sticky bits help here? Sticky Bits seems like they can control the contents of the folder, but not the folder itself and I have heard that they don't seem to work on Xsan Volumes. Is that correct?

This one is a little baffling.

Thanks
Kalagan
Back to top
dgf
Knows DNS is the answer
Knows DNS is the answer


Joined: 20 Jun 2005
Posts: 37

PostPosted: Wed Sep 21, 2005 6:50 pm    Post subject: Re: Security Issue Reply with quote

Kalagan wrote:
I have been able to trash Folders that I didn't create, that I do not own and that I don't have any Access to at all (CHMOD 000). Example; I can step into the Users Folder and Trash lets say the "Music" Folder from another Users Account. I am asked for an Admin Password, but all I need to do is provide the Admin Password for the Account I am in, not the Admin Password for the Owner of the Folder. I just created a new Standard Account and repeated the same process, with the same result. I can trash another Users Music Folder, by providing an Admin Password for an account that is not the Owner of the Folder. That seems a little weird.


This sounds like an incorrectly modified nidb. Where are your home folders?

It may help to, in Terminal type;

Code:
ls -ln


on the folders in question to see what the uid and gid's are.

It has always been my procedure to incorporate OD for Xsan. Do you have Xserve(s) for your MDC(s)? Enable one as an OD Master, bind your clients to it, and don't replicate uid's from the nidb (you'd have to go out of your way to do that anyway). Ideally you have 2 MDC's, and your secondary can be the OD master with the MDC primary as the replica. Or even better, my situation with an independent OD Master-Replica pair. This is more $$$, but then again downtime costs too.
Back to top
View user's profile Send private message
Kalagan
Guest





PostPosted: Wed Sep 21, 2005 8:48 pm    Post subject: Reply with quote

My current tests haven't been on an Xsan Volume, but a friend of mine has run the same test on Xsan Volumes and got the same results. Read/Write permissions seem to work. If you don't have Read or Write then you can't access the folder. But you can throw it away and empty the trash.

My test I referred to eariler, was on our local drive and that test ended up with the same results. I ran ls -ln and the Music Folders were owned by the correct User Admin 501 in one case and Admin User 502 in the other. But I was still able to trash the Music folder of Admin User 501 while I was logged in as Standard User 503. I was asked for an Admin password, so I entered the Password for Admin User 502. I was then allowed to put the Music Folder of Admin User 501 in the trash and empty the Trash.

Sounds like a big gapping whole in the security of OS X?

Kalagan
Back to top
aaron
Site Admin
Site Admin


Joined: 19 Mar 2005
Posts: 405

PostPosted: Fri Sep 23, 2005 4:47 am    Post subject: Reply with quote

Quote:
Sounds like a big gapping whole in the security of OS X?


The big gaping hole was when you shared your admin password with other users.

Remember that on Xsan, everyone is sharing the same local disk. There is no server to arbitrate permissions, so each workstation must be more carefully set up.

A few best practices:

  • Each computer should log in as a different user, with unique UIDs.
  • Users should not log in with admin privs
  • Maintain a standard local admin for emergencies
  • Always use an Open Directory server with Xsan, so permissions don't become unbearable
  • Keep your MDC and OD servers separate
  • Use an OD slave, since OD is almost as critical as MD.
  • Keep all OD users in the same primary group
  • For each client, for each user, up an appropriate umask to maintain r/w group permissions.


That last step gives everyone read/write permission for everyone else's files, if the parent folder is set up that way. If you want privacy, use Xsan Admin or the Finder to set more restrictive permissions for some folders.

Aaron Freimark
Tekserve Professional Services
212-929-3645 x301
Back to top
View user's profile Send private message Visit poster's website
Kalagan
Guest





PostPosted: Fri Sep 23, 2005 5:07 pm    Post subject: Reply with quote

aaron,

why should you keep all users in the same primary group? I have been doing this to keep it simple for me, but is there a more important Xsan reason?

thanks
Kalagan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Xsanity Forums Forum Index -> Troubleshooting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Best Viewed on a Mac | Suggested Browser: Whatever floats yer boat.