GHSA-954f-xw44-56r2

Suggest an improvement
Source
https://github.com/advisories/GHSA-954f-xw44-56r2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-954f-xw44-56r2/GHSA-954f-xw44-56r2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-954f-xw44-56r2
Aliases
Published
2022-05-24T17:33:07Z
Modified
2024-02-16T08:24:53.979545Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Authentication cache in Active Directory Jenkins Plugin allows logging in with any password
Details

Jenkins Active Directory Plugin implements two separate modes: Integration with ADSI on Windows, and an OS agnostic LDAP-based mode. Optionally, to reduce lookup time, a cache can be configured to remember user lookups and user authentications.

In Active Directory Plugin prior to 2.20 and 2.16.1, when run in Windows/ADSI mode, the provided password was not used when looking up an applicable cache entry. This allows attackers to log in as any user using any password while a successful authentication of that user is still in the cache.

As a workaround for this issue, the cache can be disabled.

Active Directory Plugin 2.20 and 2.16.1 includes the provided password in cache entry lookup.

Additionally, the Java system property hudson.plugins.active_directory.CacheUtil.noCacheAuth can be set to true to no longer cache user authentications.

Database specific
{
    "nvd_published_at": "2020-11-04T15:15:00Z",
    "cwe_ids": [
        "CWE-287"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-09-08T19:20:40Z"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:active-directory

Package

Name
org.jenkins-ci.plugins:active-directory
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/active-directory

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.17
Fixed
2.20

Affected versions

2.*

2.17
2.18
2.19

Maven / org.jenkins-ci.plugins:active-directory

Package

Name
org.jenkins-ci.plugins:active-directory
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/active-directory

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.16.1

Affected versions

1.*

1.18
1.19
1.20
1.21
1.22
1.23
1.24
1.25
1.26
1.27
1.28
1.29
1.30
1.31
1.32
1.33
1.34
1.35
1.36
1.37
1.38
1.39
1.41
1.42
1.43
1.44
1.45
1.46
1.47
1.48
1.49

2.*

2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.13
2.14
2.15
2.16