CVE-2020-2281: CSRF vulnerability in Jenkins Lockable Resources Plugin

Summary

24/05/2022
Yes i
Moderate
5.4

CVE-2020-2281: CSRF vulnerability in Jenkins Lockable Resources Plugin. Affects org.6wind.jenkins:lockable-resources versions < 2.9. Fixed in 2.9. 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 Lockable Resources Plugin is a Maven package (org.6wind.jenkins:lockable-resources) that provides functionality for managing and reserving resources in Jenkins. It allows users to reserve, unreserve, unlock, and reset resources. However, versions 2.8 and earlier of the plugin do not require POST requests for several HTTP endpoints, making them vulnerable to cross-site request forgery (CSRF) attacks. This means that attackers can perform unauthorized actions on the resources, potentially disrupting the resource allocation process.

Vulnerability Detail

The vulnerability (CVE-2020-2281) in the Lockable Resources Plugin arises from the lack of POST request validation for certain HTTP endpoints. This allows malicious actors to exploit the CSRF vulnerability and perform actions such as reserving, unreserving, unlocking, and resetting resources without proper authorization. The impact of this vulnerability can range from resource allocation conflicts to unauthorized resource access, potentially leading to disruption of Jenkins workflows and unauthorized resource usage.

How To Fix

Minimum fixed version

2.9

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 implement CSRF protection mechanisms at the network or application level. This can include implementing CSRF tokens, validating referrer headers, or using frameworks that provide built-in CSRF protection. However, applying these workarounds may require additional configuration and development effort.

Conclusion

The CSRF vulnerability in the Jenkins Lockable Resources Plugin (CVE-2020-2281) can be mitigated by upgrading to version 2.9 or later. Implementing proper request validation for the affected HTTP endpoints ensures that unauthorized actions on resources are prevented. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for org.6wind.jenkins:lockable-resources →

Share this vulnerability

FAQ

The vulnerability allows attackers to perform unauthorized actions on resources, potentially disrupting resource allocation and leading to unauthorized resource usage.

Versions 2.8 and earlier of the Lockable Resources Plugin are affected by this vulnerability.

To mitigate this vulnerability, it is recommended to upgrade to Lockable Resources Plugin version 2.9 or later.

As a temporary workaround, users can implement CSRF protection mechanisms at the network or application level.

For more information about this vulnerability, you can refer to the CVE-2020-2281 advisory or the GitHub advisory database.

Related vulnerabilities

Recent vulnerabilities recorded for org.6wind.jenkins:lockable-resources.

How To Fix

Minimum fixed version

2.9

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