Skip to contentSkip to conversation

Kerberos+NFSv4: Security - Multiple sessions with same user. One ticket for all?

DISCUSSION Carlos André 4 participants 5 messages Aug 26, 2009 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I got a strange security issue. I logon via SSH or local console with my user and get a ticket, then if local root su to my user, local root can access my files.

I'm using CentOS 5.3:
kernel-2.6.18-128.2.1.el5
krb5-workstation-1.6.1-31.el5_3.3

SESSION 1:
-----------------------------------------------------------------

$ ssh [email protected]
[email protected]'s password:
Last login: Wed Aug 26 08:06:49 2009 from X
[root@KSTATION ~]# su carlos.andre
[carlos.andre@KSTATION root]$ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_10000)

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached [carlos.andre@KSTATION root]$ cd /misc/home/carlos.andre
bash: cd: /misc/home/carlos.andre: Permission denied [carlos.andre@KSTATION root]$
-----------------------------------------------------------------
[--OK--]

SESSION 2:
-----------------------------------------------------------------

$ ssh [email protected]
[email protected]'s password:
Last login: Wed Aug 26 08:01:33 2009 from X
[carlos.andre@KSTATION ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_10000_PPLMqF
Default principal: [email protected]
Valid starting     Expires            Service principal
08/26/09 08:30:12  08/26/09 18:30:12  krbtgt/[email protected]
        renew until 08/26/09 08:30:12

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached [carlos.andre@KSTATION ~]$ cd /misc/home/carlos.andre [carlos.andre@KSTATION carlos.andre]$ ls -la total 8
drwxrwx--- 2 carlos.andre users 4096 Aug 21 09:04 .
drwxr-xr-x 3 root root 0 Aug 26 08:30 ..
[carlos.andre@KSTATION carlos.andre]$
-----------------------------------------------------------------
[--OK--]

NOW BACK TO SESSION 1:
-----------------------------------------------------------------
[carlos.andre@KSTATION root]$ cd /misc/home/carlos.andre [carlos.andre@KSTATION carlos.andre]$ ls -la
total 8
drwxrwx--- 2 carlos.andre users 4096 Aug 21 09:04 .
drwxr-xr-x 3 root root 0 Aug 26 08:30 ..
[carlos.andre@KSTATION carlos.andre]$ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_10000)

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached
[carlos.andre@KSTATION carlos.andre]$
-----------------------------------------------------------------
[WTF!?!?]

Then, if I log on someone machine, local root user (and 'su' to my user) will have access to my files like NFS without Kerberos?? This behavior is "correct" or it's a bug?
And more strange it's credentials, root 'su'ed to my user doesnt got credentials, but still have access to my files...

Or I'm doing something wrong? -_-'

Thanks.

#1 lore raw

VGhpcyBpc3N1ZSBoYXMgYWxyZWFkeSBiZWVuIGRpc2N1c3NlZCBvbiB0aGlzIGxpc3QuCkxvY2Fs IHJvb3QgaGFzIGFjY2VzcyB0byBhbGwgY3JlZGVudGlhbHMgc3RvcmVkIG9uIHRoYXQgbWFjaGlu ZSBhbmQgCnRoZXJlIGlzIG5vdGhpbmcgeW91IGNhbiBkbyB3aXRoIHRoaXMuIFlvdSBjYW4gb25s eSB0ZWxsIHRoZSB1c2VyIG5vdCB0byAKbG9nIHRvIGEgbWFjaGluZSB3aGljaCBpcyBhbHJlYWR5 IGNvbXByb21pc2VkIGJ5IG1hbGljaW91cyBhdHRhY2tlciAKaGF2aW5nIHJvb3QgYWNjZXNzLgpP bmRyZWoKCkNhcmxvcyBBbmRyw6kgd3JvdGU6Cj4gSSBnb3QgYSBzdHJhbmdlIHNlY3VyaXR5IGlz c3VlLiBJIGxvZ29uIHZpYSBTU0ggb3IgbG9jYWwgY29uc29sZSB3aXRoCj4gbXkgdXNlciBhbmQg Z2V0IGEgdGlja2V0LCB0aGVuIGlmIGxvY2FsIHJvb3Qgc3UgdG8gbXkgdXNlciwgbG9jYWwgcm9v dAo+IGNhbiBhY2Nlc3MgbXkgZmlsZXMuCj4KPiBJJ20gdXNpbmcgQ2VudE9TIDUuMzoKPiBrZXJu ZWwtMi42LjE4LTEyOC4yLjEuZWw1Cj4ga3JiNS13b3Jrc3Rhd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Jjb3JyZWN0IiBvciBpdCdzIGEgYnVnPwo+IEFuZCBtb3JlIHN0cmFuZ2UgaXQn cyBjcmVkZW50aWFscywgcm9vdCAnc3UnZWQgdG8gbXkgdXNlciBkb2VzbnQgZ290Cj4gY3JlZGVu dGlhbHMsIGJ1dCBzdGlsbCBoYXZlIGFjY2VzcyB0byBteSBmaWxlcy4uLgo+Cj4gT3IgSSdtIGRv aW5nIHNvbWV0aGluZyB3cm9uZz8gLV8tJwo+Cj4gVGhhbmtzLgo+IF9fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gTkZTdjQgbWFpbGluZyBsaXN0Cj4gTkZT djRAbGludXgtbmZzLm9yZwo+IGh0dHA6Ly9saW51eC1uZnMub3JnL2NnaS1iaW4vbWFpbG1hbi9s aXN0aW5mby9uZnN2NAo+ICAgCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fXwpORlN2NCBtYWlsaW5nIGxpc3QKTkZTdjRAbGludXgtbmZzLm9yZwpodHRwOi8v bGludXgtbmZzLm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbmZzdjQ=

