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

Don't allow username or password to contain line break #7693

Merged
merged 1 commit into from Mar 6, 2024

Conversation

cketti
Copy link
Member

@cketti cketti commented Mar 4, 2024

Much of our protocol code isn't prepared to deal with line breaks in the username or password. Since IMAP, POP3, and SMTP are line-based protocols, this could lead to command injection. We avoid this by not allowing the username and password in ServerSettings to contain line breaks.

We still need to make sure we don't allow the user to enter such values (see #7670).

@cketti cketti requested a review from wmontwe as a code owner March 4, 2024 18:03
Copy link
Collaborator

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

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

👍

@cketti cketti merged commit 6688f5f into main Mar 6, 2024
2 checks passed
@cketti cketti deleted the disallow_line_breaks_in_ServerSettings branch March 6, 2024 11:56
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