Summary
AdminNeo's ClickHouse driver can bypass authentication for passwordless accounts when handling login attempts. A remote attacker who knows the name of such an account may be able to log in with any non-empty password and obtain a session with that account's permissions.
Affected context
The issue affects AdminNeo versions before 5.9.1 when the ClickHouse driver is used to authenticate passwordless accounts. In the described flow, connect() skips the openPasswordless() check, allowing a login attempt to proceed without validating the configured defaultPasswordHash password.
Exploit preconditions
- Attack surface: The AdminNeo ClickHouse login interface must be reachable by the attacker.
- Required access: The attacker must know the name of a ClickHouse
no_passwordaccount; no valid password is required. - Trigger point: The attacker submits a login attempt for that account with any non-empty password.
- Why exploitation is possible: The driver's
connect()flow skips the passwordless-account check, so the configureddefaultPasswordHashpassword is not enforced.
Why this happens
The authentication flow handles passwordless accounts inconsistently: connect() bypasses the check performed by openPasswordless(). As a result, a non-empty password can be accepted without the expected credential verification. This is an authentication bypass that maps to CWE-287: Improper Authentication.
Potential impact
- An attacker could obtain a session as a passwordless ClickHouse account.
- The attacker may be able to read or modify data permitted by that account's rights.
- Account access could expose data or functionality available through the AdminNeo integration.
General mitigation guidance
Mitigation patterns include ensuring every authentication path applies the same credential checks and rejecting login attempts that do not satisfy the configured authentication policy. Passwordless accounts can be disabled by default or limited to explicitly approved use cases, and remote access to the login surface can be restricted. Applying least privilege to database accounts can reduce the impact of unauthorized access.
How teams detect issues like this
- Review authentication code paths for inconsistent handling of passwordless accounts and checks that can be skipped by alternate connection flows.
- Use static analysis and code review to identify login paths where credentials are not verified before a session is created.
- Monitor authentication logs for successful logins to passwordless accounts, especially attempts using non-empty passwords.
- Enforce policy checks that limit passwordless account use and require consistent authentication controls.

