Bug 233589

Summary: inserting a letter in "UID Number" fileld gives user a root privileges
Product: [Retired] 389 Reporter: Robert Ludvik <r>
Component: AdminAssignee: Rich Megginson <rmeggins>
Status: CLOSED NOTABUG QA Contact: Orla Hegarty <ohegarty>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-23 14:55:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Ludvik 2007-03-23 11:41:24 UTC
Description of problem:
I have Linux (RHEL 4) box which uses FDS for storing users/passwds. I create a
new user in Admin console, give him a username and password and enter some
*text* in the "UID number" field (f.e. "testuser") on Posix account tab and save.
Go to Linux box and try to login with new user and I get a root privileges on
thah box.

Version-Release number of selected component (if applicable):
FDS 1.0.4

How reproducible:
Tried twice on FDS workshop, both times successfuly

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rich Megginson 2007-03-23 14:19:43 UTC
I think this is an operating system thing - pam_ldap and/or nss_ldap should
refuse to use an invalid uid number.  That is, in this case, FDS is merely the
storage for the uid value - it doesn't actually do any enforcement, it just
gives that value back to pam/nss.

What happens if you edit /etc/passwd and put a textual uid number in the uid
number field?

Comment 2 Robert Ludvik 2007-03-23 14:40:06 UTC
> What happens if you edit /etc/passwd and put a textual uid number in the uid
>number field?

If i change my /etc/passwd from:
r:x:501:502::/home/r:/bin/bash

into:
r:x:abc:502::/home/r:/bin/bash

it says: "Login incorrect" and I can't login.

Comment 3 Rich Megginson 2007-03-23 14:55:05 UTC
Then it must be a bug in pam_ldap or nss_ldap - they should cause the same error.