You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/05/13 01:34:46 UTC

DO NOT REPLY [Bug 44979] New: Host header field integer inconsistency

https://issues.apache.org/bugzilla/show_bug.cgi?id=44979

           Summary: Host header field integer inconsistency
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dabresson@gmail.com


An all numeric Host header field is treated as an integer.  If the value is
greater than 65535, an error 400 is returned.  If the optional port is
specified (adding a colon), the field is treated as a string and returns status
200.

This results in inconsistent behavior in the handling of decimal IPs (as
opposed to dotted decimal).

http://2130706433/ (127.0.0.1) will return status 400.  http://2130706433:80/
will return status 200.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 44979] Host header field integer inconsistency

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44979





--- Comment #2 from David Bresson <da...@gmail.com>  2009-05-14 01:11:10 PST ---
However, unlike IIS and presumably lighttpd, a status 200 is returned for
requests with a Host header of 1 through 65535.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 44979] Host header field integer inconsistency

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44979

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Nick Kew <ni...@webthing.com> 2011-03-26 11:22:31 EDT ---
Fix seems to have been backported in r984172

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 44979] Host header field integer inconsistency

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44979


Josh Lee <jl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jleedev@gmail.com




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 44979] Host header field integer inconsistency

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44979

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #3 from Nick Kew <ni...@webthing.com> 2009-11-02 15:34:24 UTC ---
I've just fixed this in trunk in r832172 .
A bare integer is now treated as hostname, not as port, so it will be accepted
if configured.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 44979] Host header field integer inconsistency

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44979


Josh Lee <jl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|PC                          |All
            Version|2.2.3                       |2.2.11
         OS/Version|Linux                       |All




--- Comment #1 from Josh Lee <jl...@gmail.com>  2009-05-03 08:37:14 PST ---
A couple more observations:

* The host doesn't necessarily have to be greater than 65535; http://0/
triggers the behavior.
* IIS and lighttpd both show this behavior. Cherokee, gws, and apache1.3 do
not.
* Here's the same bug in lighttpd: http://redmine.lighttpd.net/issues/1952

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org