0
votes

I am using the OWASP ZAP scanning tool using its API. I ran an active scan against my website and it created four alerts. However, minutes later, on the second run it returned 0 alerts. It seems like it saved the earlier alerts somewhere and only looked for new ones. My question is, how to reset ZAP so that it starts a scan afresh, with no knowledge of prior scan results. Thanks much.

1

1 Answers

0
votes

To reset Zap, you can create a new session using the core API.

Also notice that you need to wait until Zap's complete the scan, this could also lead to inconsistent results. Check out this implementatio as a reference to what needs to be done.