[httpd/f19] return 400 Bad Request on malformed Host header

Jan Kaluža jkaluza at fedoraproject.org
Fri May 31 11:02:05 UTC 2013


commit f32ae15090b054009f7839c12174675401f414b8
Author: Jan Kaluza <hanzz.k at gmail.com>
Date:   Fri May 31 13:01:21 2013 +0200

    return 400 Bad Request on malformed Host header

 httpd-2.4.4-malformed-host.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/httpd-2.4.4-malformed-host.patch b/httpd-2.4.4-malformed-host.patch
new file mode 100644
index 0000000..57975e5
--- /dev/null
+++ b/httpd-2.4.4-malformed-host.patch
@@ -0,0 +1,12 @@
+diff --git a/server/protocol.c b/server/protocol.c
+index e1ef204..d6d9165 100644
+--- a/server/protocol.c
++++ b/server/protocol.c
+@@ -1049,6 +1049,7 @@ request_rec *ap_read_request(conn_rec *conn)
+      * now read. may update status.
+      */
+     ap_update_vhost_from_headers(r);
++    access_status = r->status;
+ 
+     /* Toggle to the Host:-based vhost's timeout mode to fetch the
+      * request body and send the response body, if needed.


More information about the scm-commits mailing list