CVE-2021-21676: Missing permission check in Jenkins requests-plugin Plugin allows sending emails
Summary
CVE-2021-21676: Missing permission check in Jenkins requests-plugin Plugin allows sending emails. Affects org.jenkins-ci.plugins:requests versions < 2.2.8. Fixed in 2.2.8. 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
The requests-plugin is a plugin for Jenkins, an open-source automation server. It provides functionality for sending HTTP requests as part of Jenkins job workflows. The plugin allows users to configure and send requests to external systems, such as APIs or web services, during the execution of Jenkins jobs. This enables integration with various external tools and services. However, versions 2.2.7 and earlier of the requests-plugin suffer from a vulnerability that allows attackers with Overall/Read permission to send test emails to an attacker-specified email address.
Vulnerability Detail
The vulnerability in the requests-plugin (versions 2.2.7 and earlier) arises from the lack of a permission check in an HTTP endpoint. This means that any user with Overall/Read permission can exploit the vulnerability to send test emails to an email address specified by the attacker. The impact of this vulnerability is limited to the ability to send test emails, but it can still be abused for malicious purposes. The vulnerability has a CVSS score of 4.3, indicating a moderate severity level.
How To Fix
Minimum fixed version
2.2.8
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
There is no specific workaround provided for this vulnerability. The recommended solution is to upgrade to requests-plugin version 2.2.8 or later.
Conclusion
The requests-plugin in Jenkins is vulnerable to a permission check bypass, allowing unauthorized users to send test emails. To mitigate this vulnerability, it is crucial to upgrade to requests-plugin version 2.2.8 or later. This version includes a permission check that restricts the ability to send test emails to users with Overall/Administer permission. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.jenkins-ci.plugins:requests →
FAQ
The impact of this vulnerability is limited to the ability to send test emails. However, it can still be exploited for malicious purposes.
Any user with Overall/Read permission in Jenkins can exploit this vulnerability.
The vulnerability has a CVSS score of 4.3, indicating a moderate severity level.
To fix this vulnerability, it is recommended to upgrade to requests-plugin version 2.2.8 or later.
No specific workaround is provided. The recommended solution is to upgrade to requests-plugin version 2.2.8 or later.
Related vulnerabilities
Recent vulnerabilities recorded for org.jenkins-ci.plugins:requests.