CVE-2018-8718: Cross-Site Request Forgery in Jenkins Mailer Plugin

Summary

14/05/2022
Yes i
High
8.0

CVE-2018-8718: Cross-Site Request Forgery in Jenkins Mailer Plugin. Affects org.jenkins-ci.plugins:mailer versions < 1.21. Fixed in 1.21. 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 Mailer Plugin is a component of Jenkins, an open-source automation server. It allows users to configure email notifications for various events within Jenkins. The plugin integrates with the Jenkins system, enabling users to send emails to specific recipients or groups when certain conditions are met. However, the Mailer Plugin version 1.20 for Jenkins 2.111 is vulnerable to a cross-site request forgery (CSRF) attack.

Vulnerability Detail

The Mailer Plugin 1.20 for Jenkins 2.111 is susceptible to a CSRF vulnerability, which allows remote authenticated users to send unauthorized mail as an arbitrary user. This vulnerability can be exploited by sending a specially crafted request to the '/descriptorByName/hudson.tasks.Mailer/sendTestMail' endpoint. As a result, an attacker with authenticated access can send emails on behalf of any user, potentially leading to unauthorized actions or information disclosure.

How To Fix

Minimum fixed version

1.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, users can implement a workaround by disabling the Mailer Plugin or restricting access to the '/descriptorByName/hudson.tasks.Mailer/sendTestMail' endpoint. This can be achieved by modifying the Jenkins configuration or using access control mechanisms such as firewall rules or network segmentation.

Conclusion

The Mailer Plugin 1.20 for Jenkins 2.111 is vulnerable to a CSRF attack, allowing authenticated users to send unauthorized emails on behalf of other users. To mitigate this vulnerability, it is crucial to upgrade to the latest version of the plugin (1.21 or later). Alternatively, users can implement workarounds such as disabling the plugin or restricting access to the vulnerable endpoint. It is recommended to apply the necessary fixes promptly to prevent potential misuse or unauthorized actions. For further support or assistance, contact DevNack.com.

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

Share this vulnerability

FAQ

The vulnerability allows authenticated users to send unauthorized emails on behalf of other users. This can lead to potential misuse of the email functionality, unauthorized actions, or information disclosure.

No, this vulnerability requires authenticated access to the Jenkins system. Remote exploitation is not possible unless an attacker has valid credentials.

Yes, upgrading to the latest version of the Mailer Plugin (1.21 or later) is the recommended mitigation. Additionally, restricting access to the vulnerable endpoint or disabling the plugin can provide temporary protection.

There is no specific evidence of active exploits targeting this vulnerability. However, it is advisable to apply the recommended fixes as soon as possible to prevent potential misuse.

For further support or assistance regarding vulnerability remediation, you can contact info@devnack.com. They can provide guidance and help in addressing the vulnerability in your Jenkins installation.

Related vulnerabilities

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

How To Fix

Minimum fixed version

1.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 →

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