tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: maxParameterCount not applied to multipart requests
Date Mon, 07 May 2012 21:21:46 GMT
On 07/05/2012 22:10, André Warnier wrote:
> Christopher Schultz wrote:
>> Hash: SHA1
>> Mark,
>> On 5/6/12 5:05 AM, Mark Thomas wrote:
>>> On 05/05/2012 12:25, Kanatoko wrote:
>>>> Hello list,
>>>> It seems that the Connector attribute "maxParameterCount" is not
>>>> applied to multipart requests.
>>> Correct. This is by design.
>> Doesn't that make it trivial to launch a DOS on a server by simply
>> using multipart/form-data?

Only if the application does something stupid which would make it an
application issue not a Tomcat one.

Tomcat only processes these requests for Servlet 3.0 file upload and
there are already sufficient limits in place for that case to prevent a DoS.

>> Why not limit parameters for multipart messages?
> Impish guess : because "by design" means that it is a lot harder to go
> dig into the code borrowed from Commons/FileUpload and to modify it to
> find out and limit the number of parameters ?
> (and probably a "patches welcome" to follow)

Nope. See above.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message