I am going to avoid CSRF atack in my web application.
I've set up csrf configuration on my apache, like this:
<VirtualHost>
...
CSRF_Enable on
CSRF_Action deny
CSRF_EnableReferer off
</VirtualHost>
Also, I've installed the following apache modules:
mod_csrf-0.3
mod_parp-0.12
mod_setenvifplus-0.23
that have possibility to ignore CRSF in some cases.
All stuff works fine, namely csrfpid add to all POST method and does not add to GET.
But one issue was found. When I try to send GET method with parameter: www.example.com/test.jsp?csrfpid=some_csrf_id&some_attribute=0, csrfpid token has attached to link.
I've tried to play with:
SetEnvIfPlus Request_Method "GET" CSRF_IGNORE=yes.
But, it does not work in my case.
Also, I've found, that the issue causes through mod_csrf.c file.
It will be good to get some ideas or helpful link regarding to the described case.