CVE-2023-24457: CSRF vulnerability in Jenkins Keycloak Authentication Plugin

Summary

26/01/2023
Yes i
Moderate
6.5

CVE-2023-24457: CSRF vulnerability in Jenkins Keycloak Authentication Plugin. Affects org.jenkins-ci.plugins:keycloak versions < 2.3.1. Fixed in 2.3.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Jenkins Keycloak Authentication Plugin is a plugin for the Jenkins automation server that allows users to authenticate using Keycloak, an open-source identity and access management solution. This plugin integrates Jenkins with Keycloak, enabling users to log in to Jenkins using their Keycloak credentials. The plugin is widely used in Jenkins installations that utilize Keycloak for user authentication.

Vulnerability Detail

A cross-site request forgery (CSRF) vulnerability has been discovered in the Jenkins Keycloak Authentication Plugin version 2.3.0 and earlier. This vulnerability allows attackers to trick users into unknowingly logging in to the attacker's account. By crafting a malicious request and tricking a user into clicking on a specially crafted link or visiting a malicious website, an attacker can exploit this vulnerability to gain unauthorized access to the victim's Jenkins account. This can lead to various security risks, including unauthorized access to sensitive information, privilege escalation, and potential disruption of Jenkins workflows.

How To Fix

Minimum fixed version

2.3.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can disable the Keycloak Authentication Plugin until the vulnerability is fixed. This can be done by navigating to the Jenkins plugin management page, finding the 'Keycloak Authentication' plugin, and disabling it. However, this workaround will prevent users from authenticating with Keycloak until the plugin is re-enabled or updated.

Conclusion

The CSRF vulnerability in the Jenkins Keycloak Authentication Plugin can potentially lead to unauthorized access and other security risks. It is crucial to update to the latest version of the plugin (2.3.1 or later) to mitigate this vulnerability. Users can also consider temporarily disabling the plugin as a workaround until the update is applied. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:keycloak →

Share this vulnerability

FAQ

This vulnerability allows attackers to trick users into logging in to the attacker's account, potentially leading to unauthorized access to sensitive information, privilege escalation, and disruption of Jenkins workflows.

No, only versions 2.3.0 and earlier are affected. It is recommended to upgrade to version 2.3.1 or later to mitigate the vulnerability.

Yes, this vulnerability can be exploited remotely by tricking users into clicking on a malicious link or visiting a malicious website.

Yes, a patch is available in version 2.3.1 of the Jenkins Keycloak Authentication Plugin. It is recommended to update to this version or later to fix the vulnerability.

If you suspect unauthorized access to your Jenkins account, it is recommended to change your password immediately and report the incident to your system administrator or security team.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:keycloak.

How To Fix

Minimum fixed version

2.3.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback