#2030 mod_auth_ldap does not reject empty password

Reporter MattJ
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Milestone-13.0
  • Status-Fixed
  • Priority-High
  • Type-Defect
  • Security
  1. MattJ on

    **Description** In mod_auth_ldap bind mode, test_password did not reject an empty password before consulting the LDAP directory. Some directory servers, including Active Directory and possibly Samba AD/DC, accept an empty simple bind as an unauthenticated bind. SASL PLAIN rejects empty passwords, but mod_legacyauth passed empty values to test_password, as could other consumers such as HTTP basic-auth modules. The legacy authentication path now applies SASLprep and rejects empty or invalid passwords after preparation. **Affected configurations** The issue affects deployments using mod_auth_ldap in bind mode together with mod_legacyauth or another auth interface that accepts empty passwords. mod_legacyauth is not enabled in the default configuration. **Mitigation** Operators who cannot upgrade immediately should ensure that mod_legacyauth is disabled (it is disabled by default). If your directory accepts empty passwords, this may not be a complete mitigation. **Fixes** mod_auth_ldap now fails empty passwords without consulting the directory. mod_legacyauth applies SASLprep and rejects empty or invalid values. Commits: 2d4daeea5063 (mod_auth_ldap), ed8ace2a78fd (mod_legacyauth) **Attribution** The issue was identified in an external security review.

  2. MattJ on

    Changes
    • tags Hidden

New comment

Not published. Used for spam prevention and optional update notifications.