Description
Networknt light-4j from 2.1.5 before 2.4.0 contains an authentication bypass vulnerability in BasicAuthHandler that allows unauthenticated attackers to log in as LDAP/AD-delegated users. Attackers can send a Basic Authorization header with a known username and empty password, triggering an unauthenticated LDAP bind that is accepted as successful authentication.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| networknt | light-4j | 2.1.5 – < 2.4.0 | 2.4.0 |
References
- https://github.com/networknt/light-4j/issues/2804 issue-tracking
- https://github.com/networknt/light-4j/pull/2805 patch issue-tracking
- https://github.com/networknt/light-4j/commit/54743badb34260b76ed131d8b6a4f60210cc3673 patch
- light-4j 2.4.0 Release Notes release-notes
- https://github.com/networknt/light-4j/blob/2.3.7/basic-auth/src/main/java/com/networknt/basicauth/BasicAuthHandler.java#L189-L200 technical-description
- https://github.com/networknt/light-4j/blob/2.3.7/ldap-util/src/main/java/com/networknt/ldap/LdapUtil.java#L152-L173 technical-description
- VulnCheck Advisory: Networknt light-4j 2.1.5 before 2.4.0 Authentication Bypass via Empty LDAP Password third-party-advisory