CVE-2020-2268: CSRF vulnerability in Jenkins MongoDB Plugin

Summary

24/05/2022
No i
Moderate
5.3

CVE-2020-2268: CSRF vulnerability in MongoDB Plugin. Affects org.jenkins-ci.plugins:mongodb versions < 1.3. 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 Devnack Your last release was probably never penetration tested 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 MongoDB Plugin is a Maven package that provides integration between Jenkins, a popular open-source automation server, and MongoDB, a NoSQL database. This plugin allows users to store build artifacts and other metadata in MongoDB. It is widely used in Jenkins installations to enhance data storage and retrieval capabilities. However, versions 1.3 and earlier of the plugin are vulnerable to a cross-site request forgery (CSRF) attack.

Vulnerability Detail

The CSRF vulnerability in the Jenkins MongoDB Plugin allows attackers to exploit the trust between a user's browser and the Jenkins controller. By tricking a user into visiting a malicious website or clicking on a specially crafted link, an attacker can perform unauthorized actions on behalf of the user. In this case, the vulnerability allows attackers to gain access to some metadata of any arbitrary files on the Jenkins controller. This could potentially lead to unauthorized disclosure of sensitive information or unauthorized modification of files.

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

If upgrading to a newer version of the Jenkins MongoDB Plugin is not immediately feasible, a temporary workaround is to disable or restrict access to the plugin. This can be done by removing or disabling the plugin from the Jenkins installation or by configuring access controls to limit plugin usage to trusted users or IP addresses. However, this workaround should be considered temporary, and upgrading to a patched version is strongly recommended.

Conclusion

The CSRF vulnerability in the Jenkins MongoDB Plugin (CVE-2020-2268) poses a moderate risk to Jenkins installations. It allows attackers to gain access to metadata of arbitrary files on the Jenkins controller, potentially leading to unauthorized disclosure or modification of sensitive information. To mitigate this vulnerability, users should upgrade to a version of the plugin that is not affected by this issue. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

A CSRF vulnerability allows an attacker to perform unauthorized actions on behalf of a user by exploiting the trust between the user's browser and a web application. In this case, the vulnerability in the Jenkins MongoDB Plugin allows attackers to gain access to metadata of arbitrary files on the Jenkins controller.

You can use the Vulert Playground at Vulert Scanner to check if your Jenkins installation is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, and you can test your application without any signup.

The CSRF vulnerability in the Jenkins MongoDB Plugin could lead to unauthorized disclosure of sensitive information or unauthorized modification of files on the Jenkins controller. This could have serious implications for the security and integrity of the Jenkins installation.

Yes, the vulnerability has been addressed in version 1.4 and later of the Jenkins MongoDB Plugin. It is recommended to upgrade to the latest version to mitigate the risk of exploitation.

To mitigate CSRF vulnerabilities, it is recommended to implement measures such as using anti-CSRF tokens, validating requests, and following secure coding practices. These measures can help prevent unauthorized actions on behalf of users.

Related vulnerabilities

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

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