Bug 233589 - inserting a letter in "UID Number" fileld gives user a root privileges
inserting a letter in "UID Number" fileld gives user a root privileges
Status: CLOSED NOTABUG
Product: 389
Classification: Community
Component: Admin (Show other bugs)
1.0.4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Rich Megginson
Orla Hegarty
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-23 07:41 EDT by Robert Ludvik
Modified: 2007-03-23 10:55 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-23 10:55:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Robert Ludvik 2007-03-23 07:41:24 EDT
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 10:19:43 EDT
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 10:40:06 EDT
> 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 10:55:05 EDT
Then it must be a bug in pam_ldap or nss_ldap - they should cause the same error.

Note You need to log in before you can comment on or make changes to this bug.