pdtpatrick said: I guess i didnt make myself clear .. that only works (as far as i know) for the same user.
lets say im jdoe and im part of the sudoers group. I need to update something on my laptop. so i type sudo apt-get install something or sudo apt-get -y update
and then i realize afterwards that there a several things i will need to install, so i decide to just become root (sudo -s -H).. since i had already ran sudo apt-get install something, it still has the authenticated session open, so once I (the same user, using the same terminal) types sudo -s -H, it will automatically make me root without asking for the password because i just recently authenticated.
I dont know what the time limit is or yours is set to but it stops working after some time and you will have to reauthenticate.
Hopefully this clears up what i was trying to say. I wasn't saying that once he put his password in, another totally new user can use that same terminal and get root access from the previous user's session.
But that is exactly what I'm seeing, though I presume you're referring to "userid" where I'm referring to physical users. The privilege escalation sans password applies to a DIFFERENT session if it has the same uid and TTY. Let me outline a scenario.
As admin of a particular server I SSH to it as user 'abe', the only ordinary user account on the box, using a key to authenticate. I'm in as TTY pts/2. I 'sudo' something, then subsequently log out.
One of our techs comes along behind me and logs into that same server via SSH from a different source IP, different workstation, also using user 'abe' and a keyfile for authentication - and ends up with TTY pts/2 from which I recently logged out. The tech can now utilize sudo even though he does NOT know the password, as long as he's there with the same username and TTY, within 5mins of when I entered the password. (which only I know)
I realize there are a dozen ways (at least) to avoid this circumstance, and I'm not claiming it's a critical security flaw, but nevertheless I believe it IS a flaw if any transient security changes (IE, sudo without re-entering password) persist across different sessions.
j