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

router: disallow host header removal. #4751

Merged
merged 1 commit into from
Oct 17, 2018

Conversation

htuch
Copy link
Member

@htuch htuch commented Oct 16, 2018

This is a followup to #4576. It turns out that we have both the ability to refer to the host header
via "host" and ":authority" in HeaderMapImpl, see

// Special case where we map a legacy host header to :authority.
.

Fixes oss-fuzz issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10771.

Risk Level: Low
Testing: Modified existing unit test and corpus entry added.

Signed-off-by: Harvey Tuch htuch@google.com

This is a followup to envoyproxy#4576. It turns out that we have both the ability to refer to the host header
via "host" and ":authority" in HeaderMapImpl, see
https://github.com/envoyproxy/envoy/blob/6ac936f2750c39a8b4fb232d6ddc4802f4e6aeee/source/common/http/header_map_impl.cc#L276.

Fixes oss-fuzz issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10771.

Risk Level: Low
Testing: Modified existing unit test and corpus entry added.

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch merged commit 818fc0c into envoyproxy:master Oct 17, 2018
@htuch htuch deleted the segfault-router-fuzz branch October 17, 2018 00:07
soya3129 pushed a commit to soya3129/envoy that referenced this pull request Oct 19, 2018
This is a followup to envoyproxy#4576. It turns out that we have both the ability to refer to the host header
via "host" and ":authority" in HeaderMapImpl, see
https://github.com/envoyproxy/envoy/blob/6ac936f2750c39a8b4fb232d6ddc4802f4e6aeee/source/common/http/header_map_impl.cc#L276.

Fixes oss-fuzz issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10771.

Risk Level: Low
Testing: Modified existing unit test and corpus entry added.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Yang Song <yasong@yasong00.cam.corp.google.com>
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.

2 participants