You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Hello, I may find some bugs with the Host header where hyper parses HTTP requests.
RFC 9112 says this:
A server MUST respond with a 400 (Bad Request) status code to any HTTP/1.1 request message that lacks a Host header field and to any request message that contains more than one Host header field line or a Host header field with an invalid field value.
This should imply that the HTTP server must reject requests with redundant Host headers or requests with missing Host headers. But in both cases, hyper did not reject.
Examples:
POST / HTTP/1.1\r\n
Host: victim1.com\r\n
Host: victim2.com\r\n
\r\n
I'm inclined to mark this as wont-fix. Anyone using the host header to determine what to serve will need to check the value anyways, and so they can reject however they like. Anyone who isn't, doesn't care.
Version
12717d1
Platform
Ubuntu 11.4.0-1ubuntu1~22.04
Description
Hello, I may find some bugs with the
Host
header where hyper parses HTTP requests.RFC 9112 says this:
This should imply that the HTTP server must reject requests with redundant
Host
headers or requests with missingHost
headers. But in both cases, hyper did not reject.Examples:
or
The text was updated successfully, but these errors were encountered: