6 Mar 09:59
Character "+" in query strings
Christian Folini <christian.folini <at> time-machine.ch>
2007-03-06 08:59:35 GMT
2007-03-06 08:59:35 GMT
Hello everybody,
I am in the process of writing a (positive :) ruleset for the drupal css.
Drupal knows the following request:
GET /drupal-5.0/?q=admin/user/rules&sort=desc&order=Rule+type HTTP/1.1
My problem lies with the query string argument "order".
It has the "+" character in it.
I have written the following rule (ModSecurity 2.1) to check the validity of
this parameter:
SecRule &ARGS:order "!@eq 0" "chain,t:none,deny,id:1,status:501,..."
SecRule ARGS:order "!^([\w+]{1,16})$" "t:none"
The ModSecurity debug log says:
... Executing operator !rx with param "^([\\w+]{1,16})$" against ARGS:order.
... /drupal-5.0/][9] Target value: Rule type
So the "+" character is gone.
The SecArgumentSeparator is left to the default, btw.
What is the problem here?
regards,
Christian
(Continue reading)
RSS Feed