First of all, the old HTTP/1.1 connector was already doing this
normalization,
so there is nothing new here.

> 1. There does not seem to be a way to control the value of
> getUseURIValidationHack from any config file.

This is wrong. You can add a "useURIValidationHack" element on the connector
to configure the flag.

> 2. The code in validate() seems to perform checks that only a 'file
servlet'
> should be checking. Any generic servlet should be able to perform it's own
> checking of the URI. In specific the validate() routine is marking URI's
> with a %2f in them as invalid. I do not think that .. in general .. this
is
> true. Again .. it should be up to each servlet to make that decision. This
> might sound familiar .. but JRun, WebLogic, ServletExec all make these
type
> of decisions in thier file servlet .. as to not affact what these escaped
> special characters might mean to some other servlet. It is not clear to me
> that the validate() call should 'normalize' any of the escaped characters
..
> let the servlets do it.

Thanks for the advice, but this can be used to get around security
constraints,
creating "double URL decoding" situations, and do all sorts of nasty things.

4.1.x has refactored URL decoding handling, so I'm convinced it should be
secure without the normalization. I can't say such a thing for 4.0.x.

You can change the value of the flag easily at your own risk.

Remy


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to