CSRF in Jenkins Mailer Plugin 1.20
A cross-site request forgery (CSRF) vulnerability exists in the Mailer Plugin 1.20 for Jenkins 2.111. The vulnerability allows remote authenticated users to send unauthorized emails as any user by making a crafted request to /descriptorByName/hudson.tasks.Mailer/sendTestMail. The plugin does not properly validate CSRF tokens for this endpoint, enabling attackers to exploit authenticated sessions.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
An attacker can exploit this vulnerability to send emails from Jenkins as arbitrary users, potentially leading to information disclosure, phishing, or abuse of trust relationships. This could be used to impersonate users or send malicious content to recipients, leveraging the Jenkins infrastructure.
If you can’t patch tonight, do this now.
Restrict access to the Jenkins instance to trusted users and networks. Disable or limit the use of the Mailer Plugin until it is patched. Monitor outgoing emails for suspicious activity.
Patch, then assume compromise.
Upgrade the Mailer Plugin to a version where CSRF protection is properly implemented for the sendTestMail endpoint. Ensure that all endpoints enforce CSRF token validation.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.