oss-sec mailing list archives
Re: Minor security flaw with pam_xauth
From: Solar Designer <solar () openwall com>
Date: Tue, 21 Sep 2010 23:49:03 +0400
On Tue, Sep 21, 2010 at 03:22:07PM -0400, Josh Bressers wrote:
The same commit also introduces previously-missing privilege switching into pam_env and pam_mail. Unfortunately, this pam_env and pam_mail fix is incomplete: it only switches the fsuid (should also switch fsgid (or egid) and groups), and it fails to check the return value from setfsuid() (doing so would require duplicate calls to setfsuid(), like we do in libtcb, or switching of euid instead - yet it is desirable).
...
Let's use CVE-2010-3430 for the missing setfsgid.
...and the missing setgroups().
Use CVE-2010-3431 for the missing return checks on setfsuid.
OK. BTW, I think this is not exploitable on current kernels, at least not via RLIMIT_NPROC (it does not apply to fsuid), yet it is desirable to check the return value from such syscalls. What about the completely missing privilege switching in pre-1.1.2 (the bug found by Sebastian)? I don't recall if it already had a CVE id assigned or not. Alexander
Current thread:
- Minor security flaw with pam_xauth Tim Brown (Aug 16)
- Re: Minor security flaw with pam_xauth Steven M. Christey (Aug 16)
- Re: Minor security flaw with pam_xauth Solar Designer (Sep 21)
- Re: Minor security flaw with pam_xauth Josh Bressers (Sep 21)
- Re: Minor security flaw with pam_xauth Steven M. Christey (Sep 21)
- Re: Minor security flaw with pam_xauth Josh Bressers (Sep 21)
- Re: Minor security flaw with pam_xauth Solar Designer (Sep 21)
- Re: Minor security flaw with pam_xauth Josh Bressers (Sep 21)
- Re: Minor security flaw with pam_xauth Solar Designer (Sep 24)
- Re: Minor security flaw with pam_xauth Vincent Danen (Sep 27)
- Re: Minor security flaw with pam_xauth Vincent Danen (Sep 27)
- Re: Minor security flaw with pam_xauth Solar Designer (Sep 27)
- Re: Minor security flaw with pam_xauth Solar Designer (Sep 27)
- Re: Minor security flaw with pam_xauth Josh Bressers (Sep 21)
- Re: Minor security flaw with pam_xauth Josh Bressers (Sep 27)