MISP's LDAP authentication components (LdapAuth plugin and Apache LDAP authentication) unconditionally re-enabled user accounts that had been disabled by an administrator. During the user provisioning or update step of an LDAP login, the disabled flag was reset to enabled regardless of the account's current state.
This allowed any user with valid LDAP credentials to bypass an administrative disable action simply by authenticating, effectively nullifying the ability to revoke access through account deactivation.
- Affects the LdapAuth plugin and the ApacheSecureAuth component
- The insecure behavior was the default; no special configuration was required to trigger it
- An administrator's decision to disable a user (e.g., after a security incident or employee departure) could be reversed by the user's next successful LDAP login
Affected versions: MISP prior to 2.5.52
The fix introduces an 'unblock' configuration option (default: false) to both the LdapAuth plugin and ApacheSecureAuth component. When unblock is false (the new default), a disabled user is refused authentication after the user record update, and the disabled flag is preserved. When explicitly set to true, the previous re-enable-on-login behavior is restored. A new test suite validates that disabled users are refused by default and that the unblock option correctly restores the legacy behavior.