#2 lore raw

This is the security issue of NFS which exists extensively in NIS directory environment since regular NFS authentication depends on UID and GID.

$ ypcat password |grep $FOO to get the user FOO's UID and GID;
Local root of ANY machine in this Directory could create a faked user with
FOO's UID and GID through cmd "groupadd" and "useradd", and then access
FOO's files on any machine.
If Kerberos 5 is applied, this kind of security issue could be solved
partially and limited on the scenario which Ondrej described below.
-Le
Quoted 101 lines · Ondrej Valousek

This issue has already been discussed on this list.
Local root has access to all credentials stored on that machine and there is nothing you can do with this. You can only tell the user not to log to a machine which is already compromised by malicious attacker having root access.
Ondrej

Quoted 77 lines · Carlos André

I got a strange security issue. I logon via SSH or local console with my user and get a ticket, then if local root su to my user, local root can access my files.

I'm using CentOS 5.3:
kernel-2.6.18-128.2.1.el5
krb5-workstation-1.6.1-31.el5_3.3

SESSION 1:
-----------------------------------------------------------------

$ ssh [email protected]
[email protected]'s password:
Last login: Wed Aug 26 08:06:49 2009 from X
[root@KSTATION ~]# su carlos.andre
[carlos.andre@KSTATION root]$ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_10000)

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached [carlos.andre@KSTATION root]$ cd /misc/home/carlos.andre
bash: cd: /misc/home/carlos.andre: Permission denied [carlos.andre@KSTATION root]$
-----------------------------------------------------------------
[--OK--]

SESSION 2:
-----------------------------------------------------------------

$ ssh [email protected]
[email protected]'s password:
Last login: Wed Aug 26 08:01:33 2009 from X
[carlos.andre@KSTATION ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_10000_PPLMqF
Default principal: [email protected]
Valid starting     Expires            Service principal
08/26/09 08:30:12  08/26/09 18:30:12  krbtgt/[email protected]
       renew until 08/26/09 08:30:12

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached [carlos.andre@KSTATION ~]$ cd /misc/home/carlos.andre [carlos.andre@KSTATION carlos.andre]$ ls -la total 8
drwxrwx--- 2 carlos.andre users 4096 Aug 21 09:04 .
drwxr-xr-x 3 root root 0 Aug 26 08:30 ..
[carlos.andre@KSTATION carlos.andre]$
-----------------------------------------------------------------
[--OK--]

NOW BACK TO SESSION 1:
-----------------------------------------------------------------
[carlos.andre@KSTATION root]$ cd /misc/home/carlos.andre [carlos.andre@KSTATION carlos.andre]$ ls -la
total 8
drwxrwx--- 2 carlos.andre users 4096 Aug 21 09:04 .
drwxr-xr-x 3 root root 0 Aug 26 08:30 ..
[carlos.andre@KSTATION carlos.andre]$ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_10000)

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached
[carlos.andre@KSTATION carlos.andre]$
-----------------------------------------------------------------
[WTF!?!?]

Then, if I log on someone machine, local root user (and 'su' to my user) will have access to my files like NFS without Kerberos?? This behavior is "correct" or it's a bug?
And more strange it's credentials, root 'su'ed to my user doesnt got credentials, but still have access to my files...

Quoted 9 lines

Or I'm doing something wrong? -_-'

Thanks.
_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Le Wang
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The good man is the friend of all living things.
Gandhi, Mahatma(1869-1948)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

#4 lore raw
In reply to a message not in the archive

Wang,

I know about "normal NFS" security issues... old times... "trust on host"... -_-'
But I thought that this problem never happen using NFSv4+Kerberos5. In resume, it's more secure then only NFS (without Kerberos), but still have alot of serious security problems...

Quoted 1 line · le wang

This is the security issue of NFS which exists extensively in NIS dir=

ectory

Quoted 3 lines

environment since regular NFS authentication depends on UID and GID.

$ ypcat password |grep $FOO to get the user FOO's UID and GID;
Local root of ANY machine in this Directory could create a faked user=

with

Quoted 1 line

FOO's UID and GID through cmd "groupadd" and "useradd", and then acce=

ss

Quoted 7 lines

FOO's files on any machine.
If Kerberos 5 is applied, this kind of security issue could be solved partially and limited on the scenario which Ondrej described below. -Le

