CVE-2020-2192: CSRF vulnerability in Jenkins Swarm Plugin
Summary
CVE-2020-2192: CSRF vulnerability in Jenkins Swarm Plugin. Affects org.jenkins-ci.plugins:swarm versions < 3.21. Fixed in 3.21. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Jenkins Swarm Plugin is an open-source plugin that adds API endpoints to add or remove agent labels in Jenkins. It is commonly used to manage agents and their labels in a Jenkins environment. The plugin allows users with Agent/Create permission to modify agent labels without proper permission checks. This vulnerability exists in Swarm Plugin versions 3.20 and earlier. The plugin also lacks CSRF protection, making it susceptible to cross-site request forgery attacks.
Vulnerability Detail
The CSRF vulnerability in Jenkins Swarm Plugin allows users with Agent/Create permission to add or remove labels of any agent without proper authorization. This can lead to unauthorized modification of agent labels, potentially disrupting the functioning of Jenkins. The lack of CSRF protection further exacerbates the issue, as attackers can exploit this vulnerability through maliciously crafted requests. The vulnerability has a CVSS score of 5.4, indicating a moderate severity level.
How To Fix
Minimum fixed version
3.21
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
If upgrading to the latest version is not immediately feasible, a temporary workaround is to restrict the Agent/Create permission to trusted users only. By limiting the access to this permission, the risk of unauthorized modification of agent labels can be mitigated. However, this workaround does not address the CSRF vulnerability, and upgrading to the latest version is still recommended.
Conclusion
The CSRF vulnerability in Jenkins Swarm Plugin (CVE-2020-2192) allows unauthorized modification of agent labels by users with Agent/Create permission. It is crucial to upgrade to Swarm Plugin version 3.21 or later to mitigate this vulnerability. Restricting the Agent/Create permission to trusted users can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.jenkins-ci.plugins:swarm →
FAQ
This vulnerability allows users with Agent/Create permission to modify agent labels without proper authorization. It can result in unauthorized changes to agent labels, potentially disrupting the functioning of Jenkins.
Swarm Plugin versions 3.20 and earlier are affected by this vulnerability.
There are no known public exploits for this vulnerability at the time of this report. However, it is important to address the vulnerability promptly to prevent potential exploitation.
Yes, this vulnerability has a CVSS score of 5.4, indicating a moderate severity level.
Yes, upgrading to Swarm Plugin version 3.21 or later fixes this vulnerability by introducing proper permission checks and CSRF protection.
Related vulnerabilities
Recent vulnerabilities recorded for org.jenkins-ci.plugins:swarm.