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

Port setting is ignored in versions 3.1.0-dev-00148, 3.1.0-dev-00170, and 3.1.0-dev-00176 #93

Merged
merged 4 commits into from
Oct 28, 2021

Conversation

liammclennan
Copy link
Contributor

@liammclennan liammclennan commented Oct 28, 2021

Via @nblumhardt:

We've identified that this constitutes a vulnerability in versions 3.1.0-dev-00148, 3.1.0-dev-00170, and 3.1.0-dev-00176 of the package, available from August 27th 2021 to October 28th 2021.

The app eagerly computed the port value, in the constructor, before the user's Port setting would be applied.

If the user had chosen port 465 to use implicit SSL, and didn't also choose the "Require TLS" setting, this would downgrade the security of their connection by falling back to port 25 with STARTTLS.

We think this is an instance of CWE-693, Protection Mechanism Failure, and have requested a CVE id for it.

The 3.1.0-dev-00179 version of the package properly respects this setting.

{
_options = _options = new SmtpOptions(
Host,
Port ?? DefaultPort,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we extract port again?

@nblumhardt nblumhardt merged commit e4ffda1 into datalust:dev Oct 28, 2021
@nblumhardt nblumhardt changed the title Move app settings Port setting is ignored in versions 3.1.0-dev-00148, 3.1.0-dev-00170, and 3.1.0-dev-00176 Oct 28, 2021
MattMofDoom added a commit to MattMofDoom/seq-app-htmlemail that referenced this pull request Nov 1, 2021
MattMofDoom added a commit to MattMofDoom/seq-app-htmlemail that referenced this pull request Nov 1, 2021
@nblumhardt nblumhardt mentioned this pull request Feb 22, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants