jenkinsci/gitlab-branch-source-plugin · Security
Non-constant time webhook token comparison in Jenkins GitLab Branch Source Plugin
- GHSA ID
- GHSA-f67f-2j6r-m4c9
- CVE ID
- CVE-2024-23903
- Severity
- low
- Published
- Updated
- CVSS
- 3.7 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- CVSS v3
- 3.7 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Description
Jenkins GitLab Branch Source Plugin 684.vea_fa_7c1e2fe3 and earlier does not use a constant-time comparison function when checking whether the provided and expected webhook token are equal.
This could potentially allow attackers to use statistical methods to obtain a valid webhook token.
GitLab Branch Source Plugin 688.v5fa_356ee8520 uses a constant-time comparison function when validating the webhook token.
CWEs
- CWE-697 · Incorrect Comparison
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-23903 ↗
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-2871 ↗
- http://www.openwall.com/lists/oss-security/2024/01/24/6 ↗
- https://github.com/jenkinsci/gitlab-branch-source-plugin/commit/8bfe1046cf342b99419457b9336addbbf346f89a ↗
- https://github.com/advisories/GHSA-f67f-2j6r-m4c9 ↗