Bug 233589 - inserting a letter in "UID Number" fileld gives user a root privileges
Summary: inserting a letter in "UID Number" fileld gives user a root privileges
Status: CLOSED NOTABUG
Alias: None
Product: 389
Classification: Retired
Component: Admin   
(Show other bugs)
Version: 1.0.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Orla Hegarty
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-03-23 11:41 UTC by Robert Ludvik
Modified: 2007-03-23 14:55 UTC (History)
0 users

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: ---


Attachments (Terms of Use)

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.


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