CVE-2011-4120

9.8 CRITICAL

📋 TL;DR

This vulnerability in Yubico PAM Module allows authentication bypass when attackers provide a NULL password (Ctrl-D sequence). It affects systems using Yubico PAM Module for authentication without proper 'use_first_pass' configuration. Remote attackers can gain unauthorized access to user accounts.

💻 Affected Systems

Products:
  • Yubico PAM Module
Versions: All versions before 2.10
Operating Systems: Linux systems using PAM authentication
Default Config Vulnerable: ✅ No
Notes: Only vulnerable when configured as 'sufficient' in PAM without 'use_first_pass' option.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise via unauthorized root or privileged user access, leading to data theft, system manipulation, or lateral movement.

🟠

Likely Case

Unauthorized access to user accounts with standard privileges, potentially leading to data exposure and privilege escalation.

🟢

If Mitigated

No impact if proper PAM configuration is used or patched version is installed.

🌐 Internet-Facing: HIGH - Authentication bypass vulnerabilities on internet-facing systems allow direct remote exploitation.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but require network access; risk depends on internal segmentation.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit requires sending NULL password via Ctrl-D sequence; trivial to automate.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.10 and later

Vendor Advisory: https://access.redhat.com/security/cve/cve-2011-4120

Restart Required: No

Instructions:

1. Update Yubico PAM Module to version 2.10 or later using package manager. 2. For RedHat/CentOS: 'yum update pam_yubico'. 3. For Debian/Ubuntu: 'apt-get update && apt-get install libpam-yubico'. 4. Verify configuration after update.

🔧 Temporary Workarounds

Configure use_first_pass

linux

Add 'use_first_pass' option to PAM configuration to prevent NULL password bypass

Edit /etc/pam.d/ files to include 'use_first_pass' for yubico module lines

Change PAM control flag

linux

Change yubico module from 'sufficient' to 'required' in PAM configuration

Edit /etc/pam.d/ files to change 'sufficient' to 'required' for yubico module

🧯 If You Can't Patch

  • Implement network segmentation to restrict access to vulnerable systems
  • Enable multi-factor authentication using additional methods beyond Yubico PAM

🔍 How to Verify

Check if Vulnerable:

Check PAM configuration files for yubico module without 'use_first_pass' and configured as 'sufficient'

Check Version:

rpm -q pam_yubico  # RedHat/CentOS
dpkg -l | grep pam-yubico  # Debian/Ubuntu

Verify Fix Applied:

Verify Yubico PAM Module version is 2.10+ and test authentication with NULL password

📡 Detection & Monitoring

Log Indicators:

  • Authentication attempts with empty/null passwords
  • Successful logins without proper Yubikey authentication

Network Indicators:

  • Authentication requests with Ctrl-D sequences
  • Rapid authentication attempts

SIEM Query:

source="auth.log" AND (password="" OR password=NULL) AND program="pam_yubico"

🔗 References

📤 Share & Export