On Wed, Aug 26, 2009 at 7:51 AM, Ondrej Valousek <[email protected]>=

Quoted 3 lines · wrote:
Quoted 3 lines

This issue has already been discussed on this list.
Local root has access to all credentials stored on that machine and =

there

Quoted 1 line
Quoted 1 line

is nothing you can do with this. You can only tell the user not to l=

og to a

Quoted 1 line
Quoted 1 line

machine which is already compromised by malicious attacker having ro=

ot

Quoted 6 lines
Quoted 6 lines

access.
Ondrej

Quoted 2 lines · Carlos Andr=E9 wrote:

I got a strange security issue. I logon via SSH or local console wi=

th

Quoted 1 line
Quoted 1 line
Quoted 1 line

my user and get a ticket, then if local root su to my user, local r=

oot

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

can access my files.

I'm using CentOS 5.3:
kernel-2.6.18-128.2.1.el5
krb5-workstation-1.6.1-31.el5_3.3

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

SESSION 1:
-----------------------------------------------------------------

$ ssh [email protected]
[email protected]'s password:
Last login: Wed Aug 26 08:06:49 2009 from X
[root@KSTATION ~]# su carlos.andre
[carlos.andre@KSTATION root]$ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_10=

000)

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached [carlos.andre@KSTATION root]$ cd /misc/home/carlos.andre
bash: cd: /misc/home/carlos.andre: Permission denied [carlos.andre@KSTATION root]$
-----------------------------------------------------------------
[--OK--]

SESSION 2:
-----------------------------------------------------------------

$ ssh [email protected]
[email protected]'s password:
Last login: Wed Aug 26 08:01:33 2009 from X
[carlos.andre@KSTATION ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_10000_PPLMqF
Default principal: [email protected]
Quoted 1 line
Quoted 1 line
Quoted 1 line

Valid starting =A0 =A0 Expires =A0 =A0 =A0 =A0 =A0 =A0Service princ=

ipal

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

08/26/09 08:30:12 =A008/26/09 18:30:12 =A0krbtgt/[email protected] =A0 =A0 =A0 =A0renew until 08/26/09 08:30:12

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached
[carlos.andre@KSTATION ~]$ cd /misc/home/carlos.andre [carlos.andre@KSTATION carlos.andre]$ ls -la
total 8
drwxrwx--- 2 carlos.andre users 4096 Aug 21 09:04 . drwxr-xr-x 3 root =A0 =A0 =A0 =A0 root =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

0 Aug 26 08:30 ..

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[carlos.andre@KSTATION carlos.andre]$
-----------------------------------------------------------------
[--OK--]

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

NOW BACK TO SESSION 1:
-----------------------------------------------------------------
[carlos.andre@KSTATION root]$ cd /misc/home/carlos.andre [carlos.andre@KSTATION carlos.andre]$ ls -la
total 8
drwxrwx--- 2 carlos.andre users 4096 Aug 21 09:04 . drwxr-xr-x 3 root =A0 =A0 =A0 =A0 root =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

0 Aug 26 08:30 ..

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

[carlos.andre@KSTATION carlos.andre]$ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_10=

000)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached
[carlos.andre@KSTATION carlos.andre]$
-----------------------------------------------------------------
[WTF!?!?]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Then, if I log on someone machine, local root user (and 'su' to my user) will have access to my files like NFS without Kerberos?? This behavior is "correct" or it's a bug?
And more strange it's credentials, root 'su'ed to my user doesnt go=

t

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines

credentials, but still have access to my files...

Or I'm doing something wrong? -_-'

Thanks.
_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

Quoted 2 lines
Quoted 2 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs"=

in

Quoted 17 lines
Quoted 2 lines

the body of a message to [email protected]
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html

--
Le Wang
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The good man is the friend of all living things.
Gandhi, Mahatma(1869-1948)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
NFSv4 mailing list
[email protected]
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

#6 lore raw
In reply to a message not in the archive
Quoted 5 lines · On Wed, 2009-08-26 at 19:31 -0300, Carlos Andr=C3=A9 wrote:

Wang,
=20
I know about "normal NFS" security issues... old times... "trust on host"... -_-'
But I thought that this problem never happen using NFSv4+Kerberos5. I=

n

Quoted 2 lines

resume, it's more secure then only NFS (without Kerberos), but still have alot of serious security problems...

This discussion keeps coming up, over and over again because people kee= p
misunderstanding the Linux/*NIX security model.

The real issue is that a user with root privileges has a million ways o= f
sniffing your passwords (e.g. as you type them in), reading your cached data (e.g. /dev/kmem), or hijacking your processes (e.g. a /bin/ls trojan). There is _nothing_ NFS can do to protect you against a compromised root account.
Schemes like David Howells' keyrings can help against one or two of these attacks, but cannot eliminate them all.

IOW: The problem isn't NFS. The exact same attacks can be used against ssh, cifs, and all the other 'secure' protocols.

All Krb5 does is to make you safe against unprivileged users impersonating you, and to make you safe against network packet sniffing and spoofing.

Trond