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

cohttp-eio(client/server): Mitigate Against Attacks via Protocol Element Length #927

Open
2 tasks
bikallem opened this issue Aug 26, 2022 · 0 comments
Open
2 tasks

Comments

@bikallem
Copy link
Contributor

bikallem commented Aug 26, 2022

cohttp-eio client/server should attempt to mitigate against some of the issues highlighted in the RFC advisory https://www.rfc-editor.org/rfc/rfc7230#section-9.3.

9.3. Attacks via Protocol Element Length

Because HTTP uses mostly textual, character-delimited fields, parsers
are often vulnerable to attacks based on sending very long (or very
slow) streams of data, particularly where an implementation is
expecting a protocol element with no predefined length.

This should be considered for both eio client and server.

This is a meta/parent issue to track specific action items below:

References:

  1. https://www.rfc-editor.org/rfc/rfc6585#section-5
  2. https://www.rfc-editor.org/rfc/rfc6585#section-7
  3. https://www.rfc-editor.org/rfc/rfc7230#section-9.3
@bikallem bikallem mentioned this issue Aug 26, 2022
4 tasks
@bikallem bikallem changed the title cohttp-eio(clien/server): valid Content-Length cohttp-eio(client/server): Mitigate against Attacks via Protocol Element Length Aug 28, 2022
@bikallem bikallem changed the title cohttp-eio(client/server): Mitigate against Attacks via Protocol Element Length cohttp-eio(client/server): Mitigate Against Attacks via Protocol Element Length Aug 28, 2022
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

1 participant