idealo_security
Mar 15, 2017Altostratus
Solved
iRule to block paths is not working properly after decoding HTTP::uri
Hi folks,
I was trying to generate an iRule which should take the URL, decode it, normalize the path portion and save it for later use in the following iRules.
But unfortunately, I wasn't able to pro...
- Mar 17, 2017
Solution is found: The error was in not writing the basename back to the
variable:HTTP:path
when HTTP_REQUEST priority 400 { this part is taken from F5s DevCentral set tmpUri [HTTP::uri] set uri [URI::decode $tmpUri] while { $uri ne $tmpUri } { set tmpUri $uri set uri [URI::decode $tmpUri] } set tmpPath "[URI::path $uri][URI::basename $uri]" HTTP::path $tmpPath }