CVE-2009-2410: High severity fedora hosted sssd vulnerability
Description of problem: If a user is added to the SSSD BE database, but no password is set. The user can ssh to the SSSD configured client and enter any password and get in.
TESTED CONFIGURATION
system-auth configuration:
auth required pamenv.so auth sufficient pamfprintd.so auth sufficient pamunix.so nullok auth sufficient pamsss.so usefirstpass auth requisite pamsucceedif.so uid >= 500 quiet auth required pamdeny.so
account required pamunix.so brokenshadow account sufficient pamsss.so account sufficient pamlocaluser.so account sufficient pamsucceedif.so uid < 500 quiet account required pampermit.so
password requisite pamcracklib.so tryfirstpass retry=3 password sufficient pamunix.so sha512 shadow nullok useauthtok password sufficient pamsss.so usefirstpass password required pamdeny.so
session optional pamkeyinit.so revoke session required pamlimits.so session [success=1 default=ignore] pamsucceedif.so service in crond quiet useuid session sufficient pamunix.so session required pamsss.so
sssd configuration:
[services] description = Local Service Configuration activeServices = nss, pam reconnectionretries = 3
[services/nss] description = NSS Responder Configuration filterGroups = root filterUsers = root debug-level = 4
[services/dp] description = Data Provider Configuration debug-level = 4
[services/pam] description = PAM Responder Configuration
[services/monitor] description = Service Monitor Configuration
[domains] description = Domains served by SSSD domains = LOCAL
[domains/LOCAL] description = LOCAL Users domain enumerate = 1 minId = 1000 maxId = 1010 legacy = FALSE magicPrivateGroups = TRUE provider = local
Version-Release number of selected component (if applicable): sssd-0.4.1-1.fc11.i586
How reproducible: always
Steps to Reproduce: 1. yum install sssd 2. edit system-auth (as above) and nsswitch.conf as required 3. modify /etc/sssd/sssd.conf as above 4. service start sssd 5. sssuseradd -u 1000 -h /home/myuser -b /bin/bash myuser 6. from a remote machine ssh to the sssd client machine sssh myuser 7. at password prompt enter anything you would like
Actual results: ssh session is successful and user allowed machine access
Expected results: password to be denied, user not allowed machine access
Additional info:
If you subsequently set the user password on the sssd client machine (passwd myuser) a bad password denies access and the correct password allows access.
Other sources
The localhandlercallback function in server/responder/pam/pamLOCALdomain.c in sssd 0.4.1 does not properly handle blank-password accounts in the SSSD BE database, which allows context-dependent attackers to obtain access by sending the account's username, in conjunction with an arbitrary password, over an ssh connection.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2009-2410?
CVE-2009-2410 is considered a high severity vulnerability due to its risk of unauthorized access.
How do I fix CVE-2009-2410?
To fix CVE-2009-2410, ensure that all users in the SSSD BE database have a valid password set.
What systems are affected by CVE-2009-2410?
CVE-2009-2410 affects SSSD version 0.4.1 on various Linux distributions including Red Hat and Fedora.
What are the potential impacts of CVE-2009-2410?
The potential impacts of CVE-2009-2410 include unauthorized SSH access to user accounts without proper authentication.
Who is responsible for addressing CVE-2009-2410?
System administrators and security teams are responsible for addressing CVE-2009-2410 by applying necessary configurations and patches.