You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2022/11/25 12:49:42 UTC

[Bug 64144] Add an option for rejecting requests that have both CL and TE

https://bz.apache.org/bugzilla/show_bug.cgi?id=64144

Mark Thomas <ma...@apache.org> changed:

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
I'm going to mark this as fixed even though we haven't implemented the option
requested here.

The approach implemented in Tomcat is that if a request uses chunked encoding
but also defines a content length then:
- the content length is removed
- keep-alive is disabled

This allows the current request to complete as per the HTTP spec but prevents
against misbehaving 3rd party components (that may trigger request smuggling)
since disabling keep-alive prevents any request smuggling occurring.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org