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

Return ERR_INPUTTOOLONG instead of closing connection on messages longer than ~1020 bytes #135

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

progval
Copy link
Contributor

@progval progval commented Aug 10, 2024

@glguy
Copy link
Member

glguy commented Aug 10, 2024

Does this continue to eat the rest of the input on too long until a new line character shows up to terminate the line?

@progval
Copy link
Contributor Author

progval commented Aug 11, 2024

yes. and actually I think there's a way to DoS sable here, because it looks like lines.next_line() has an unlimited buffer

@spb spb merged commit 7db845c into Libera-Chat:master Aug 11, 2024
2 checks passed
@spb
Copy link
Collaborator

spb commented Aug 11, 2024

There is a DoS there, yes - client_listener is still basically a proof of concept to let the rest of the ircd work; it needs reworking at some point for that and several other reasons.

@progval progval deleted the inputtoolong branch August 12, 2024 05:55
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.

3 participants