CVE-2020-2196: OS Command Injection in Jenkins Selenium Plugin

Summary

24/05/2022
No i
High
7.1

CVE-2020-2196: Complete lack of CSRF protection in Jenkins Selenium Plugin can lead to OS command injection. Affects org.jenkins-ci.plugins:selenium versions < 3.141.59. No fix is published. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Jenkins Selenium Plugin is a Maven-based plugin that allows users to integrate Selenium Grid with Jenkins. It provides functionality for managing Selenium configurations on specific nodes and controlling the Selenium Grid hub. The plugin is widely used for automated testing in software development workflows.

Vulnerability Detail

The Selenium Plugin version 3.141.59 and earlier suffer from a complete lack of Cross-Site Request Forgery (CSRF) protection for its HTTP endpoints. This vulnerability enables attackers to perform various malicious actions, including restarting the Selenium Grid hub, deleting or replacing the plugin configuration, and starting, stopping, or restarting Selenium configurations on specific nodes. By carefully manipulating configuration parameters, an attacker can exploit this vulnerability to execute arbitrary OS commands on the Jenkins controller, leading to potential remote code execution.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can disable or restrict access to the Selenium Plugin's HTTP endpoints. This can be achieved by configuring network firewalls or access control lists (ACLs) to block external access to the plugin's URLs. However, this workaround may impact the functionality of the plugin and is not a long-term solution.

Conclusion

The lack of CSRF protection in the Jenkins Selenium Plugin exposes users to the risk of OS command injection and potential remote code execution. It is crucial to update the plugin to a version that includes CSRF protection and regularly apply security patches. For further support and assistance in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability allows attackers to execute arbitrary OS commands on the Jenkins controller, potentially leading to remote code execution. It can result in unauthorized access, data breaches, and compromise of the entire Jenkins environment.

You can use the Vulert Playground at Vulert Scanner to check if your Jenkins instance is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file, without requiring access to the code or installation.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, given the severity and potential impact, it is crucial to apply the recommended fixes and security updates as soon as possible.

While upgrading the plugin is the recommended solution, you can temporarily mitigate the risk by disabling or restricting access to the plugin's HTTP endpoints. However, this workaround may impact the functionality of the plugin and is not a long-term solution.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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