Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostname validation for certificates should be enabled by default #429

Open
stianst opened this issue Mar 13, 2020 · 4 comments
Open

Hostname validation for certificates should be enabled by default #429

stianst opened this issue Mar 13, 2020 · 4 comments

Comments

@stianst
Copy link

stianst commented Mar 13, 2020

JavaMail 1.0 specifications has hostname validation of certificates disabled by default [1]. This is a very insecure default configuration, and opposite to what would be expected as a default.

As part of Jakarta Mail 2.0 this should be changed to be secure by default.

[1] mail.smtp.ssl.checkserveridentity defaults to false

@p-
Copy link

p- commented Mar 13, 2020

Absolutely!
checkserveridentityshould be set to true by default for all Java Mail supported protocols (SMTP, POP3, IMAP, ...).
Hostname verification is very important for a working TLS implementation.

@bshannon
Copy link
Contributor

The goal of Jakarta Mail 2.0.0 is to be identical to Jakarta Mail 1.6.5, except for the package name change. This is a good thing to consider for Jakarta Mail 2.0.1.

@oliverlietz
Copy link

@IntegralProgrammer reported a security issue at Apache Sling for module Commons Messaging Mail. Server identity checks are now enabled by default to protect our users: Support server identity check

@lukasj, Should we create a PR to get it into the next release?

@lukasj
Copy link
Contributor

lukasj commented Dec 16, 2021

@oliverlietz yes, please. Note that if this is an issue in the implementation code, then the PR belongs to https://github.com/eclipse-ee4j/angus-mail/, this repo hosts jakarta.mail.* packages only now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants