Hello,
I would like to know how Anti CSRF token scanner is supposed to be used.
I was hoping that this scanner would identify if a form submission does not have protection against CSRF attack. But I have not able to prove one or the other using ZAP.
Here are the 4 tests I did using a test application that had a form submission.
1) Submitted the form without any CSRF token.
2) Submitted the form WITH a hidden variable "csrfToken" but it was not populated with any value.
3) Submitted the form with a proper csrfToken (populated on server side during page load) but did not have any validation on server side.while processing the posted form.
4) Submitted the form with a proper csrfToken and validated the token on server side.
So only test #4 had CSRF protection implemented and my hope was that Anti CSRF token scanner of ZAP would report CSRF vulnerability with tests 1-3 and would pass the check with test #4,
But when I ran the active scan, all 4 tests reported that there was NO CSRF protection..
So I am not sure I understand how the scanner is supposed to be used. Any help would be much appreciated.