I am currently trying to scan our web application with OWASP ZAP but I am facing an Issue which I can not seem to solve.
The problem is, that in order to scan the application I need to sign in, I followed multiple online tutorials and also documentation and I tried doing the following:
- Create general context for the app entry point (the first
GETrequest) - Flagging form based authentication (
POSTrequest) asDefault Context : Form-based Auth Login Request - Openin URL in browser
However ZAP sends GET request instead of POST request, so our app returns 405 Method Not Allowed as for authentication POST request must be used instead of the used GET request.
How can I create a context to send POST authentication request to the application instead of GET?
I am trying to figure this out to later automate this by using the weekly-image in Docker with -c <exported_context_file> flag to scan our web application on regular basis.
Could you please suggest how to do this?
Thanks