#700053 monkeysphere-authentication wrongly bypass filesystem ACLs when reading ~/.ssh/*

#700053#5
Date:
2013-02-07 22:25:28 UTC
From:
To:
monkeysphere-authentication reads ~/.ssh/* not as that user but as root.

That commonly works because root ignores filesystem ACLs, but fails e.g.
when $HOME is served with NFS exported with default root_squash option.

To work properly in environments where ACLs apply also to root,
monkeysphere needs to switch user before reading ~/.ssh/*, as that dir
is private by default.

Dkg wondered on irc if not OpenSSH "cheated" as well, to only switch
user after authentication.  But running OpenSSH with DEBUG enabled
reveals that each client connection - before authentication completes -
cuase a log entry like this:

Feb  7 20:15:39 xayide sshd[32641]: debug1: temporarily_use_uid: 1000/1000 (e=0/0)


Attached are proposed patches to fix this issue.

  * Perhaps better to switch user only once per account, running all
    checks as one single shell script?

  * Perhaps better to exec checkperms as account user?
    Currently works only with MONKEYSPHERE_STRICT_MODES=false which is
    arguably more risky than executing the relatively large checkperms
    perl script.


 - Jonas

#700053#10
Date:
2024-11-28 18:21:16 UTC
From:
To:
Dear submitter,

as the package monkeysphere has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1085868

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)