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

Backport #190 for 0.6.x #194

Closed
wants to merge 1 commit into from
Closed

Conversation

bradfier
Copy link
Member

This is a single commit backport of #190 by @therealbstern

Since a considerable number of consumers of tiny-http will be using Rouille, which currently targets 0.6.2, it would be nice to have this patch released as a 0.6.3 version so that users pick it up automatically when they run cargo update.

GitHub won't let me express that, so please feel free to retarget this PR at a branch off the 0.6.2 tag, it should apply cleanly.

As identified in RUSTSEC-2020-0031, normalizing the value of a header
field (through the use of `str::trim`) can make applications based on
this library vulnerable to HTTP request smuggling if the immediate
upstream load balancer interprets the malformed header in a different
way.

This backported patch based on a PR opened against master. [1]

[1]: tiny-http#190

Co-authored-by: Ben Stern <bstern@fortian.com>
@bradfier bradfier changed the title Prevent HTTP request smuggling via Header normalization Backport #190 for 0.6.x Jan 21, 2021
@bradfier
Copy link
Member Author

This backport released as 0.6.3.

@bradfier bradfier closed this Apr 16, 2021
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

1 participant