CVE-2020-2299:
Improper Authentication in Jenkins Active Directory Plugin
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41538%
CWE
Published
5/24/2022
Updated
12/14/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins:active-directory | maven | >= 2.17, < 2.20 | 2.20 |
org.jenkins-ci.plugins:active-directory | maven | >= 1.44, < 2.16.1 | 2.16.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from using a magic password constant (hex nulls) to differentiate between user lookup (no auth) and authentication. The commit shows:
- Removal of NO_AUTHENTICATION magic string from ActiveDirectoryUnixAuthenticationProvider
- Introduction of Password interface with proper authentication state handling
- Modified cache key generation to include password hashes instead of raw passwords
- Added explicit empty password checks These changes indicate the original retrieveUser functions in both authentication providers improperly handled the authentication flow when the magic constant was present in the password field, allowing attackers to authenticate as any user by supplying this special value.