I am using codeigniter 3.1.9.
I have enabled my CSRF protection with csrg_regenerate
set to true. It works fine, the token regenerates every time on Post request, validation works as well. On top of that, I have also set my cookie to same-site strict connection only.
I then submitted for penetration test assessment to the security team, they rejected my work because of csrf attacks vulnerability.
The argument was, they changed the cookie token and post params, then perform the attacks.
Here is the proof:
Their response : CSRF token is not securely implemented. An attacker can still perform a CSRF attack using any value to the
csrf_cookie_name
Cookie andcsrf_test_name
parameter.
How can I solve this ?
Thanks