Missing hostname validation in Email Extension Plugin
Moderate severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Dec 14, 2023
Description
Published by the National Vulnerability Database
Sep 16, 2020
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Dec 29, 2022
Last updated
Dec 14, 2023
Email Extension Plugin 2.75 and earlier does not perform hostname validation when connecting to the configured SMTP server. This lack of validation could be abused using a man-in-the-middle attack to intercept these connections.
Email Extension Plugin 2.76 validates the SMTP hostname when connecting via TLS by default. In Email Extension Plugin 2.75 and earlier, administrators can set the Java system property
mail.smtp.ssl.checkserveridentity
totrue
on startup to enable this protection. Alternatively, this protection can be enabled (or disabled in the new version) via the 'Advanced Email Properties' field in the plugin’s configuration in Configure System.In case of problems, this protection can be disabled again by setting
mail.smtp.ssl.checkserveridentity
tofalse
using either method.References