Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Is this really a vulnerability?, attaching own machine to NIS and 'su'ing
fishsponge
Posted: Sep 5 2003, 05:41 PM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



I read somewhere that in a NIS setup (if you use NIS for authentication) then someone can plug their own laptop in, for example, 'su' to root (using their own passwd files), and then 'su' to any user available on NIS without needing a password.

has anyone done this??
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
sleazyrob
Posted: Dec 27 2003, 03:00 PM
Quote Post


User Level: 4
****

Group: Members
Posts: 66
Member No.: 8
Joined: 17-February 03



QUOTE (fishsponge @ Sep 5 2003, 05:41 PM)
I read somewhere that in a NIS setup (if you use NIS for authentication) then someone can plug their own laptop in, for example, 'su' to root (using their own passwd files), and then 'su' to any user available on NIS without needing a password.

has anyone done this??

Yes.

NIS just makes the password maps available to all the clients on the network, its then down to the clients to do the actual authentication - NIS can't force that.

When you access most services such as traditional NFS the server relies on the client being honest about who's logged in... ie the client just sends a user ID to the server. If you plug in a foreign (untrusted) machine you can send whatever user ID you want.

To make this setup slightly more secure you can create netgroups (basically a list of clients you trust) and export your NFS filesystems only to those groups. Of course the security of this relies only on trivial to change IP addresses.

Alternatively you could use an authentication scheme such as Kerberos which is much more secure. An authentication server checks you are who you say (and the clients don't have to be trusted) and then allows you to access the service.

Once you've got it set up you have to enable it on a per-service basis (by editing pam.conf).
PMEmail Poster
Top
sleazyrob
Posted: Dec 27 2003, 03:03 PM
Quote Post


User Level: 4
****

Group: Members
Posts: 66
Member No.: 8
Joined: 17-February 03




PS you can use netgroups for every service on a machine using /etc/hosts.allow and /etc/hosts.deny

CODE

/etc/hosts.allow
ALL: LOCAL @mynetgroup

/etc/hosts.deny
ALL: PARANOID


check the man pages though
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | NIS/LDAP/DNS | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.1202 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: Server Room Temperature Monitor :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum