Reputation: 13
Passing user id and password to login page via OWASP ZAP
Hi, I am doing a OWASP ZAP test by building small application with Login and Landing page, but not sure how can i pass userid and password to login page via ZAP Automated scan so that it can scan the landing page,please help.
Upvotes: 1
Views: 5442
Reputation: 6186
Theres a FAQ for that ;) https://github.com/zaproxy/zaproxy/wiki/FAQformauth
Via the UI:
Via the API the process is the same but using the API calls:
authentication/setAuthenticationMethod
The values for
authMethodConfigParams parameters must be URL encoded, in this case loginRequestData is username={%username%}&password={%password%}
Upvotes: 4